Margin (and leverage) calculation

The margin used for a forex system is not populating correctly and only shows zero. I am using system ID 101623769. This is an issue as different currencies have different margins, and the leverage calculations based on the SIGNALS table do not provide a good approximation of how much margin is needed to trade the system.

Is there a way to apply IB’s margins to forex to the calculations in that column?

Edit: The code in Measuring Leverage works for Forex systems