exchange.GetName
Gets the name of the exchange bound to the current exchange object.
exchange.GetName()Examples
Print the exchange name and check whether it is Binance spot.
javascript
function main() {
var name = exchange.GetName()
Log(name)
// Output: Binance (Binance spot, for example; Binance USDT-M futures is Futures_Binance)
Log("Is Binance spot", name == "Binance")
}
python
def main():
name = exchange.GetName()
Log(name)
# Output: Binance (Binance spot, for example; Binance USDT-M futures is Futures_Binance)
Log("Is Binance spot", name == "Binance")
rust
fn main() {
let name = exchange.GetName();
Log!(name);
// Output: Binance (Binance spot, for example; Binance USDT-M futures is Futures_Binance)
Log!("Is Binance spot", name == "Binance");
}Returns
| Type | Description |
string | Exchange name defined by the FMZ Quant Trading Platform. |
See Also
Remarks
The exchange.GetName() function is typically used to identify the exchange or exchanges[1], exchanges[2], and other exchange objects in the strategy code. The name of a cryptocurrency futures contract exchange carries the fixed prefix Futures_.