budgets
#
Lunch Money - Budgets
https://lunchmoney.dev/#budget
BudgetConfigObject
#
BudgetDataObject
#
BudgetObject
#
Bases: LunchableModel
Monthly Budget Per Category Object
https://lunchmoney.dev/#budget-object
Parameters:
Name | Type | Description | Default |
---|---|---|---|
category_name |
str
|
Name of the category |
required |
category_id |
int | None
|
Unique identifier for category |
None
|
category_group_name |
str | None
|
Name of the category group, if applicable |
None
|
group_id |
int | None
|
Unique identifier for category group |
None
|
is_group |
bool | None
|
If true, this category is a group |
None
|
is_income |
bool
|
If true, this category is an income category (category properties are set in the app via the Categories page) |
required |
exclude_from_budget |
bool
|
If true, this category is excluded from budget (category properties are set in the app via the Categories page) |
required |
exclude_from_totals |
bool
|
If true, this category is excluded from totals (category properties are set in the app via the Categories page) |
required |
data |
Dict[date, BudgetDataObject]
|
For each month with budget or category spending data, there is a data object with the key set to the month in format YYYY-MM-DD. For properties, see Data object below. |
required |
config |
BudgetConfigObject | None
|
Object representing the category's budget suggestion configuration |
None
|
Source code in lunchable/models/budgets.py
BudgetParamsGet
#
Bases: LunchableModel
https://lunchmoney.dev/#get-budget-summary
Parameters:
Name | Type | Description | Default |
---|---|---|---|
start_date |
date
|
|
required |
end_date |
date
|
|
required |
Source code in lunchable/models/budgets.py
BudgetParamsPut
#
Bases: LunchableModel
https://lunchmoney.dev/#upsert-budget
Parameters:
Name | Type | Description | Default |
---|---|---|---|
start_date |
date
|
|
required |
category_id |
int
|
|
required |
amount |
float
|
|
required |
currency |
str | None
|
|
None
|
Source code in lunchable/models/budgets.py
BudgetParamsRemove
#
Bases: LunchableModel
https://lunchmoney.dev/#remove-budget
Parameters:
Name | Type | Description | Default |
---|---|---|---|
start_date |
date
|
|
required |
category_id |
int
|
|
required |
Source code in lunchable/models/budgets.py
BudgetsClient
#
Bases: LunchMoneyAPIClient
Lunch Money Budget Interactions
Source code in lunchable/models/budgets.py
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 |
|
get_budgets(start_date, end_date)
#
Get Monthly Budgets
Get full details on the budgets for all categories between a certain time period. The budgeted and spending amounts will be an aggregate across this time period. (https://lunchmoney.dev/#plaid-accounts-object)
Returns:
Type | Description |
---|---|
List[BudgetObject]
|
|
Source code in lunchable/models/budgets.py
remove_budget(start_date, category_id)
#
Unset an Existing Budget for a Particular Category in a Particular Month
Parameters:
Name | Type | Description | Default |
---|---|---|---|
start_date |
date
|
Start date for the budget period. Lunch Money currently only supports monthly budgets, so your date must always be the start of a month (eg. 2021-04-01) |
required |
category_id |
int
|
Unique identifier for the category |
required |
Returns:
Type | Description |
---|---|
bool
|
|
Source code in lunchable/models/budgets.py
upsert_budget(start_date, category_id, amount, currency=None)
#
Upsert a Budget for a Category and Date
Use this endpoint to update an existing budget or insert a new budget for a particular category and date.
Note: Lunch Money currently only supports monthly budgets, so your date must always be the start of a month (eg. 2021-04-01)
If this is a sub-category, the response will include the updated category group's budget. This is because setting a sub-category may also update the category group's overall budget.
https://lunchmoney.dev/#upsert-budget
Parameters:
Name | Type | Description | Default |
---|---|---|---|
start_date |
date
|
Start date for the budget period. Lunch Money currently only supports monthly budgets, so your date must always be the start of a month (eg. 2021-04-01) |
required |
category_id |
int
|
Unique identifier for the category |
required |
amount |
float
|
Amount for budget |
required |
currency |
Optional[str]
|
Currency for the budgeted amount (optional). If empty, will default to your primary currency |
None
|
Returns:
Type | Description |
---|---|
Optional[Dict[str, Any]]
|
|