Connection.ConnectionClient.Connect method (1 of 2)
Creates terminal connection to the MT4 server and returns Guid of it [DefaultValues] { "user": "501401178", "password": "v8gctta", "host": "mt4-demo.roboforex.com", "port": "443", "baseChartSymbol": "EURUSD", "waitForTerminalIsAlive": "true" }
public virtual ConnectReply Connect(ConnectRequest request, CallOptions options)
| parameter | description |
|---|---|
| request | The request to send to the server. |
| options | The options for the call. |
Return Value
The response received from the server.
See Also
- class ConnectReply
- class ConnectRequest
- class ConnectionClient
- namespace mt4_term_api
Connection.ConnectionClient.Connect method (2 of 2)
Creates terminal connection to the MT4 server and returns Guid of it [DefaultValues] { "user": "501401178", "password": "v8gctta", "host": "mt4-demo.roboforex.com", "port": "443", "baseChartSymbol": "EURUSD", "waitForTerminalIsAlive": "true" }
public virtual ConnectReply Connect(ConnectRequest request, Metadata headers = null,
DateTime? deadline = default, CancellationToken cancellationToken = default)
| parameter | description |
|---|---|
| request | The request to send to the server. |
| headers | The initial metadata to send with the call. This parameter is optional. |
| deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
| cancellationToken | An optional token for canceling the call. |
Return Value
The response received from the server.
See Also
- class ConnectReply
- class ConnectRequest
- class ConnectionClient
- namespace mt4_term_api