Update Market Watch¶
Updates visual metadata for a market watch symbol.
PUT
https://{some_domain}/market/watch
Authorization¶
This endpoint requires an authenticated session with one of the following access types:
SESSION_USERSESSION_MANAGERSESSION_ADMINSESSION_DEALER
Login resolution:
SESSION_USER: login is taken from the authenticated sessionSESSION_MANAGER,SESSION_ADMIN,SESSION_DEALER: request should include targetlogin
Request¶
Content-Type: application/json
Body Parameters¶
| Field | Type | Required | Description |
|---|---|---|---|
symbol |
string | Yes | Market watch symbol |
sort_index |
int | No | New display order |
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.
Response¶
Success (200)¶
{
"data": "OK"
}
Error Responses¶
| HTTP | error |
Description |
|---|---|---|
| 400 | INVALID_DATA |
Request validation failed or no fields to update |
| 401 | PERMISSION_DENIED |
Missing or invalid access context |
| 400 | INVALID_LOGIN |
login is missing for staff sessions |
| 404 | MARKET_WATCH_SYMBOL_NOT_FOUND |
Symbol is not present in market watch |
| 500 | INVALID_UPDATE_MARKET_WATCH |
Update failed |