```exchange.GetCurrency()```函数返回当前{@var/EXCHANGE exchange}交易所对象设置的交易对。
string
exchange.GetCurrency()
```javascript
function main() {
Log("exchange 当前交易对为:", exchange.GetCurrency())
}
def main():
Log("exchange 当前交易对为:", exchange.GetCurrency())
void main() {
Log("exchange 当前交易对为:", exchange.GetCurrency());
}
交易对格式统一为大写,使用下划线分隔baseCurrency
与quoteCurrency
,例如:BTC_USDT
。
{@fun/Account/exchange.SetCurrency exchange.SetCurrency}
exchange.GetLabel exchange.SetCurrency