Binance icon

Binance

Consume Binance API

Overview

This node integrates with the Binance API, specifically supporting operations on the "Spot" resource such as the "Exchange" operation. It allows users to interact with Binance's spot trading features by selecting or specifying a trading symbol (e.g., BTCUSDT). This node is beneficial for automating cryptocurrency trading workflows, fetching market data, or managing spot trades programmatically within n8n.

For example, a user can automate checking the current price of a specific trading pair or execute spot trades based on custom logic without manual intervention.

Properties

Name Meaning
Symbol Name or ID Choose a trading symbol from a dynamically loaded list or specify one using an expression. Represents the trading pair (e.g., BTCUSDT) to operate on in the exchange.

Output

The node outputs JSON data corresponding to the response from the Binance API for the selected spot exchange operation. The structure typically includes details about the trading symbol, prices, order status, or other relevant market/trade information depending on the exact exchange action performed.

If binary data is returned by the API (e.g., for certain endpoints), it will be included accordingly, but this node primarily deals with JSON responses related to spot trading.

Dependencies

  • Requires an API key credential for authenticating with the Binance API.
  • The node depends on internal methods and properties defined in bundled files (methods, binance.properties, binance.execute) which handle loading options and executing API calls.
  • Proper configuration of the Binance API credentials in n8n is necessary for successful operation.

Troubleshooting

  • Invalid or missing API credentials: Ensure that the Binance API key and secret are correctly configured in n8n credentials.
  • Symbol not found or invalid: If the specified symbol does not exist or is misspelled, the node may return an error. Use the provided dynamic symbol list or verify the symbol format.
  • API rate limits exceeded: Binance enforces rate limits; hitting these may cause errors. Implement appropriate delays or retries.
  • Network or connectivity issues: Verify network access to Binance API endpoints.
  • Unexpected API responses: Check if Binance has changed their API or if there are temporary service disruptions.

Links and References

Discussion