The exchange.GetAssets
function is used to request exchange account asset information.
The exchange.GetAssets()
function returns an array of {@struct/Asset Asset} structures if the request for data succeeds, or null if the request fails.
{@struct/Asset Asset} array, null value
exchange.GetAssets()
function main() {
// exchange.SetCurrency("BTC_USDT") // You can set up trading pairs
// exchange.SetContractType("swap") // You can set up contracts
var assets = exchange.GetAssets()
Log(assets)
}
def main():
# exchange.SetCurrency("BTC_USDT") # You can set up trading pairs
# exchange.SetContractType("swap") # You can set up contracts
assets = exchange.GetAssets()
Log(assets)
void main() {
// exchange.SetCurrency("BTC_USDT"); // You can set up trading pairs
// exchange.SetContractType("swap"); // You can set up contracts
auto assets = exchange.GetAssets();
Log(assets);
}
Get information about the assets of an exchange account, exchange.GetAssets()
returns an array with elements of the Asset structure.
The GetAssets()
function of the Futures Exchange object returns the margin assets under the current trading pair (currency-based, USDT-based, USDC-based, etc.).
{@struct/Asset Asset}
exchange.GetAccount exchange.GetName