Binance icon

Binance

Consume Binance API (v.0.1.9)

Overview

This node interacts with the Binance API to perform various account and trading operations related to cryptocurrency trading. Specifically, the 'Account Trade List (USER_DATA)' operation fetches a list of trades for a specified trading symbol within a given timestamp range, optionally filtered by additional parameters such as order ID, start and end times, trade ID, limit, and receive window. This node is useful for users who want to retrieve detailed trade history data for analysis, reporting, or automated trading strategies.

Use Case Examples

  1. Retrieve all trades for the BTCUSDT trading pair from the last 24 hours.
  2. Fetch trades for a specific order ID to verify execution details.
  3. Limit the number of returned trades to 100 for quick summary reports.

Properties

Name Meaning
Symbol The trading pair symbol for which to fetch trade data, e.g., BTCUSDT.
Timestamp The timestamp at which the request is made, used for API request validation.
Add Optional Operations Additional optional parameters to refine the trade list query, such as order ID, start and end times, trade ID, limit, and receive window.

Output

JSON

  • symbol - The trading pair symbol for the trades returned.
  • timestamp - The timestamp of the request.
  • orderId - The order ID associated with the trades (if specified).
  • startTime - The start time filter applied to the trade list (if specified).
  • endTime - The end time filter applied to the trade list (if specified).
  • formId - The trade ID from which to fetch trades (if specified).
  • limit - The maximum number of trades returned.
  • recvWindow - The receive window used for the request.
  • trades - Array of trade objects returned by the Binance API for the specified parameters.

Dependencies

  • Binance API

Troubleshooting

  • Ensure the API key and secret used for authentication are valid and have the necessary permissions to access trade data.
  • Verify that the 'symbol' parameter is correctly specified and corresponds to a valid trading pair on Binance.
  • Check that the 'timestamp' parameter is accurate and within an acceptable range to avoid request rejection due to timing issues.
  • If using optional parameters like 'startTime' and 'endTime', ensure they are valid date-time values and that 'startTime' is before 'endTime'.
  • The 'limit' parameter should not exceed 1000; exceeding this may cause the API to reject the request.

Links

Discussion