-
Notifications
You must be signed in to change notification settings - Fork 8
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
Feature request: history #13
Comments
Sure! Started working on it here: #14. Let me know how it works! |
I tried using the updated version in #14 but it seems that the Here is my script from public_invest_api import Public
from dotenv import load_dotenv
import json
import os
load_dotenv()
username = os.getenv('username')
password = os.getenv('password')
public = Public()
public.login(
username=username,
password=password,
wait_for_2fa=False
)
history = public.get_account_history(date='all')
json_history = json.dumps(history, indent=4)
with open('history.json', 'w') as file:
file.write(json_history) |
I'm a noob and didn't mean to close the issue. 😅 |
That is correct, it doesn't get the entire history in one request (neither does the public website). If you notice in the function's returns, one of them is the |
History
I would like a way to get the transaction history found in the
https://public.com/settings/history
uriThe text was updated successfully, but these errors were encountered: