Actions15
- Query Order (USER_DATA)
- Current Open Orders (USER_DATA)
- Query OCO (USER_DATA)
- Query all OCO (USER_DATA)
- Query Open OCO (USER_DATA)
- Account Information (USER_DATA)
- Account Trade List (USER_DATA)
- Query Current Order Count Usage (TRADE)
- Cancel an Existing Order and Send a New Order (TRADE)
- Cancel Order (TRADE)
- Cancel OCO (TRADE)
- All Orders (USER_DATA)
- New Order (TRADE)
- New OCO (TRADE)
- Cancel all Open Orders on a Symbol (TRADE)
Overview
This node interacts with the Binance API to perform various trading-related operations, including cancelling OCO (One-Cancels-the-Other) orders. Specifically, the 'Cancel OCO (TRADE)' operation allows users to cancel an existing OCO order on Binance by providing necessary parameters such as the trading symbol and timestamp. This node is useful for automating trade management tasks, such as cancelling orders based on certain conditions or integrating Binance trading actions into larger workflows.
Use Case Examples
- Cancel an OCO order for the BTCUSDT trading pair by specifying the symbol and timestamp along with either the orderListId or listClientOrderId to identify the OCO order to cancel.
- Use the node to cancel multiple OCO orders programmatically as part of a trading bot or alert system.
Properties
| Name | Meaning |
|---|---|
| Symbol | The trading pair symbol for which the OCO order cancellation is requested. Required to identify the market (e.g., BTCUSDT). |
| Timestamp | The timestamp of the request, used for API request validation and timing. Required for the operation. |
| Add Optional Operations | A collection of optional parameters to customize the cancellation request, including orderListId, listClientOrderId, newClientOrderId, and recvWindow. |
Output
JSON
orderListId- The ID of the cancelled OCO order list.listClientOrderId- The client-defined ID of the cancelled OCO order list.status- The status of the cancellation request.message- Any message returned by the API regarding the cancellation.
Dependencies
- Binance API
Troubleshooting
- Ensure that either 'orderListId' or 'listClientOrderId' is provided; otherwise, the API request will fail.
- Verify that the 'timestamp' parameter is accurate and synchronized with Binance server time to avoid signature errors.
- Check that the API credentials used have the necessary permissions to cancel OCO orders.
- If the 'recvWindow' is set, ensure it does not exceed 60000 milliseconds as per Binance API limits.
Links
- Binance API Documentation - Cancel OCO (TRADE) - Official Binance API documentation for cancelling OCO orders.