Peraturanexchange.GetAssets
fungsi digunakan untuk meminta maklumat aset akaun pertukaran.
Peraturanexchange.GetAssets()
fungsi mengembalikan array struktur {@struct/Asset Asset} jika permintaan data berjaya, atau null jika permintaan gagal.
{@struct/Asset Asset} array, nilai sifar
pertukaran.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);
}
Dapatkan maklumat mengenai aset akaun pertukaran,exchange.GetAssets()
Mengembalikan array dengan elemen struktur Aset.
PeraturanGetAssets()
fungsi objek Bursa Berjangka mengembalikan aset margin di bawah pasangan dagangan semasa (berasaskan mata wang, berasaskan USDT, berasaskan USDC, dan lain-lain).
{@struct/Asset Asset}
exchange.GetAccount exchange.GetName