Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exchange_id for alpaca? #280

Open
patrickchirdon opened this issue Aug 31, 2023 · 1 comment
Open

exchange_id for alpaca? #280

patrickchirdon opened this issue Aug 31, 2023 · 1 comment

Comments

@patrickchirdon
Copy link

patrickchirdon commented Aug 31, 2023

Recently alpaca was not working when I tried to run the crypto_custom_etf.py strategy.... It simply doesn't run anymore. I get an error about the exchange_id which there does not appear to be one for alpaca.... I know Alpaca recently made some server changes.... Any idea what the issue is?

@patrickchirdon
Copy link
Author

crypto_custom_etf.py
Traceback (most recent call last):
File "/home/patrick/anaconda3/envs/lumibot-env/lib/python3.8/site-packages/lumibot/data_sources/ccxt_data.py", line 41, in init
exchange_class = getattr(ccxt, api_keys["exchange_id"])
KeyError: 'exchange_id'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "crypto_custom_etf.py", line 141, in
broker = Ccxt(ALPACA_CONFIG)
File "/home/patrick/anaconda3/envs/lumibot-env/lib/python3.8/site-packages/lumibot/brokers/ccxt.py", line 21, in init
CcxtData.init(self, config, max_workers=max_workers, chunk_size=chunk_size)
File "/home/patrick/anaconda3/envs/lumibot-env/lib/python3.8/site-packages/lumibot/data_sources/ccxt_data.py", line 45, in init
api_keys["exchange_id"]
KeyError: 'exchange_id'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant