You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/tmp/p/p-dev/./binance_instrument_provider.py", line 39, in <module>
provider = binance_futures_provider()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/tmp/p/p-dev/./binance_instrument_provider.py", line 19, in binance_futures_provider
client = get_cached_binance_http_client(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/p/p-dev/nautilus/venv/lib/python3.12/site-packages/nautilus_trader/adapters/binance/factories.py", line 86, in get_cached_binance_http_client
api_key = api_key or get_api_key(account_type, is_testnet)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/p/p-dev/nautilus/venv/lib/python3.12/site-packages/nautilus_trader/adapters/binance/common/credentials.py", line 30, in get_api_key
return get_env_key("BINANCE_FUTURES_API_KEY")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/p/p-dev/nautilus/venv/lib/python3.12/site-packages/nautilus_trader/adapters/env.py", line 21, in get_env_key
raise RuntimeError(f"Environment variable '{key}' not set")
RuntimeError: Environment variable 'BINANCE_FUTURES_API_KEY' not set
With API key it works.
Proposed Solution
Disable the key checking on anonymous endpoints.
Alternatives Considered
Setting the API key. This is not preferred as added complexity.
The text was updated successfully, but these errors were encountered:
cjdsellers
changed the title
Change Binance adaptor, so it doesn't require key authentication on anonymous endpoints
Enhance Binance adapter to allow unauthed use of public endpoints
May 11, 2025
Feature Request
Problem Statement
When running
I got the following exception
With API key it works.
Proposed Solution
Disable the key checking on anonymous endpoints.
Alternatives Considered
Setting the API key. This is not preferred as added complexity.
The text was updated successfully, but these errors were encountered: