Binance icon

Binance

Consume Binance API

Overview

This node interacts with the Binance API to retrieve candlestick (candle) data for futures trading. It allows users to specify a trading symbol, interval, and time range to fetch historical price data in the form of candlesticks. This is useful for traders and analysts who want to analyze market trends, perform technical analysis, or build automated trading strategies based on historical futures data.

Use Case Examples

  1. Fetch the last 50 candlesticks for BTCUSDT futures on a 1-hour interval.
  2. Retrieve candlestick data for ETHUSDT futures between specific start and end times for detailed market analysis.

Properties

Name Meaning
Symbol Name or ID The trading symbol or ID for the futures contract to retrieve candlestick data for. Users can select from a list or specify an ID via expression.
Interval Name or ID The time interval for each candlestick (e.g., 1m, 5m, 1h). Users can select from a list or specify an ID via expression.
Limit The maximum number of candlestick results to return, with a minimum value of 1.
Start Time The start time for the candlestick data retrieval, allowing users to specify the beginning of the time range.
End Time The end time for the candlestick data retrieval, allowing users to specify the end of the time range.

Output

JSON

  • openTime - The opening time of the candlestick.
  • open - The opening price of the candlestick.
  • high - The highest price during the candlestick interval.
  • low - The lowest price during the candlestick interval.
  • close - The closing price of the candlestick.
  • volume - The trading volume during the candlestick interval.
  • closeTime - The closing time of the candlestick.
  • quoteAssetVolume - The volume of the quote asset traded during the interval.
  • numberOfTrades - The number of trades executed during the candlestick interval.
  • takerBuyBaseAssetVolume - The volume of the base asset bought by takers.
  • takerBuyQuoteAssetVolume - The volume of the quote asset bought by takers.

Dependencies

  • Binance API key credential

Troubleshooting

  • Ensure the Binance API key credential is correctly configured and has the necessary permissions to access futures data.
  • Verify that the symbol and interval values are valid and supported by Binance futures API.
  • Check the date and time format for startTime and endTime to ensure they are correctly specified.
  • If the limit is set too high, the API might reject the request or return partial data; try reducing the limit.

Links

Discussion