assets
#
Lunch Money - Assets
https://lunchmoney.dev/#assets
AssetsClient
#
Bases: LunchMoneyAPIClient
Lunch Money Assets Interactions
Source code in lunchable/models/assets.py
103 104 105 106 107 108 109 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 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 |
|
get_assets()
#
Get Manually Managed Assets
Get a list of all manually-managed assets associated with the user's account.
(https://lunchmoney.dev/#assets-object)
Returns:
Type | Description |
---|---|
List[AssetsObject]
|
|
Source code in lunchable/models/assets.py
insert_asset(type_name, name=None, subtype_name=None, display_name=None, balance=0.0, balance_as_of=None, currency=None, institution_name=None, closed_on=None, exclude_transactions=None)
#
Create a single (manually-managed) asset.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
type_name |
str
|
Must be one of: cash, credit, investment, other, real estate, loan, vehicle, cryptocurrency, employee compensation |
required |
name |
Optional[str]
|
Max 45 characters |
None
|
subtype_name |
Optional[str]
|
Max 25 characters |
None
|
display_name |
Optional[str]
|
Display name of the asset (as set by user) |
None
|
balance |
float
|
Numeric value of the current balance of the account. Do not include any
special characters aside from a decimal point! Defaults to |
0.0
|
balance_as_of |
Optional[datetime]
|
Has no effect if balance is not defined. If balance is defined, but balance_as_of is not supplied or is invalid, current timestamp will be used. |
None
|
currency |
Optional[str]
|
Three-letter lowercase currency in ISO 4217 format. The code sent must exist in our database. Defaults to user's primary currency. |
None
|
institution_name |
Optional[str]
|
Max 50 characters |
None
|
closed_on |
Optional[date]
|
The date this asset was closed |
None
|
exclude_transactions |
Optional[bool]
|
If true, this asset will not show up as an option for assignment when creating transactions manually. Defaults to False |
None
|
Returns:
Type | Description |
---|---|
AssetsObject
|
|
Source code in lunchable/models/assets.py
update_asset(asset_id, type_name=None, subtype_name=None, name=None, balance=None, balance_as_of=None, currency=None, institution_name=None)
#
Update a Single Asset
Parameters:
Name | Type | Description | Default |
---|---|---|---|
asset_id |
int
|
Asset Identifier |
required |
type_name |
Optional[str]
|
Must be one of: cash, credit, investment, other, real estate, loan, vehicle, cryptocurrency, employee compensation |
None
|
subtype_name |
Optional[str]
|
Max 25 characters |
None
|
name |
Optional[str]
|
Max 45 characters |
None
|
balance |
Optional[float]
|
Numeric value of the current balance of the account. Do not include any special characters aside from a decimal point! |
None
|
balance_as_of |
Optional[datetime]
|
Has no effect if balance is not defined. If balance is defined, but balance_as_of is not supplied or is invalid, current timestamp will be used. |
None
|
currency |
Optional[str]
|
Three-letter lowercase currency in ISO 4217 format. The code sent must exist in our database. Defaults to asset's currency. |
None
|
institution_name |
Optional[str]
|
Max 50 characters |
None
|
Returns:
Type | Description |
---|---|
AssetsObject
|
|
Source code in lunchable/models/assets.py
AssetsObject
#
Bases: LunchableModel
Manually Managed Asset Objects
Assets in Lunch Money are similar to plaid-accounts
except that they are manually managed.
https://lunchmoney.dev/#assets-object
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
Unique identifier for asset |
required |
type_name |
str
|
Primary type of the asset. Must be one of: [employee compensation, cash, vehicle, loan, cryptocurrency, investment, other, credit, real estate] |
required |
subtype_name |
str | None
|
Optional asset subtype. Examples include: [retirement, checking, savings, prepaid credit card] |
None
|
name |
str
|
Name of the asset |
required |
display_name |
str | None
|
Display name of the asset (as set by user) |
None
|
balance |
float
|
Current balance of the asset in numeric format to 4 decimal places" |
required |
balance_as_of |
datetime | None
|
Date/time the balance was last updated in ISO 8601 extended format |
None
|
closed_on |
date | None
|
The date this asset was closed (optional) |
None
|
currency |
str
|
Three-letter lowercase currency code of the balance in ISO 4217 format |
required |
institution_name |
str | None
|
Name of institution holding the asset |
None
|
exclude_transactions |
bool
|
If true, this asset will not show up as an option for assignment when creating transactions manually |
False
|
created_at |
datetime
|
Date/time the asset was created in ISO 8601 extended format |
required |