The exchange.GetCurrency()
function is used to get the currently set trading pair.
The exchange.GetCurrency()
function returns the trading pair set by the current {@var/EXCHANGE exchange} exchange object.
string
exchange.GetCurrency()
function main() {
Log("the current trading pair of exchange is:", exchange.GetCurrency())
}
def main():
Log("the current trading pair of exchange is:", exchange.GetCurrency())
void main() {
Log("the current trading pair of exchange is:", exchange.GetCurrency());
}
The trading pair format is uppercase uniformly, using underscores to separate baseCurrency
and quoteCurrency
, such as BTC_USDT
.
{@fun/Account/exchange.SetCurrency exchange.SetCurrency}
exchange.GetLabel exchange.SetCurrency