Hi everyone,

Got a couple simple questions.

How do I retrieve my account value to do math with?

ex. I want to reverse a position with an adjusted size. if Long then short holdings + account value/price

Id like to do something similar with Margin Remaining.

Also, whats the best way to do absolute value?

Much Appreciated!

Author