diff --git a/examples/live/bybit/bybit_ema_cross.py b/examples/live/bybit/bybit_ema_cross.py index 93d13b8aee9a..77b9197e6926 100644 --- a/examples/live/bybit/bybit_ema_cross.py +++ b/examples/live/bybit/bybit_ema_cross.py @@ -69,7 +69,7 @@ "BYBIT": BybitDataClientConfig( api_key=None, # 'BYBIT_API_KEY' env var api_secret=None, # 'BYBIT_API_SECRET' env var - http_base_url=None, # Override with custom endpoint + base_url_http=None, # Override with custom endpoint instrument_provider=InstrumentProviderConfig(load_all=True), # product_types=[product_type], # Will load all instruments testnet=False, # If client uses the testnet diff --git a/examples/live/bybit/bybit_ema_cross_bracket_algo.py b/examples/live/bybit/bybit_ema_cross_bracket_algo.py index 541b14c7b437..cdc0c77a2fc7 100644 --- a/examples/live/bybit/bybit_ema_cross_bracket_algo.py +++ b/examples/live/bybit/bybit_ema_cross_bracket_algo.py @@ -73,7 +73,7 @@ "BYBIT": BybitDataClientConfig( api_key=None, # 'BYBIT_API_KEY' env var api_secret=None, # 'BYBIT_API_SECRET' env var - http_base_url=None, # Override with custom endpoint + base_url_http=None, # Override with custom endpoint instrument_provider=InstrumentProviderConfig(load_all=True), # product_types=[product_type], # Will load all instruments testnet=False, # If client uses the testnet diff --git a/examples/live/bybit/bybit_market_maker.py b/examples/live/bybit/bybit_market_maker.py index 42c36567cf23..9cafd7ff3f91 100644 --- a/examples/live/bybit/bybit_market_maker.py +++ b/examples/live/bybit/bybit_market_maker.py @@ -81,7 +81,7 @@ "BYBIT": BybitDataClientConfig( api_key=None, # 'BYBIT_API_KEY' env var api_secret=None, # 'BYBIT_API_SECRET' env var - http_base_url=None, # Override with custom endpoint + base_url_http=None, # Override with custom endpoint instrument_provider=InstrumentProviderConfig(load_all=True), # product_types=[product_type], # Will load all instruments testnet=False, # If client uses the testnet diff --git a/nautilus_trader/adapters/bybit/config.py b/nautilus_trader/adapters/bybit/config.py index 3e73fbde71b2..e3dc8825551f 100644 --- a/nautilus_trader/adapters/bybit/config.py +++ b/nautilus_trader/adapters/bybit/config.py @@ -42,7 +42,7 @@ class BybitDataClientConfig(LiveDataClientConfig, frozen=True): api_key: str | None = None api_secret: str | None = None product_types: list[BybitProductType] | None = None - http_base_url: str | None = None + base_url_http: str | None = None testnet: bool = False diff --git a/nautilus_trader/adapters/bybit/factories.py b/nautilus_trader/adapters/bybit/factories.py index ff592c70b2a5..4bf71beb6804 100644 --- a/nautilus_trader/adapters/bybit/factories.py +++ b/nautilus_trader/adapters/bybit/factories.py @@ -177,7 +177,7 @@ def create( # type: ignore clock=clock, key=config.api_key, secret=config.api_secret, - base_url=config.http_base_url, + base_url=config.base_url_http, is_testnet=config.testnet, ) provider = get_bybit_instrument_provider(