exchange.GetCurrency
Gets the currently set trading pair.
exchange.GetCurrency()Examples
Print the current trading pair of the exchange object.
javascript
function main() {
Log("Current trading pair", exchange.GetCurrency())
// Output: Current trading pair BTC_USDT
}
python
def main():
Log("Current trading pair", exchange.GetCurrency())
# Output: Current trading pair BTC_USDT
rust
fn main() {
Log!("Current trading pair", exchange.GetCurrency());
// Output: Current trading pair BTC_USDT
}Returns
| Type | Description |
string | Trading pair set on the current |
See Also
Remarks
The trading pair format uniformly uses uppercase, with an underscore separating baseCurrency and quoteCurrency, for example: BTC_USDT. On a few exchanges the pair keeps the case it was set with (for example case-sensitive token addresses or lowercase sub-market prefixes); see "Trading Pairs and Contract Codes" on each exchange page.