Feature request: Binance Hedge Mode
See original GitHub issueFirst of all, thanks for this awesome trading API!
I wonder if you would be open to add Binance Hedge Mode support.
This allows you to open a long and a short at the same time, giving you the option to hedge.
The createOrder needs to have a parameter for this option: positionSide
which can be ‘LONG’ ‘SHORT’ and ‘BOTH’ for both sides (default).
https://binance-docs.github.io/apidocs/testnet/en/#new-order-trade
I tried this out by simply adding a 7th optional parameter to createOrder and this seems to work fine. Of course I understand this will require more work to officially implement.
My test implementation: https://github.com/arenddeboer/ccxt/blob/d0184dcde3a3506ae49993d9038aa7f40fce3fe0/js/binance.js#L1136
Regards, Arend
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How to Enable Hedge Mode - Binance
The position mode is One-way Mode by default. You need to enable “Hedge Mode” to hold positions in both long and short directions...
Read more >Closing the long position with Hedge-Mode - Futures API
Hello, How can I close my current “ETHUSDT Long” position with api. Hedge mode is turned on. Can't close in hedge mode def...
Read more >Exchange-specific Notes - Freqtrade
Some exchanges require special configuration, which can be found below. Sample exchange configuration¶. A exchange configuration for "binance" would look as ...
Read more >Binance Hedge Mode Tutorial (Hedging Trading Strategy ...
In this Binance hedge mode tutorial, hedging trading strategy is explained for beginners, and it's shown how by trading in Binance hedge ...
Read more >Finandy - Exchange & Trading terminal for Binance - Medium
Feature request. Dear traders, a reminder that you have the opportunity to propose a new feature or vote for an existing feature. https://finandy ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ahh, perfect. Thanks!
@Gennttii I think it depends on your positionSide param. Let me know if you have issues with it (don’t forget your code / verbose output).