Actions15
- Query Order (USER_DATA)
- Current Open Orders (USER_DATA)
- Query OCO (USER_DATA)
- Query all OCO (USER_DATA)
- Query Open OCO (USER_DATA)
- Account Information (USER_DATA)
- Account Trade List (USER_DATA)
- Query Current Order Count Usage (TRADE)
- Cancel an Existing Order and Send a New Order (TRADE)
- Cancel Order (TRADE)
- Cancel OCO (TRADE)
- All Orders (USER_DATA)
- New Order (TRADE)
- New OCO (TRADE)
- Cancel all Open Orders on a Symbol (TRADE)
Overview
This node integrates with the Binance API to perform various trading operations, specifically focusing on creating new trade orders. It supports placing different types of orders such as LIMIT, MARKET, STOP_LOSS, and others, allowing users to specify parameters like symbol, side (BUY/SELL), quantity, price, stop price, and additional optional settings. This node is beneficial for automating cryptocurrency trading workflows, enabling users to programmatically place orders on Binance based on dynamic inputs or triggers within n8n workflows.
Use Case Examples
- Placing a LIMIT buy order for BTCUSDT with a specified quantity and price.
- Creating a MARKET sell order for ETHUSDT with a given quantity.
- Setting a STOP_LOSS_LIMIT order with a stop price and trailing delta for risk management.
Properties
| Name | Meaning |
|---|---|
| Symbol | The trading pair symbol for the order, e.g., BTCUSDT. |
| Side | The side of the order, either BUY or SELL. |
| Type | The type of order to place, such as LIMIT, MARKET, STOP_LOSS, etc. |
| Timestamp | The timestamp of the order request, used for request validation. |
| Time In Force | Specifies how long the order remains active before it is executed or expires, applicable for certain order types. |
| Quantity | The quantity of the asset to buy or sell in the order. |
| Price | The price at which to place the order, applicable for limit and similar order types. |
| Quote Order Qty | The quantity in quote currency for market orders. |
| Stop Price | The stop price for stop loss and take profit orders. |
| Trailing Delta | The trailing delta value used with stop loss and take profit orders for trailing stops. |
| Add Optional Operations | Additional optional parameters for the order such as new client order ID, strategy ID, iceberg quantity, response type, and receive window. |
Output
JSON
orderId- Unique identifier for the placed order.symbol- Trading pair symbol for the order.status- Current status of the order (e.g., NEW, FILLED).clientOrderId- Client-specified order ID.transactTime- Timestamp of the transaction.price- Price at which the order was placed.origQty- Original quantity of the order.executedQty- Quantity that has been executed.side- Side of the order (BUY or SELL).type- Type of the order (LIMIT, MARKET, etc.).
Dependencies
- Binance API
- API key and secret for authentication
Troubleshooting
- Common issues include invalid or missing API credentials, resulting in authentication errors.
- Incorrect or missing required parameters such as symbol, side, type, or timestamp can cause request failures.
- Network or connectivity issues may prevent successful API calls.
- Error messages from Binance API typically indicate the nature of the problem, such as rate limits, invalid parameters, or insufficient balance.
- Ensure the timestamp parameter is accurate and synchronized with Binance server time to avoid signature errors.
Links
- Binance API Documentation - New Order (TRADE) - Official Binance API documentation for placing new trade orders.