Binance icon

Binance

Consume Binance API

Spot → Candle

AI-generated

Overview

The 'Binance' node in n8n integrates with the Binance API to perform various actions, including retrieving candlestick (candle) data for spot trading pairs. This functionality is particularly useful for monitoring market trends, conducting technical analysis, and automating trading strategies based on historical price data.

Use Case Examples

  1. Retrieving hourly candlestick data for BTCUSDT to analyze price movements.
  2. Fetching daily candlestick data for ETHUSDT to assess market trends.
  3. Automating the collection of candlestick data for multiple trading pairs for backtesting trading strategies.

Properties

Name Meaning
symbol The trading pair symbol on Binance (e.g., BTCUSDT) to fetch candlestick data for.
interval The time interval for each candlestick (e.g., 1m, 5m, 1h) to specify the granularity of the data.
limit The maximum number of candlesticks to retrieve, allowing users to control the amount of data fetched.
startTime The start timestamp for the data range, enabling users to specify the beginning of the data retrieval period.
endTime The end timestamp for the data range, allowing users to define the end of the data retrieval period.

Output

JSON

  • candles - An array of candlestick data, each containing open time, open price, high price, low price, close price, volume, and close time.

Dependencies

  • Binance API credentials (API key and secret) are required to authenticate and interact with the Binance API.

Troubleshooting

  • Ensure that the Binance API credentials are correctly configured and have the necessary permissions to access candlestick data.
  • Verify that the specified trading pair symbol and interval are valid and supported by the Binance API.
  • Check for any network issues or API rate limits that might affect data retrieval.

Links

Discussion