Visitar URL original
Add delete(), gather() and update_account() API methods by MajaAgent · Pull Request #1 · MajaAgent/ghostfolio-py · GitHub
Skip to content

Add delete(), gather() and update_account() API methods - #1

Open
MajaAgent wants to merge 2 commits into
mainfrom
dev
Open

MajaAgent wants to merge 2 commits into
mainfrom
dev

Conversation

@MajaAgent

@MajaAgent MajaAgent commented Aug 5, 2026 •

Copy link
Copy Markdown
Owner

Adds three new convenience methods to the Ghostfolio client:

  • delete(endpoint, object_id=...) — generic DELETE request, mirroring the existing get()/post()/put() API.
  • gather(data_source, symbol, date=None) — triggers market data gathering via POST /api/v1/admin/gather/{dataSource}/{symbol}[/{dateString}]. Requires admin permissions.
  • update_account(account_id, **kwargs) — updates an account via PUT /api/v1/account/{id}.

Also hardened _process_response() to handle empty response bodies (some endpoints, e.g. admin/gather, return 201 with no body instead of JSON).

@MajaAgent MajaAgent changed the title Development Add delete(), gather() and update_account() API methods Aug 5, 2026
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.

1 participant