get_category_rollover
Type: query
Gets the rollover settings for a category.
Signature
async def get_category_rollover(
category_id: str
) -> Dict[str, Any]
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
category_id | str | Yes | The ID of the category to get rollover settings for |
Returns
Dict with category containing rolloverPeriod data
Example
from monarchmoney import MonarchMoney
mm = MonarchMoney()
await mm.login(email, password)
result = await mm.get_category_rollover("example_category_id")
print(result)
GraphQL Operation
Operation Name: GetCategoryRollover
GraphQL Query
query GetCategoryRollover($id: UUID!) {
category(id: $id) {
id
name
rolloverPeriod {
id
startMonth
startingBalance
type
frequency
targetAmount
}
}
}
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.