Cancel Smart Balance
Cancel an active Smart Balance portfolio. The portfolio status transitions to CANCELLING immediately; actual order cancellation is performed asynchronously. The final CANCELLED status is delivered via the WebSocket PORTFOLIO_CANCELLED message on the trade-news channel.
Endpoint
POST /tt/themis-broker/openapi/portfolios/cancel
Authentication: HMAC apiKey signature via REST headers. See Authentication.
Parameters
Request body is flat JSON.
| Parameter | Type | Required | Description |
|---|---|---|---|
| portfolioId | long | true | Portfolio ID to cancel |
| accountId | long | false | Optional ownership check |
Request Example
POST /tt/themis-broker/openapi/portfolios/cancel 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
{
"portfolioId": 144115188955249274,
"accountId": 10003443
}
Response Example
{
"succ": true,
"code": 0,
"message": "",
"value": null
}
Cancel returns
value = nullon success. Listen to the WebSockettrade-newschannel forPORTFOLIO_CANCELLINGandPORTFOLIO_CANCELLEDmessage types to observe the terminal state.