Type/to search
Built-in Functions
Global
Log
Market
Trade
Account
Futures
Exchange
exchange.GetName
exchange.GetLabel
exchange.GetCurrency
exchange.SetCurrency
exchange.GetQuoteCurrency
exchange.GetPeriod
exchange.SetMaxBarLen
exchange.SetPrecision
exchange.GetRate
exchange.SetRate
exchange.SetBase
exchange.GetBase
exchange.SetProxy
exchange.SetTimeout
exchange.Encode
IO
Network
Storage
Threads
TA
Talib
OS
Structures
Built-in Variables and Constants
Conventions
Exchanges

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

TypeDescription

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_.