Skip to content

Add Market Watch

Adds a symbol to market watch for the effective login and returns a snapshot for that symbol.

POST

https://{some_domain}/market/watch

Authorization

This endpoint requires an authenticated session with one of the following access types:

  • SESSION_USER
  • SESSION_MANAGER
  • SESSION_ADMIN
  • SESSION_DEALER

Login resolution:

  • SESSION_USER: login is taken from the authenticated session
  • SESSION_MANAGER, SESSION_ADMIN, SESSION_DEALER: request should include target login

Request

Content-Type: application/json

Body Parameters

Field Type Required Description
symbol string Yes Trading symbol to add
login int No Target account login for staff sessions

Response

Success (200)

{
  "EURUSD": {
    "symbol": "EURUSD",
    "price1d": -0.12,
    "high": 1.10523,
    "low": 1.10211,
    "prices": [1.10312, 1.10344, 1.10301]
  }
}

Error Responses

HTTP error Description
400 INVALID_DATA Request validation failed
401 PERMISSION_DENIED Missing or invalid access context
400 INVALID_LOGIN login is missing for staff sessions
500 INVALID_ADD_SYMBOL_TO_MARKET_WATCH Failed to add symbol to market watch