get_cashflow_summary
Type: query
Gets all the categories configured in the account.
Signature
async def get_cashflow_summary(
limit: int = DEFAULT_RECORD_LIMIT,
start_date: str | None = None,
end_date: str | None = None
) -> Dict[str, Any]
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | int | No | - |
start_date | `str | None` | No |
end_date | `str | None` | No |
Example
from monarchmoney import MonarchMoney
mm = MonarchMoney()
await mm.login(email, password)
result = await mm.get_cashflow_summary()
print(result)
GraphQL Operation
Operation Name: Web_GetCashFlowPage
GraphQL Query
query Web_GetCashFlowPage($filters: TransactionFilterInput) {
summary: aggregates(filters: $filters, fillEmptyValues: true) {
summary {
sumIncome
sumExpense
savings
savingsRate
__typename
}
__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.