get_recent_account_balances
Type: query
Retrieves the daily balance for all accounts starting from start_date. start_date is an ISO formatted datestring, e.g. YYYY-MM-DD. If start_date is None, then the last 31 days are requested.
Signature
async def get_recent_account_balances(
start_date: str | None = None
) -> Dict[str, Any]
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
start_date | `str | None` | No |
Example
from monarchmoney import MonarchMoney
mm = MonarchMoney()
await mm.login(email, password)
result = await mm.get_recent_account_balances()
print(result)
GraphQL Operation
Operation Name: GetAccountRecentBalances
GraphQL Query
query GetAccountRecentBalances($startDate: Date!) {
accounts {
id
recentBalances(startDate: $startDate)
__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.