What currency is margin calculated in?

Margin is calculated in the currency of the security, but it will display in your Account window in your base currency.

Powered by IBot
What is a base currency, how can I change it, and how does it affect my account?
Am I able to select a base currency for my account?
Margin Requirement Terms
What are Projected Overnight Margin and Projected Look Ahead Margin?