question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: Binance Hedge Mode

See original GitHub issue

First 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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
arenddeboercommented, Apr 28, 2020

Ahh, perfect. Thanks!

0reactions
kroitorcommented, Jun 8, 2020

@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).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found