Binance icon

Binance

Consume Binance API (v.0.1.9)

Overview

This node interacts with the Binance API to perform various trading-related operations, specifically focusing on the 'Cancel all Open Orders on a Symbol' operation within the 'Default' resource. It allows users to cancel all open orders for a specified trading symbol on Binance. This is useful for traders who want to quickly clear all pending orders for a particular asset to manage risk or adjust their trading strategy. For example, a user might use this node to cancel all open buy and sell orders for BTCUSDT before placing new orders.

Use Case Examples

  1. Cancel all open orders for the BTCUSDT trading pair on Binance to prevent unintended trades.
  2. Clear all pending orders on a specific symbol before executing a new trading strategy.

Properties

Name Meaning
Symbol The trading symbol (e.g., BTCUSDT) for which all open orders will be cancelled. This is a required string input.
Timestamp The timestamp parameter used for the API request to ensure the request is valid and timely. This is a required number input.
Recv Window An optional parameter specifying the number of milliseconds after timestamp the request is valid for. It cannot be greater than 60000.

Output

JSON

  • symbol - The trading symbol for which orders were cancelled.
  • timestamp - The timestamp used in the request.
  • recvWindow - Optional parameter indicating the receive window for the request.
  • result - The response from Binance API indicating the status of the cancellation of all open orders.

Dependencies

  • Binance API

Troubleshooting

  • Ensure the API key and secret used for authentication are correct and have the necessary permissions to cancel orders.
  • Verify that the symbol provided is valid and currently has open orders to cancel.
  • Check that the timestamp is accurate and synchronized with Binance server time to avoid request rejection due to timing issues.
  • If the 'Recv Window' parameter is used, ensure it does not exceed 60000 milliseconds as per Binance API limits.

Links

Discussion