gateio / gateapi-python

243 stars 91 forks source link

Leverage Issue #117

Closed kasahh closed 2 years ago

kasahh commented 2 years ago

Updating leverage using "update_dual_mode_position_leverage" changes the leverage from Cross to Isolated. I want it to remain in Cross mode when I update the leverage but using either "leverage" or "cross_leverage_limit" variables yield the same result. What could be the problem?

revilwang commented 2 years ago

If you update leverage to non-zero value, the leverage will be changed to Isolated. To remain in cross leverage, you have to set the leverage to 0, then set cross_leverage_limit to other non-zero values to set you cross leverages.

I don't know if this answers your question. If so, please provide more details about the problem you encountered.

kasahh commented 2 years ago

that worked for me. thanks