Binance icon

Binance

Interact with Binance API

Get Trade List

AI-generated

Overview

This node interacts with the Binance API to retrieve a list of trades for a specific account and trading symbol. It is useful for users who want to fetch detailed trade history data for a particular trading pair on Binance, such as BTCUSDT. This can help in analyzing past trades, tracking performance, or integrating trade data into other workflows.

Use Case Examples

  1. Fetch the last 50 trades for the BTCUSDT trading pair to analyze recent trading activity.
  2. Retrieve trade history for a specific symbol to generate reports or perform further data processing.

Properties

Name Meaning
Symbol The trading pair symbol for which to retrieve the trade list, e.g., BTCUSDT.
Limit Maximum number of trade results to return, with a minimum value of 1.

Output

JSON

  • symbol - The trading pair symbol for the trade.
  • id - Unique identifier for the trade.
  • orderId - Order ID associated with the trade.
  • price - Price at which the trade was executed.
  • qty - Quantity of the asset traded.
  • quoteQty - Quote asset quantity.
  • commission - Commission charged for the trade.
  • commissionAsset - Asset in which the commission was paid.
  • time - Timestamp of when the trade occurred.
  • isBuyer - Boolean indicating if the account was the buyer in the trade.
  • isMaker - Boolean indicating if the trade was a maker order.
  • isBestMatch - Boolean indicating if the trade was the best match.

Dependencies

  • Binance API credentials (API key and secret)

Troubleshooting

  • Ensure that Binance API credentials are correctly configured and have the necessary permissions to access trade data.
  • If the node throws an error about an unknown operation, verify that the operation parameter is set to 'getMyTrades'.
  • 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 may reject the request; keep it within reasonable limits (e.g., 50).

Links

Discussion