Skip to content

Commit

Permalink
Standardize Bybit base_url param naming
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdsellers committed Apr 7, 2024
1 parent 4cdb73d commit 2821c48
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/live/bybit/bybit_ema_cross.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/live/bybit/bybit_ema_cross_bracket_algo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/live/bybit/bybit_market_maker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion nautilus_trader/adapters/bybit/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
2 changes: 1 addition & 1 deletion nautilus_trader/adapters/bybit/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 2821c48

Please sign in to comment.