Whenever we need to place a futures order, we need to set margin type and leverages in a separate requests.
Actually this is logically bad idea becase we need to make 3 call in a row to achieve this.
Also if the margin type or leverage was the same value as we need to set Futures API throwing an error like this:
margin type could not change: Error: No need to change margin type.
So I have 2 questions:
1- Why we don’t have an option to set Margin Type and Levarage while we’re opening a position?
2- Is it possible to get current Levarage and Margin Type info of every futures pair from the Futures API?