Peraturanexchange.GetQuoteCurrency()
Fungsi ini digunakan untuk mendapatkan nama mata uang denominasi dari pasangan perdagangan saat ini, yaituquoteCurrency
.
Peraturanexchange.GetQuoteCurrency()
fungsi mengembalikan nama mata uang dari pasangan perdagangan saat ini.
string
exchange.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())
}
Misalnya: {@var/EXCHANGE exchange} exchange objectBTC_USDT
, yangexchange.GetQuoteCurrency()
fungsi kembaliUSDT
Jika pasangan perdagangan saat ini adalahETH_BTC
, yangexchange.GetQuoteCurrency()
fungsi kembaliBTC
.
{@fun/Account/exchange.GetCurrency exchange.GetCurrency}, {@fun/Account/exchange.SetCurrency exchange.SetCurrency}
exchange.SetCurrency Masa Depan