Tradesync
Browse API reference
API reference

Update equity monitor

PATCHhttps://api.tradesync.com/equity-monitors/{equity_monitor_id}

Cancel an active equity monitor. Other fields cannot be updated.

Last updated

Path parameters

equity_monitor_idType: integer
Equity monitor id returned by the corresponding list endpoint

Request body

All fields are optional. Omitted fields are unchanged.

statusType: string
Cancel the monitor. The current status must be active.Accepted values / limits: cancelled

Response example

{
    "result": "success",
    "status": 200,
    "data": {
        "id": 1,
        "created_at": "2023-09-12T10:45:14Z",
        "updated_at": "2023-09-12T13:42:03Z",
        "account_id": 232,
        "status": "cancelled",
        "type": "target_value",
        "value": 1234,
        "action": "alert_disable_copiers_close_trades"
    }
}

Errors

Code HTTP status Condition
equity_monitor_not_active 422 The monitor is already complete or cancelled.

See also common response codes.