Type/to search
Built-in Functions
Global
Log
Market
Trade
Account
Futures
Exchange
exchange.GetName
exchange.GetLabel
exchange.GetCurrency
exchange.SetCurrency
exchange.GetQuoteCurrency
exchange.GetPeriod
exchange.SetMaxBarLen
exchange.SetPrecision
exchange.GetRate
exchange.SetRate
exchange.SetBase
exchange.GetBase
exchange.SetProxy
exchange.SetTimeout
exchange.Encode
IO
Network
Storage
Threads
TA
Talib
OS
Structures
Built-in Variables and Constants
Conventions
Exchanges

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

TypeDescription

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.