v1

latestOpenAPI 3.0.02026-07-26327775.9 KB
Trading

Close all positions

Place closing orders for all open positions. Isn't guaranteed to close all positions, or close them immediately. Will attempt to place an IOC, then GTC closing order, so the execution might be delayed.

delete/trade/accounts/{accountId}/positions

Path parameters

accountIdinteger required

Account identifier.

Query parameters

tradableInstrumentIdinteger

Instrument filter. If specified, only positions in this instrument will be closed.

strategyIdstring

Strategy ID

Headers

accNuminteger required

Account number

developer-api-keystring

developer-api-key

Response

sstring required

Status will always be ok.

Example response

{
  "s": "ok"
}