MINARA

下達永續訂單

POST /v1/trading-gateway/place-orders:針對子賬戶綁定交易所批量下達永續訂單。

POST /v1/trading-gateway/place-orders

針對子賬戶綁定交易所批量下達永續訂單。每筆訂單使用基於動作的 DTO(open_long | open_short | close_long | close_short | set_stop_loss | set_take_profit),並可使用嵌套 stop_loss_orders / take_profit_orders 數組實現原生 TpSL。Body:{ orders: BatchOrderItem[], subAccountId?: string }。返回 BatchPlaceOrderResult[],每個輸入訂單各有成功/失敗結果,因此部分拒絕不會導致整個調用失敗。

方法POST
路徑/v1/trading-gateway/place-orders
認證設置 GATEWAY_AUTH_TOKEN 時需要 Authorization: Bearer <token>
類別perps

請求體

{ "orders": [{ "action": "open_long", "symbol": "BTC", "quantity": "0.01", "leverage": 5, "stop_loss_orders": [{ "price": "55000" }], "take_profit_orders": [{ "price": "75000" }] }], "subAccountId": "sub_hl_default" }

響應體

[{ "success": true, "order": { "order_id": "ord_abc", "symbol": "BTC", "side": "buy", "price": "62000", "quantity": "0.01", "status": "open", "created_at": 1716796800000, "raw_data": { } } }]

本頁目錄