Sumber dimuat naik... memuat...

exchange.GetQuoteCurrency

Peraturanexchange.GetQuoteCurrency()Fungsi digunakan untuk mendapatkan nama mata wang yang diisytiharkan pasangan dagangan semasa, iaituquoteCurrency.

Peraturanexchange.GetQuoteCurrency()fungsi mengembalikan nama mata wang yang diisytiharkan pasangan dagangan semasa. senar

pertukaran.GetQuoteCurrency()

function main() {
    exchange.SetCurrency("BTC_USDT")
    Log("BTC_USDT denominated currency name:", exchange.GetQuoteCurrency())
    // exchange.SetCurrency("ETH_BTC")
    // Log("ETH_BTC denominated currency name:", exchange.GetQuoteCurrency())
}
def main():
    exchange.SetCurrency("BTC_USDT")
    Log("BTC_USDT denominated currency name:", exchange.GetQuoteCurrency())
    # exchange.SetCurrency("ETH_BTC")
    # Log("ETH_BTC denominated currency name:", exchange.GetQuoteCurrency())
void main() {
    exchange.SetCurrency("BTC_USDT");
    Log("BTC_USDT denominated currency name:", exchange.GetQuoteCurrency());
    // exchange.SetCurrency("ETH_BTC")
    // Log("ETH_BTC denominated currency name:", exchange.GetQuoteCurrency())
}

Sebagai contoh: {@var/EXCHANGE pertukaran} pertukaran objeks pasangan urus niaga semasa adalahBTC_USDT, yangexchange.GetQuoteCurrency()fungsi pulanganUSDT. Jika pasangan dagangan semasa adalahETH_BTC, yangexchange.GetQuoteCurrency()fungsi pulanganBTC.

{@fun/Account/exchange.GetCurrency exchange.GetCurrency}, {@fun/Account/exchange.SetCurrency exchange.SetCurrency}

exchange.SetCurrency Masa hadapan