exchange.GetQuoteCurrency
Gets the name of the quote currency of the current trading pair, i.e. quoteCurrency.
exchange.GetQuoteCurrency()Examples
Read the quote currency after switching trading pairs.
javascript
function main() {
exchange.SetCurrency("BTC_USDT")
Log(exchange.GetQuoteCurrency())
// Output: USDT
exchange.SetCurrency("ETH_BTC")
Log(exchange.GetQuoteCurrency())
// Output: BTC
}
python
def main():
exchange.SetCurrency("BTC_USDT")
Log(exchange.GetQuoteCurrency())
# Output: USDT
exchange.SetCurrency("ETH_BTC")
Log(exchange.GetQuoteCurrency())
# Output: BTC
rust
fn main() {
exchange.SetCurrency("BTC_USDT");
Log!(exchange.GetQuoteCurrency());
// Output: USDT
exchange.SetCurrency("ETH_BTC");
Log!(exchange.GetQuoteCurrency());
// Output: BTC
}Returns
| Type | Description |
string | Name of the quote currency of the current trading pair. |
See Also
Remarks
For example: when the current trading pair of the exchange object is BTC_USDT, the exchange.GetQuoteCurrency() function returns USDT; if the current trading pair is ETH_BTC, then the exchange.GetQuoteCurrency() function returns BTC.