Cancel a trigger order
Build your request
Change the values and the command follows. The token is never typed here: the command reads it from the SPECTRE_LOCAL_API_TOKEN environment variable. Run it in your own terminal.
curl -X DELETE 'http://127.0.0.1:48180/v1/orders/trigger/42?connection_id=12&instrument=binance:futures:BTCUSDT' \ -H "Authorization: Bearer $SPECTRE_LOCAL_API_TOKEN"
bearerToken trading:writeAuthorizationBearer <token>The Local API token: spt_ and 64 hex characters. Copy it from Settings App → General → Local API. It is accepted only in the Authorization header. The names listed with an operation are the scopes it requires. The token of the terminal carries all of them.
Scope: trading:write
id*stringThe numeric id of the trigger from GET /account/orders. A key such as t-… or sl_… is not accepted.
^[0-9]+$connection_id*integerThe connection of the instrument.
int64instrument*stringInstrument address, exchange:market:symbol.
The terminal accepted the command. key is null.
application/json- response
The answer of every trading, trigger and leverage command.
accepted*booleanAccepted by the terminal, not by the exchange.
operation_id*stringThe id of the operation in the trading operations log of the terminal. The key of a placed order is t- and this id.
key*|The key of the placed order, t-…, or of the placed trigger: sl_…, tp_… or stop_…. null for cancels, amendments and leverage.
connection_id*integerint64instrument*stringcurl -X DELETE 'http://127.0.0.1:48180/v1/orders/trigger/42?connection_id=12&instrument=binance:futures:BTCUSDT' \ -H "Authorization: Bearer $SPECTRE_LOCAL_API_TOKEN"{ "accepted": true, "operation_id": "173029440000000007", "key": null, "connection_id": 12, "instrument": "binance:futures:BTCUSDT"}Change the trigger price PATCH
Sets a new trigger price. The terminal cancels the previous trigger and places a new one, as the window does. A `stop` also needs `side`.
Leverage and margin mode GET
The leverage the terminal has loaded for the instrument. It is loaded when the instrument is chosen in the window or when the leverage is set with `POST`. Before that the answer is `409 not_active`.