We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is no example in documentation about how to get stock activities in the new official SDK
In alpaca-trade-api version: 2.3.0 is as simple as: get_activities()
alpaca-trade-api version: 2.3.0
get_activities()
Please add an example in the docs and close this issue with the reference URL.
Thanks in advance.
Regards,
The text was updated successfully, but these errors were encountered:
For now, I'm just manually doing this part with requests until it's implemented. This works: ( https://alpaca.markets/docs/api-references/trading-api/account-activities/ )
import requests from requests.exceptions import ConnectionError, Timeout, TooManyRedirects import json url = 'https://paper-api.alpaca.markets' api_call = '/v2/account/activities/FILL' headers = {'content-type': 'application/json', 'Apca-Api-Key-Id': key, 'Apca-Api-Secret-Key': secret, } params = { 'page_size': '1', } response = requests.get(url + api_call,params=params, headers=headers) response = json.loads(response.text) assets = [dict(item) for item in response] df = pd.DataFrame.from_records(assets) df.head()
Sorry, something went wrong.
Agreed. Would be nice to have alpaca-py support account activities.
No branches or pull requests
Question form pre-submit checklist.
Question
There is no example in documentation about how to get stock activities in the new official SDK
In
alpaca-trade-api version: 2.3.0
is as simple as:get_activities()
Please add an example in the docs and close this issue with the reference URL.
Thanks in advance.
Regards,
The text was updated successfully, but these errors were encountered: