资源加载中... loading...

exchange.GetQuoteCurrency


```exchange.GetQuoteCurrency()```函数返回当前交易对的计价币名称。
string

exchange.GetQuoteCurrency()

```javascript
function main() {
    exchange.SetCurrency("BTC_USDT")
    Log("BTC_USDT的计价币名称:", exchange.GetQuoteCurrency())
    // exchange.SetCurrency("ETH_BTC")
    // Log("ETH_BTC的计价币名称:", exchange.GetQuoteCurrency())
}
def main():
    exchange.SetCurrency("BTC_USDT")
    Log("BTC_USDT的计价币名称:", exchange.GetQuoteCurrency())
    # exchange.SetCurrency("ETH_BTC")
    # Log("ETH_BTC的计价币名称:", exchange.GetQuoteCurrency())
void main() {
    exchange.SetCurrency("BTC_USDT");
    Log("BTC_USDT的计价币名称:", exchange.GetQuoteCurrency());
    // exchange.SetCurrency("ETH_BTC")
    // Log("ETH_BTC的计价币名称:", exchange.GetQuoteCurrency())
}

例如:{@var/EXCHANGE exchange}交易所对象当前的交易对为BTC_USDTexchange.GetQuoteCurrency()函数就返回USDT。 如果当前的交易对为ETH_BTCexchange.GetQuoteCurrency()函数就返回BTC

{@fun/Account/exchange.GetCurrency exchange.GetCurrency}, {@fun/Account/exchange.SetCurrency exchange.SetCurrency}

exchange.SetCurrency Futures