CLI
HTTP
回應
成功時返回 HTTP202。data 包含 order_id 和 accepted。accepted: true 只確認撤單請求已接受,不代表最終狀態一定是 CANCELLED;請之後查詢訂單詳情。
可能的錯誤包括 order_not_found、order_not_cancellable、invalid_trade_date 和券商拒絕。Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
請求撤銷現有訂單。
tqx trading orders cancel <order-id> --json
curl --request DELETE \
--url 'https://www.tqx.trade/openapi/v1/trading/orders/<order-id>' \
--header "X-API-Key: $TQX_API_KEY" \
--header 'Accept: application/json'
202。data 包含 order_id 和 accepted。accepted: true 只確認撤單請求已接受,不代表最終狀態一定是 CANCELLED;請之後查詢訂單詳情。
可能的錯誤包括 order_not_found、order_not_cancellable、invalid_trade_date 和券商拒絕。