资源加载中... loading...

Account

The structure of the account information.

The original data returned by the exchange interface, no such attribute is available for backtesting. Info object The number of available denominated currencies, in spot, if the trading pair is BTC_USDT, Balance refers to the number of currently available USDT. In the U-standard contract, Balance refers to the amount of available margin (USDT, quoteCurrency). Balance number The value of the frozen assets when the order is not filled. FrozenBalance number The number of available trading currencies, in spot, if the trading pair is BTC_USDT, Stocks refers to the number of currently available BTC. Stocks refers to the number of available margin (currency, baseCurrency) in a currency-based contract. Stocks number The value of the frozen assets when the order is not filled. FrozenStocks number Only futures exchange objects support this field. The Equity field is the total equity of the futures account margin under the current contract setting. If the exchange interface does not provide relevant data, this field is 0.

Equity number This field is only supported by futures exchange objects. The UPnL field is the sum of the unrealized profit and loss of all positions opened by the futures account margin under the current contract settings.

UPnL number

The exchange.GetAccount() function returns an Account structure. The data in the returned structure depends on the currently set trading pair, contract code.

{@fun/Account/exchange.GetAccount exchange.GetAccount}

Depth Asset