Binance icon

Binance

Interact with Binance API

Get All Orders

AI-generated

Overview

This node interacts with the Binance API to retrieve all account orders for a specified trading pair symbol. It fetches orders that are active, canceled, or filled, providing comprehensive order history for the user's Binance account. This is useful for traders and developers who want to monitor or analyze their trading activity on Binance.

Use Case Examples

  1. A user wants to get a list of all their BTCUSDT orders to analyze their trading history.
  2. A developer integrates this node to fetch all orders for a specific symbol to display in a custom trading dashboard.

Properties

Name Meaning
Symbol The trading pair symbol for which to retrieve all orders, e.g., BTCUSDT.
Limit Maximum number of orders to return in the response.

Output

JSON

  • orderId - Unique identifier of the order.
  • symbol - Trading pair symbol of the order.
  • status - Current status of the order (e.g., filled, canceled).
  • price - Price at which the order was placed.
  • origQty - Original quantity of the order.
  • executedQty - Quantity of the order that has been executed.
  • type - Type of the order (e.g., limit, market).
  • side - Side of the order (buy or sell).
  • time - Timestamp when the order was created.

Dependencies

  • Binance API credentials (API key and secret)

Troubleshooting

  • Ensure Binance API credentials are correctly configured and have the necessary permissions to access order information.
  • If the node throws an error about an unknown operation, verify that the operation parameter is set to 'getAllOrders'.
  • Check that the symbol parameter is correctly formatted and corresponds to a valid trading pair on Binance.
  • If the limit parameter is set too high, Binance API might reject the request; use reasonable limits.

Links

Discussion