Constructor ViiSyncAccountApi
- Namespace
- ViiSync.AccountApi
- Assembly
- ViiSync.AccountApi.dll
ViiSyncAccountApi()
public ViiSyncAccountApi()
Remarks
MT5 equivalent
MT5API.MT5API()— full: pfx-certificate and proxy overloads are N/A (TLS via wss://; proxy -> see ProxyHost)MT5API.MT5API(ulong user, string password, string host, int port, byte[] pfxFile, string pfxFilePassword)— full: pfx-certificate and proxy overloads are N/A (TLS via wss://; proxy -> see ProxyHost)MT5API.MT5API(ulong user, string password, string server, byte[] pfxFile, string pfxFilePassword)— full: pfx-certificate and proxy overloads are N/A (TLS via wss://; proxy -> see ProxyHost)MT5API.MT5API(ulong user, string password, string host, int port)— full: pfx-certificate and proxy overloads are N/A (TLS via wss://; proxy -> see ProxyHost)MT5API.MT5API(ulong user, string password, string host, int port, string proxyHost, int proxyPort, string proxyUser, string proxyPassword, ProxyTypes type)— full: pfx-certificate and proxy overloads are N/A (TLS via wss://; proxy -> see ProxyHost)
ViiSyncAccountApi(ulong, string, string, int)
MT5-style: login, password, host and port. Port 443 connects over TLS (wss://host/ws); any other port
connects to ws://host:port/ws. Pass a full ws:///wss:// URL as host to set
the endpoint exactly.
public ViiSyncAccountApi(ulong user, string password, string host, int port = 443)
Parameters
Remarks
MT5 equivalent
MT5API.MT5API()— full: pfx-certificate and proxy overloads are N/A (TLS via wss://; proxy -> see ProxyHost)MT5API.MT5API(ulong user, string password, string host, int port, byte[] pfxFile, string pfxFilePassword)— full: pfx-certificate and proxy overloads are N/A (TLS via wss://; proxy -> see ProxyHost)MT5API.MT5API(ulong user, string password, string server, byte[] pfxFile, string pfxFilePassword)— full: pfx-certificate and proxy overloads are N/A (TLS via wss://; proxy -> see ProxyHost)MT5API.MT5API(ulong user, string password, string host, int port)— full: pfx-certificate and proxy overloads are N/A (TLS via wss://; proxy -> see ProxyHost)MT5API.MT5API(ulong user, string password, string host, int port, string proxyHost, int proxyPort, string proxyUser, string proxyPassword, ProxyTypes type)— full: pfx-certificate and proxy overloads are N/A (TLS via wss://; proxy -> see ProxyHost)
ViiSyncAccountApi(ulong, string, Uri)
Connect to an explicit WebSocket endpoint, e.g. wss://server.example.com/ws.
public ViiSyncAccountApi(ulong user, string password, Uri endpoint)
Parameters
Remarks
MT5 equivalent
MT5API.MT5API()— full: pfx-certificate and proxy overloads are N/A (TLS via wss://; proxy -> see ProxyHost)MT5API.MT5API(ulong user, string password, string host, int port, byte[] pfxFile, string pfxFilePassword)— full: pfx-certificate and proxy overloads are N/A (TLS via wss://; proxy -> see ProxyHost)MT5API.MT5API(ulong user, string password, string server, byte[] pfxFile, string pfxFilePassword)— full: pfx-certificate and proxy overloads are N/A (TLS via wss://; proxy -> see ProxyHost)MT5API.MT5API(ulong user, string password, string host, int port)— full: pfx-certificate and proxy overloads are N/A (TLS via wss://; proxy -> see ProxyHost)MT5API.MT5API(ulong user, string password, string host, int port, string proxyHost, int proxyPort, string proxyUser, string proxyPassword, ProxyTypes type)— full: pfx-certificate and proxy overloads are N/A (TLS via wss://; proxy -> see ProxyHost)