Cancel-All Smart Balance

Batch-cancel active Smart Balance portfolios under an account, optionally filtered by portfolioType, coinOrSymbol, createUidList, or derivativesType(s). Each matching portfolio transitions to CANCELLING immediately; actual order cancellation is performed asynchronously. Final CANCELLED statuses are delivered via the WebSocket PORTFOLIO_CANCELLED messages on the trade-news channel.

Endpoint

POST /tt/themis-broker/openapi/portfolios/cancel-all

Authentication: HMAC apiKey signature via REST headers. See Authentication.

Parameters

Request body is flat JSON. All filter fields are optional — when omitted, every active portfolio under accountId is cancelled.

Parameter Type Required Description
accountId long true Account ID under which portfolios are cancelled
portfolioType string false Only BALANCE applies to Smart Balance
coinOrSymbol string false Filter by base coin (e.g. BTC) or instrument symbol
createUidList array false Filter by creator UID list; empty / omitted means no filter
derivativesType string false Single derivatives filter: SPOT / OPTION / FUTURES / GRFQ
derivativesTypes array false Multiple derivatives filter; takes precedence over derivativesType when non-empty

Request Example

POST /tt/themis-broker/openapi/portfolios/cancel-all HTTP/1.1
Authorization: Bearer pkQJQ1
Signalplus-API-Timestamp: 1776665215780
Signalplus-API-Nonce: e43b0618-6965-4b0b-a62d-a3a4f78eed52
Signalplus-API-Signature: <base64 hmac>
Content-Type: application/json

{
  "accountId": 10003443,
  "portfolioType": "BALANCE",
  "coinOrSymbol": "BTC"
}

Response Example

{
  "succ": true,
  "code": 0,
  "message": "",
  "value": null
}

Cancel-All returns value = null on success. Listen to the WebSocket trade-news channel for PORTFOLIO_CANCELLING and PORTFOLIO_CANCELLED message types per affected portfolio to observe terminal states.

results matching ""

    No results matching ""