I use the library python-binance.
When I connect my binance client, if I try to make a SHORT order, If Hedge mode is not active (more about Hedge mode activation) I g