Skip to content

GetMarketInfo

GetMarketInfo

Description: Returns a detailed market/instrument map for a target account login.

Available for:

  • SESSION_USER
  • SESSION_MANAGER
  • SESSION_ADMIN
  • SESSION_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

comm_base, comm_type, and comm_lots are the effective commission values for the requested account and symbol, after resolving Security → Symbol → Group Security → Group Symbol. comm_type is 0 money, 1 points, 2 percent; comm_lots is 0 per lot or 1 per deal. This market response contains the effective triplet and does not expose the individual override flags.

For each symbol, spread and spread_balance are the effective execution spread pair after applying Symbol → enabled Group Security matched by the symbol's sec_index → enabled Group Symbol matched by symbol name. Each enabled group override replaces the full pair. spread_balance assigns points to Ask; remaining spread points apply to Bid. These values adjust the raw quote gap; ask and bid remain the market quote values.

Response Example (truncated)

{
  "assets": {
    "EURUSD": {
      "symbol": "EURUSD",
      "description": "Euro vs US Dollar",
      "group": "Forex",
      "digits": 5,
      "point": 0.00001,
      "ask": 1.10452,
      "bid": 1.10449,
      "spread": 12,
      "spread_balance": 5,
      "market_state": 1,
      "market_reason": 0,
      "lot_min": 0.01,
      "lot_max": 100.0,
      "comm_base": 2.5,
      "comm_type": 0,
      "comm_lots": 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