Binance icon

Binance

Consume Binance API

Overview

This node interacts with the Binance API to manage futures orders. It supports placing buy or sell orders, clearing all orders, and retrieving open orders for a specified symbol. This is useful for automated trading strategies, portfolio management, or monitoring futures positions on Binance.

Use Case Examples

  1. Placing a buy order for a specific futures contract with a defined quantity and price.
  2. Selling a futures contract to close a position.
  3. Clearing all open futures orders for a symbol.
  4. Retrieving all open futures orders to monitor active positions.

Properties

Name Meaning
Side The type of order action to perform: BUY, SELL, CLEAR (clear all orders), or GET (retrieve open orders).
Symbol Name or ID The futures contract symbol to operate on, selectable from a list or specified by ID.
Quantity The amount of the futures contract to buy or sell. Required for BUY and SELL sides.
Price The price at which to place the order. Required for BUY and SELL sides.
Reduce Only A boolean flag indicating if the order should only reduce an existing position. Applicable only for BUY and SELL sides.

Output

JSON

  • orderId - The unique identifier of the placed or retrieved order.
  • status - The status of the order (e.g., NEW, FILLED, CANCELED).
  • symbol - The symbol of the futures contract involved in the order.
  • side - The side of the order (BUY or SELL).
  • price - The price at which the order was placed.
  • quantity - The quantity involved in the order.
  • reduceOnly - Indicates if the order is reduce-only.
  • orders - List of open orders when retrieving open orders.

Dependencies

  • Binance API key credential for authentication

Troubleshooting

  • Ensure the Binance API key credential is correctly configured and has permissions for futures trading.
  • Verify that the symbol selected is valid and supported by Binance futures.
  • Quantity and price must be positive numbers when placing orders; zero or negative values will cause errors.
  • The 'Reduce Only' flag is only applicable for BUY and SELL operations; using it with CLEAR or GET will be ignored or cause errors.

Links

Discussion