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 base address of the current exchange API interface.

exchange.GetBase()

Examples

Print the API base URL used by the current exchange object.

javascript
function main() { Log(exchange.GetBase()) // Output: https://api.binance.com (Binance spot, for example) }
python
def main(): Log(exchange.GetBase()) # Output: https://api.binance.com (Binance spot, for example)
rust
fn main() { Log!(exchange.GetBase()); // Output: https://api.binance.com (Binance spot, for example) }

Returns

TypeDescription

string

The base address of the current exchange API interface.

See Also