Actions10
- Spot Actions
- Future Actions
- Custom Actions
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 given 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.
Common scenarios include:
- Adjusting leverage dynamically based on market conditions.
- Automating risk management strategies by programmatically setting leverage before placing trades.
- Managing multiple futures positions with different leverage settings in an automated workflow.
Example: A user wants to set 20x isolated margin leverage on the BTCUSDT futures contract before executing a trade.
Properties
| Name | Meaning |
|---|---|
| Symbol Name or ID | The futures trading symbol to set leverage for. Choose from a list of available symbols or specify an ID via expression. |
| Leverage | The leverage multiplier to apply, ranging 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, applied leverage, and margin type status. No binary data output is involved.
Dependencies
- Requires an active Binance API key credential configured in n8n for authentication.
- Access to Binance Futures API endpoints.
- The node depends on internal methods and actions defined in bundled source files (
./methods,./actions/binance.properties,./actions/binance.execute), which handle loading symbol options and executing the API call.
Troubleshooting
- Invalid Symbol: If the symbol provided is not recognized or unsupported, the node may return an error. Ensure the symbol matches Binance's futures symbols.
- Leverage Out of Range: Setting leverage outside the allowed range (1-75) will cause errors. Use values within this range.
- Margin Type Errors: Providing an invalid margin type other than "ISOLATED" or "CROSSED" will fail.
- API Authentication Failures: Missing or incorrect API credentials will prevent successful execution.
- Rate Limits: Binance enforces rate limits; excessive requests may lead to temporary blocking.
To resolve these issues, verify input values, ensure valid API credentials, and respect Binance API usage policies.
Links and References
- Binance Futures API Documentation
- n8n Expressions Documentation (for using expressions in property inputs)