Binance icon

Binance

Consume Binance API

Overview

This node interacts with the Binance API to place spot market orders. It supports buying, selling, and clearing orders for specified trading symbols. Users can specify the order side (BUY, SELL, CLEAR), the trading symbol, quantity, price, and order type (LIMIT or MARKET). This node is useful for automating cryptocurrency trading strategies, managing portfolio positions, or integrating Binance trading capabilities into workflows.

Use Case Examples

  1. Placing a LIMIT buy order for a specific cryptocurrency symbol with a defined quantity and price.
  2. Executing a MARKET sell order to quickly sell a specified quantity of a cryptocurrency.
  3. Clearing existing orders for a given symbol to manage open positions.

Properties

Name Meaning
Side The action to perform on the order, either BUY, SELL, or CLEAR existing orders.
Symbol Name or ID The trading symbol for the order, selectable from a list or specified by ID via expression.
Quantity The amount of the asset to buy or sell. Not applicable when clearing orders.
Price The price at which to place the order. Required for LIMIT orders, not applicable when clearing orders.
Order Type The type of order to place, either LIMIT or MARKET.

Output

JSON

  • orderId - Unique identifier of the placed order.
  • symbol - Trading symbol for which the order was placed.
  • side - Order side indicating buy or sell.
  • type - Type of the order, e.g., LIMIT or MARKET.
  • price - Price at which the order was placed (if applicable).
  • quantity - Quantity of the asset ordered.
  • status - Current status of the order, e.g., filled, open, canceled.

Dependencies

  • Binance API with appropriate API key credentials for authentication.

Troubleshooting

  • Ensure API credentials are correctly configured and have necessary permissions for trading operations.
  • Verify that the symbol selected is valid and supported by Binance spot trading.
  • Check that the quantity and price values are within allowed limits and correctly formatted.
  • For LIMIT orders, ensure the price is specified; for MARKET orders, price should typically be omitted or zero.
  • If clearing orders, ensure no quantity or price is provided as they are not applicable.

Links

Discussion