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

Improve documentation on balances #105

Closed
bvanelli opened this issue Jan 20, 2025 · 0 comments · Fixed by #109
Closed

Improve documentation on balances #105

bvanelli opened this issue Jan 20, 2025 · 0 comments · Fixed by #109

Comments

@bvanelli
Copy link
Owner

Hey folks! I'm using version 0.8.1 of actualpy and I'm hitting this exact thing.

Code:

accounts = get_accounts(actual.session, 'Discover Debit')
for account in accounts:
	print(account.name)
	print(account)

Output:

Discover Debit
id='aa5a48ea-09aa-424f-930c-b4762b808781' subtype=None account_id=None offbudget=0 name='Discover Debit' closed=0 balance_current=None tombstone=0 balance_available=None sort_order=16384.0 balance_limit=None type=None mask=None bank_id=None account_sync_source=None official_name=None

It's worth noting that this account is not linked to a real bank account (auto-import transactions, etc.), and if I'm understanding this thread correctly that may mean that the balance isn't actually updated in a way accessible to actualpy? Also curious - could these values return "None" if the server is accessed via HTTP instead of HTTPS?

EDIT:
Ignore me, the below demo code you posted worked for me. Cool stuff!

with Actual("http://localhost:5006", password="mypass", file="My Finances") as actual:
    accounts = get_accounts(actual.session)
    for acct in accounts:
        print(f"Balance for {acct.name} is {acct.balance}")

Originally posted by @BitNinja01 in #21

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 a pull request may close this issue.

1 participant