get_aggregate_snapshots
Type: query
Retrieves the daily net value of all accounts, optionally between start_date and end_date, and optionally only for accounts of type account_type. Both start_date and end_date are ISO datestrings, formatted as YYYY-MM-DD
Signature
async def get_aggregate_snapshots(
start_date: date | None = None,
end_date: date | None = None,
account_type: str | None = None
) -> Dict[str, Any]
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
start_date | `date | None` | No |
end_date | `date | None` | No |
account_type | `str | None` | No |
Example
from monarchmoney import MonarchMoney
mm = MonarchMoney()
await mm.login(email, password)
result = await mm.get_aggregate_snapshots()
print(result)
GraphQL Operation
Operation Name: GetAggregateSnapshots
GraphQL Query
query GetAggregateSnapshots($filters: AggregateSnapshotFilters) {
aggregateSnapshots(filters: $filters) {
date
balance
__typename
}
}
Try It Out
To test this API method locally:
- Install the package:
pip install monarchmoney - Create a Python script with the example code above
- Replace
emailandpasswordwith your Monarch Money credentials - Run the script
See the Authentication Guide for details on logging in.