Binance icon

Binance

Consume Binance API

Overview

This node integrates with the Binance API to manage futures trading leverage settings. Specifically, the "Future - Leverage" operation allows users to set or adjust the leverage for a selected futures trading symbol on Binance. This is useful for traders who want to control their risk exposure by increasing or decreasing leverage on specific futures contracts.

Practical examples include:

  • Increasing leverage on a BTCUSDT futures contract before opening a larger position.
  • Switching margin type between isolated and crossed margin to optimize margin usage.
  • Adjusting leverage dynamically based on market conditions or trading strategies.

Properties

Name Meaning
Symbol Name or ID The futures trading symbol to apply leverage to. Choose from a list or specify an ID via expression.
Leverage The leverage multiplier to set for the selected symbol. Allowed values range from 1 to 75.
Margin Type The margin mode to use: either "ISOLATED" (margin allocated per position) or "CROSSED" (shared margin across positions).

Output

The node outputs JSON data representing the result of the leverage adjustment request to Binance. This typically includes confirmation details such as the symbol, new leverage value, margin type, and any status messages returned by the Binance API.

No binary data output is involved.

Dependencies

  • Requires a valid Binance API key credential configured in n8n for authentication.
  • Access to Binance Futures API endpoints.
  • The node relies on internal methods and properties defined in bundled dependencies to load symbols and execute API calls.

Troubleshooting

  • Invalid Symbol: If the specified symbol is not recognized or supported, the node may return an error. Ensure the symbol is correct and available in Binance Futures.
  • Leverage Out of Range: Setting leverage outside the allowed range (1-75) will cause errors. Use values within this range.
  • API Authentication Errors: Missing or invalid API credentials will prevent successful requests. Verify that the Binance API key is correctly configured and has necessary permissions.
  • Margin Type Errors: Providing an unsupported margin type value will cause failures. Use only "ISOLATED" or "CROSSED".
  • Rate Limits: Binance enforces rate limits; excessive requests may lead to temporary blocking. Implement retries or delays if needed.

Links and References

Discussion