The exchange.GetQuoteCurrency()
function is used to get the name of the denominated currency of the current trading pair, i.e. quoteCurrency
.
The exchange.GetQuoteCurrency()
function returns the name of the denominated currency of the current trading pair.
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())
}
For example: {@var/EXCHANGE exchange} exchange object’s current transaction pair is BTC_USDT
, the exchange.GetQuoteCurrency()
function returns USDT
. If the current trading pair is ETH_BTC
, the exchange.GetQuoteCurrency()
function returns BTC
.
{@fun/Account/exchange.GetCurrency exchange.GetCurrency}, {@fun/Account/exchange.SetCurrency exchange.SetCurrency}
exchange.SetCurrency Futures