Tradesync
Browse API reference
API reference

Update account symbols bulk

PATCHhttps://api.tradesync.com/accounts/{account_id}/symbols/bulk

Update the active state of multiple account symbols.

Last updated

Path parameters

account_idType: integer
Tradesync account ID belonging to the authenticated user

Request body

symbolsType: arrayRequired: Yes
Symbols to updateAccepted values / limits: Up to 1,000 objects
symbols[].idType: integerRequired: Yes
Symbol record ID belonging to the accountAccepted values / limits: Unique within the request
symbols[].activeType: stringRequired: Yes
Whether the connection updates pricing data for the symbolAccepted values / limits: yes, no

This setting does not disable symbol copying on a copier.

Response example

HTTP 207 contains one result per symbol. Inspect each item for success or failure.

{
    "result": "multi",
    "status": 207,
    "data": [
        {
            "result": "success",
            "data": {
                "id": 272379201,
                "created_at": "2025-04-25T14:17:24Z",
                "updated_at": "2025-04-25T14:20:34Z",
                "symbol": "WheatMay25",
                "active": "no",
                "profit_calc_mode": "cfd",
                "base_currency": "USD",
                "profit_currency": "USD",
                "contract_size": 50,
                "tick_value": 12.5,
                "tick_size": 0.25,
                "min_lot": 0.01,
                "max_lot": 10,
                "lot_step": 0.01,
                "stop_level": 100
            }
        },
        {
            "result": "success",
            "data": {
                "id": 272379200,
                "created_at": "2025-04-25T14:17:24Z",
                "updated_at": "2025-04-25T14:17:24Z",
                "symbol": "WheatJul25",
                "active": "yes",
                "profit_calc_mode": "cfd",
                "base_currency": "USD",
                "profit_currency": "USD",
                "contract_size": 50,
                "tick_value": 12.5,
                "tick_size": 0.25,
                "min_lot": 0.01,
                "max_lot": 10,
                "lot_step": 0.01,
                "stop_level": 100
            }
        }
    ]
}

Errors

Code HTTP status Condition
duplicate_entries 422 The request contains duplicate symbol IDs.

See also common response codes.