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

Update processor_alpaca.py #1185

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Omers5
Copy link
Contributor

@Omers5 Omers5 commented Mar 14, 2024

Update processor_alpaca to use the new Alpaca-Py instead of the deprecated alpaca-trade-api.

Might be a bit inefficient due to changing the dataframe structure output by Alpaca-Py to match alpaca-trade-api's outputted dataframe structure, in an effort to minimize errors that this might cause in other files.

Omers5 and others added 2 commits March 14, 2024 14:46
Update processor_alpaca to use the new Alpaca-Py instead of the deprecated alpaca-trade-api
@zhumingpassional
Copy link
Collaborator

thanks for your work.
Is it caused by the updating of Alpaca? have you tested it?

@Omers5
Copy link
Contributor Author

Omers5 commented Aug 26, 2024

Yes, Alpaca-trade-api is now deprecated (see deprecation notice here: https://github.com/alpacahq/alpaca-trade-api-python ), and is replaced by Alpaca-py ( https://github.com/alpacahq/alpaca-py ).

I have tested this file and it works. There is an issue, however, as I was unable to completely change alpaca.py (found at https://github.com/AI4Finance-Foundation/FinRL/blob/master/finrl/meta/paper_trading/alpaca.py ) because there are some functions that Alpaca-trade-api has that Alpaca-py does not.

Apologies for the late response.

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

Successfully merging this pull request may close these issues.

2 participants