Getting Account Info
(GAIN Only)
This function allows users to get information from the Broker Back office server.
The type of information is detailed below. Most of this information is used
for "decision support" functions with trading systems that deploy
some type of equity management or loss containment systems.
Executing the GetAccountInto function requires two parameters.
GetAccountInfo( <Broker>, <InfoType>);
| <Broker> | The selected Broker to fire the order to |
| <InfoType> | Any of the supported INFO types (below) |
<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 |
// get current account balance from MTS/broker
CurrentBalance = mentts.call("GetAccountInfo","GAIN", "TotalAvailable");
// Will return your total margined account balance
// get current MaxDeal from MTS/broker
CurrentBalance = mentts.call("GetAccountInfo","GAIN", "MaxDeal");
// Will return your maximum single order size