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
How can I monitor my account values and margin requirements in IBKR Mobile?
What is a Day 1 Commodities Margin Call?
How can I check the margin impact of an order before placing it?
How much stock do I need to sell in order to meet IBKR's liquidity standards?