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

Obtains the custom label set when configuring the exchange object.

exchange.GetLabel()

Examples

Print the label set when configuring the exchange object.

javascript
function main() { Log("Exchange label", exchange.GetLabel()) // Output: Exchange label <label entered when adding the exchange object> }
python
def main(): Log("Exchange label", exchange.GetLabel()) # Output: Exchange label <label entered when adding the exchange object>
rust
fn main() { Log!("Exchange label", exchange.GetLabel()); // Output: Exchange label <label entered when adding the exchange object> }

Returns

TypeDescription

string

Custom label set when configuring the exchange object.

See Also

Remarks

By means of the label that was set, you can identify the exchange or exchanges[1], exchanges[2] and other exchange objects in the strategy code.