How do I obtain available funds/margin for entering a trade? I would like to the trade quantity based on available, usable funds.
In looking at the Help documentation, is this correct?
double buyingPower = Account.GetAccountItem(AccountItem.BuyingPower, Currency.UsDollar).Value;
That seems like a lot of "extra" code to access an attribute on an account. Why doesn't the Account object have straightforward properties?
Thanks,
Matt
Comment