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

exchange.GetLabel


```exchange.GetLabel()```函数返回配置交易所对象时设置的自定义标签。
string

exchange.GetLabel()

```javascript
function main() {
    Log("exchange label:", exchange.GetLabel())
}
def main():
    Log("exchange label:", exchange.GetLabel())
void main() {
    Log("exchange label:", exchange.GetLabel());
}

通过设置的标签来识别策略代码中的exchange或者exchanges[1]exchanges[2]等交易所对象。

{@var/EXCHANGE exchange}

exchange.GetName exchange.GetCurrency