otp.RemoteTS#
- class RemoteTS(host, port=None, cep=False)[source]#
Bases:
object
Class representing remote tick-server. Can be
used
inSession
as well as the local databases.- Parameters
host (str) – string with the domain name or ip-address of the remote server and, optionally, the port number after the
:
character.port (int, str) – the port number of the remote tick-server. If not specified here, can be specified in the
host
parameter.cep (bool) – specifies if the remote server is the CEP-mode tick-server.
Examples
>>> session.use(otp.RemoteTS('server.onetick.com:50015'))