GetAccountInfo (GAIN Only)


GetAccountInfo( <Broker>, <InfoType> );


<Broker> The selected Broker
<InfoType> The type of information you are requesting


This function returns various account information from the BROKER.  Because MTS can handle multiple brokers at the same time (trading to multiple brokers), users have to pass the <Broker> parameter to MTS to receive a proper response.


<InfoType Options>

"PostedMargin" Beginning Daily Margin Balance
"RealizedProfit" Realized Daily Profit (from closed orders)
"UnrealizedProfit" Un-Realized Daily Profit (from open orders)
"MarginFactor" The Margin Basis for your account
"MarginBalance" Actual Balance of Account to be Margined
"TotalAvailable" Total Margined Balance
"OpenPosiiton" Total Open Positions (Notice "TYPO" from GAIN)
"MaxDeal" Maximum Single Order Size
USDPostedMargin Posted Margin in USD
"USDRealizedProfit" Realized Profit in USD

 

 

 

Return Values

 

"PostedMargin"

   > 0                Positive Account Balance

   = 0                Account Value = ZERO

   < 0                Oops.. This is not good..

"RealizedProfit"

   > 0                Positive Realized Profit

   = 0                Realized Profit Value = ZERO

   < 0                Oops.. This is not good..

"UnrealizedProfit"

   > 0                Positive Unrealized Profit

   = 0                Unrealized Profit Value = ZERO

   < 0                Oops.. This is not good..

"MarginFactor"

   > 0                Internally Used by GAIN

"MarginBalance"

   > 0                Positive Account Balance

   = 0                Account Value = ZERO

   < 0                Oops.. This is not good..

"TotalAvailable"

   > 0                Positive Account Balance

   = 0                Account Value = ZERO

   < 0                Oops.. This is not good..

"OpenPosiiton"

   > 0                Positive Account Balance

   = 0                Account Value = ZERO

   < 0                Oops.. This is not good..

"MaxDeal"

   > 0                Positive Account Balance

   = 0                Account Value = ZERO

   < 0                Oops.. This is not good..

USDPostedMargin

   > 0                Positive Account Balance

   = 0                Account Value = ZERO

   < 0                Oops.. This is not good..

"USDRealizedProfit"

   > 0                Positive Account Balance

   = 0                Account Value = ZERO

   < 0                Oops.. This is not good..