Server list (trading_servers)¶
Get the list of servers for a trading platform.
Auth Scope(s): read
-
trading_servers
(account_type: Optional[str] = None, environment: Optional[str] = None, market_type: Optional[str] = None, platform: Optional[str] = None, passthrough: Optional[Any] = None, req_id: Optional[int] = None) → int¶ Parameters: - account_type (Optional[str]) – [Optional] Trading account type.
- environment (Optional[str]) – [Optional] Pass the environment (installation) instance. Currently, there are one demo and two real environments. Defaults to ‘all’.
- market_type (Optional[str]) – [Optional] Market type.
- platform (Optional[str]) – [Optional] Pass the trading platform name, default to mt5
- passthrough (Optional[Any]) – [Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.
- req_id (Optional[int]) – [Optional] Used to map request to response.
Returns: req_id
Return type: int