The exchange.GetName()
function is used to get the name of the exchange to which the current exchange object is bound.
The exchange.GetName()
function returns the name of the exchange defined by the FMZ Quant Trading platform.
string
exchange.GetName()
function main() {
Log("The exchange object exchange is judged to be Binance spot, and the result is judged to be:", exchange.GetName() == "Binance")
}
def main():
Log("The exchange object exchange is judged to be Binance spot, and the result is judged to be:", exchange.GetName() == "Binance")
void main() {
Log("The exchange object exchange is judged to be Binance spot, and the result is judged to be:", exchange.GetName() == "Binance");
}
The exchange.GetName()
function is generally used to identify the exchange objects, such as exchange
or exchanges[1]
, exchanges[2]
in the strategy code. The names of cryptocurrency futures contract exchanges have the fixed prefix Futures_
.
{@fun/Account/exchange.GetLabel exchange.GetLabel}
exchange.GetAssets exchange.GetLabel