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": { } } }]

목차