Account
Data structure for account information.
Attributes
| Name | Type | Description |
Info | object | Raw data returned by the exchange API. This property does not exist in backtesting mode. |
Balance | number | Available amount of quote currency. In spot trading, if the trading pair is BTC_USDT, Balance represents the current available USDT amount. In USDT-margined contracts, Balance represents the available margin (USDT, quoteCurrency) amount. |
FrozenBalance | number | Asset value frozen when orders are pending. |
Stocks | number | Available amount of base currency. In spot trading, if the trading pair is BTC_USDT, Stocks represents the current available BTC amount. In coin-margined contracts, Stocks represents the available margin (coin, baseCurrency) amount. |
FrozenStocks | number | Asset value frozen when orders are pending. |
Equity | number | Only supported by futures exchange objects. The |
UPnL | number | Only supported by futures exchange objects. The |
See Also
Remarks
The exchange.GetAccount() function returns an Account structure. The data in the returned structure depends on the currently set trading pair and contract code.