Activate or deactivate Hedge-Mode
In this section, we will see how to activate or deactivate the Hedge Mode of your API! First, we must verify that we connected our APIs correctly:
Here we have to enter the section 'Binance perpetual futures API' - 'Trade' - 'Change Position Mode (TRADE)':
We will write 'True' in the space provided and check 'Send'.
If everything is correct, we should receive status '200 OK'.
This confirmation would be enough, but if we want to verify that the change has been made correctly, we can see it here:
'Binance perpetual futures API' - 'Trade' - 'Get Current Position Mode (USER_DATA)', and click on the 'Send' option.
We must receive 'Status 200 OK' and the message: 'dualSidePosition': true.
We may now be able to operate in Hedge Mode without any problem!
If we want to deactivate it, we only have to write the word 'false' where it is indicated in the image and press the 'send' key:
To verify it, we can follow the same steps as before:
We must receive 'Status 200 OK' and this message: 'dualSidePosition': false.