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 operations related to user data and orders, specifically for the 'Query Open OCO (USER_DATA)' operation among others. It allows users to query open OCO (One Cancels the Other) orders, as well as other order-related queries and account information retrieval. This node is useful for traders and developers who want to automate and manage their Binance trading activities programmatically, such as checking open orders, querying specific orders, or managing OCO orders.
Use Case Examples
- Query open OCO orders to monitor active conditional orders on Binance.
- Retrieve account information and trade history for analysis or reporting.
- Cancel an existing order and place a new one in a single operation.
Properties
| Name | Meaning |
|---|---|
| Timestamp | The timestamp parameter is required for most operations to specify the exact time of the request, ensuring synchronization with Binance server time. |
| Add Optional Operations | Optional parameters that can be added to the request, such as 'Recv Window' which limits the request validity period (cannot be greater than 60000 milliseconds). |
Output
JSON
symbol- The trading pair symbol related to the order or query.timestamp- The timestamp of the request or order.orderId- The unique identifier for the order.status- The status of the order or OCO.price- Price details related to the order.quantity- Quantity involved in the order.side- The side of the order, e.g., buy or sell.type- The type of order, e.g., limit, market, OCO.error- Error message if the request fails and continueOnFail is enabled.
Dependencies
- Binance API
- API key and secret for authentication
Troubleshooting
- Common issues include incorrect or expired API keys, leading to authentication errors.
- Timestamp synchronization errors if the provided timestamp is not aligned with Binance server time.
- Invalid parameter values, such as recvWindow exceeding 60000 milliseconds, causing request rejection.
- Network or connectivity issues when calling the Binance API endpoints.
Links
- Binance API Order Endpoints - Official Binance API documentation for order-related endpoints including OCO orders.
- Binance API Account Endpoints - Official Binance API documentation for account information and trade list endpoints.