binance_us_new_oco
Place a One-Cancels-the-Other (OCO) order on Binance.US to execute a limit order and stop-loss order simultaneously, automatically cancelling one when the other triggers for risk management.
Instructions
Place a new OCO (One-Cancels-the-Other) order on Binance.US. OCO orders combine a limit order with a stop-loss order. When one triggers, the other is automatically cancelled. Note: For SELL OCOs, limit price > stop price. For BUY OCOs, limit price < stop price.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Trading pair symbol (e.g., BTCUSD, ETHUSD) | |
| side | Yes | Order side: BUY or SELL | |
| quantity | Yes | Order quantity for both legs of the OCO | |
| price | Yes | Limit order price | |
| stopPrice | Yes | Stop price that triggers the stop-loss order | |
| stopLimitPrice | No | Limit price for the stop-loss leg. If provided, stopLimitTimeInForce is required. | |
| stopLimitTimeInForce | No | Time in force for stop-limit order: GTC, IOC, or FOK. Required if stopLimitPrice is provided. | |
| listClientOrderId | No | Unique ID for the entire OCO order list | |
| limitClientOrderId | No | Unique ID for the limit order leg | |
| stopClientOrderId | No | Unique ID for the stop-loss leg | |
| limitIcebergQty | No | Iceberg quantity for the limit leg | |
| stopIcebergQty | No | Iceberg quantity for the stop-loss leg | |
| trailingDelta | No | Trailing delta in BIPS for the stop leg | |
| newOrderRespType | No | Response type: ACK, RESULT, or FULL | |
| selfTradePreventionMode | No | Self-trade prevention mode | |
| recvWindow | No | Receive window in milliseconds (max 60000) |