binance_us_cust_oco_order
Place OCO orders on Binance.US with a custodial solution to automatically cancel one order when the other executes, managing risk in cryptocurrency trading.
Instructions
Place a new OCO (One-Cancels-the-Other) order through the custodial solution.
⚠️ REQUIRES CUSTODIAL SOLUTION API KEY
OCO orders combine a limit order with a stop-loss order. When one executes, the other is automatically canceled.
Price Restrictions:
SELL: Limit Price > Last Price > Stop Price
BUY: Limit Price < Last Price < Stop Price
Quantity: Both legs must have the same quantity (iceberg qty can differ).
Note: OCO counts as 2 orders against rate limits.
Response includes orderListId, orders array, and orderReports with details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rail | Yes | Custodial partner name (e.g., ANCHORAGE, BITGO). Must be uppercase. | |
| symbol | Yes | Trading pair (e.g., BTCUSD, ETHUSD) | |
| side | Yes | Order side: BUY or SELL | |
| quantity | Yes | Order quantity (same for both legs) | |
| price | Yes | Limit order price | |
| stopPrice | Yes | Stop trigger price | |
| limitClientOrderId | No | Unique ID for the limit order | |
| limitIcebergQty | No | Iceberg qty for limit leg | |
| stopClientOrderId | No | Unique ID for the stop leg | |
| stopLimitPrice | No | Limit price for stop-limit leg | |
| stopIcebergQty | No | Iceberg qty for stop leg | |
| stopLimitTimeInForce | No | Time in force for stop-limit leg | |
| asset | No | Asset for ExpressTrade | |
| allowExpressTrade | No | Enable ExpressTrade |