Is it possible to get Margin information about Futures from the API?

It is possible to check how a trade execution is expected to change the account margin requirements. This is achieved by setting the whatIf attribute of the Order object to True. When enabled, the order is not sent to a destination, but instead undergoes a credit check for the expected post-trade margin requirement. For more information on this functionality, please see the documentation.

Powered by IBot
What does the error message "Insufficient equity to cover initial margin requirements" mean, and how can I resolve it?
How do I set a limit on using margin?
How much stock do I need to sell in order to meet IBKR's liquidity standards?
What is a Day 1 Commodities Margin Call?