Binance icon

Binance

Consume Binance API (v.0.1.9)

Overview

This node interacts with the Binance API to perform various operations related to cryptocurrency trading orders and account information. Specifically, for the 'Current Open Orders (USER_DATA)' operation, it retrieves the current open orders for a user on Binance. This is useful for traders who want to monitor their active orders in real-time. The node supports additional optional parameters like 'Symbol' to filter orders by trading pair and 'Recv Window' to specify the request validity period.

Use Case Examples

  1. A trader uses this node to fetch all their current open orders to decide which orders to modify or cancel.
  2. An automated trading system queries current open orders to adjust trading strategies based on active positions.

Properties

Name Meaning
Timestamp The timestamp parameter is required for the operation to specify the exact time of the request, ensuring synchronization with Binance's server time.
Add Optional Operations A collection of optional parameters that can be added to the request, including 'Symbol' to filter orders by trading pair and 'Recv Window' to specify the maximum allowed time difference for the request.

Output

JSON

  • orderId - The unique identifier of the open order.
  • symbol - The trading pair symbol for the order.
  • status - The current status of the order (e.g., NEW, PARTIALLY_FILLED).
  • price - The price at which the order was placed.
  • origQty - The original quantity of the order.
  • executedQty - The quantity of the order that has been executed.
  • type - The type of the order (e.g., LIMIT, MARKET).
  • side - The side of the order (BUY or SELL).
  • time - The timestamp when the order was created.

Dependencies

  • Binance API
  • API key and secret for authentication

Troubleshooting

  • Ensure the timestamp parameter is accurate and synchronized with Binance server time to avoid request rejection.
  • Verify that the API key and secret credentials are correctly configured and have the necessary permissions for user data access.
  • If the optional 'Symbol' parameter is used, ensure it matches a valid trading pair on Binance.
  • Check that the 'Recv Window' value does not exceed 60000 milliseconds, as Binance enforces this limit.

Links

Discussion