Skip to content

Update Market Watch

UpdMarketWatch

UpdMarketWatch

Description: Updates market watch visual metadata for the effective login.

Available for:

  • SESSION_USER
  • SESSION_MANAGER
  • SESSION_ADMIN
  • SESSION_DEALER

Note

Request should include Authorization token.

For access resolution:

  • SESSION_USER: server uses the authenticated session login
  • SESSION_MANAGER, SESSION_ADMIN, SESSION_DEALER: request should provide target login

Request Parameters

Name Type Required Description
symbol string Yes Market watch symbol
sort_index int No New display position
color string No New color tag
login int No Target account login for staff sessions

At least one of sort_index or color must be provided.

Request Example

{
  "login": 100001,
  "symbol": "EURUSD",
  "sort_index": 10,
  "color": "#3366FF"
}

Response Example

{
  "data": "OK"
}

Error Responses

Code Error Description
400 INVALID_DATA Invalid request fields or no fields to update
401 PERMISSION_DENIED Missing or invalid access context
404 MARKET_WATCH_SYMBOL_NOT_FOUND Symbol is not present in market watch
500 INVALID_UPDATE_MARKET_WATCH Market watch update failed