Binance Spot Trade
AI-generatedOverview
This node enables users to execute spot trades on the Binance cryptocurrency exchange. It allows placing buy or sell orders for specified token trading pairs with configurable order types and parameters. This node is beneficial for automating trading strategies, portfolio rebalancing, or integrating Binance spot trading into broader workflows.
Practical examples include:
- Automatically buying a specific amount of BTCUSDT at a limit price.
- Selling tokens immediately at market price when certain conditions are met.
- Placing orders with different time-in-force policies like Good Till Cancel or Immediate or Cancel.
Properties
| Name | Meaning |
|---|---|
| Token Trading Pair | The trading pair symbol on Binance (e.g., BTCUSDT) representing the tokens to trade. |
| Trade Side | Direction of the trade: either "Buy" or "Sell". |
| Order Type | Type of order to place: "Limit" (set price) or "Market" (execute immediately at market). |
| Time in Force | Order execution policy: "Good Till Cancel", "Immediate or Cancel", or "Fill or Kill". |
| Quantity | Amount of the asset to buy or sell. |
| Price | Price per unit for limit orders (ignored for market orders). |
Output
The node outputs an array of JSON objects, each representing the response from Binance after placing an order. The JSON contains details about the executed order such as order status, executed quantity, price, and other metadata returned by Binance's API.
No binary data output is produced by this node.
Dependencies
- Requires an API key credential with appropriate permissions to trade on Binance.
- Uses the official Binance Connector library (
@binance/connector) to interact with Binance's Spot Trading API. - The user must configure the node with valid Binance API credentials (API key and secret).
Troubleshooting
Common issues:
- Invalid or missing API credentials will cause authentication failures.
- Insufficient balance errors if the account does not have enough funds to place the order.
- Incorrect trading pair symbols or unsupported pairs may result in errors from Binance.
- Using a price parameter with market orders has no effect and might cause confusion.
Error messages:
- Authentication errors typically indicate invalid API keys or insufficient permissions; verify and update credentials.
- Order rejection errors often relate to invalid parameters (e.g., quantity too low, price out of allowed range); check input values.
- Network or timeout errors suggest connectivity issues; retry or check network settings.