Get Market Info
GetMarketInfo¶
GetMarketInfo
Description: Returns a detailed market/instrument map for a target account login.
Available for:
SESSION_USERSESSION_MANAGERSESSION_ADMINSESSION_DEALER
Note
Request should include Authorization token.
Request Parameters¶
| Name | Type | Required | Description |
|---|---|---|---|
| login | int | Yes | Target account login |
Request Example¶
{
"login": 100001
}
Response Parameters¶
| Name | Type | Description |
|---|---|---|
| assets | object | Symbol-keyed object with full market metadata and current prices |
| groups | array | Visible security group names for the account group |
Each assets.<symbol> object includes market/trading fields such as:
- symbol, description, currencies
- group, digits, trade, profit_mode, exemode
- spread, swaps, stops/freeze levels
- margin and contract settings
- ask, bid, tick fields
market_state,market_reason- lot and commission settings
sessions
Response Example (truncated)¶
{
"assets": {
"EURUSD": {
"symbol": "EURUSD",
"description": "Euro vs US Dollar",
"group": "Forex",
"digits": 5,
"ask": 1.10452,
"bid": 1.10449,
"market_state": 1,
"market_reason": 0,
"lot_min": 0.01,
"lot_max": 100.0
}
},
"groups": ["Forex", "Metals"]
}
Error Responses¶
| Code | Error | Description |
|---|---|---|
| 400 | INVALID_DATA |
Missing or invalid login |
| 403 | USER_NOT_FOUND_OR_INCORRECT |
Account was not found |
| 404 | GROUP_NOT_FOUND |
Account group was not found |