crypto
#
Lunch Money - Crypto
https://lunchmoney.dev/#crypto
CryptoClient
#
Bases: LunchMoneyAPIClient
Lunch Money Tag Interactions
Source code in lunchable/models/crypto.py
get_crypto()
#
Get Crypto Assets
Use this endpoint to get a list of all cryptocurrency assets associated with the user's account. Both crypto balances from synced and manual accounts will be returned.
https://lunchmoney.dev/#get-all-crypto
Returns:
Type | Description |
---|---|
List[CryptoObject]
|
|
Source code in lunchable/models/crypto.py
update_crypto(crypto_id, name=None, display_name=None, institution_name=None, balance=None, currency=None)
#
Update a Manual Crypto Asset
Use this endpoint to update a single manually-managed crypto asset (does not include assets received from syncing with your wallet/exchange/etc). These are denoted by source: manual from the GET call above.
https://lunchmoney.dev/#update-manual-crypto-asset
Parameters:
Name | Type | Description | Default |
---|---|---|---|
crypto_id |
int
|
ID of the crypto asset to update |
required |
name |
Optional[str]
|
Official or full name of the account. Max 45 characters |
None
|
display_name |
Optional[str]
|
Display name for the account. Max 25 characters |
None
|
institution_name |
Optional[str]
|
Name of provider that holds the account. Max 50 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
|
currency |
Optional[str]
|
Cryptocurrency that is supported for manual tracking in our database |
None
|
Returns:
Type | Description |
---|---|
CryptoObject
|
|
Source code in lunchable/models/crypto.py
CryptoObject
#
Bases: LunchableModel
Crypto Asset Object
https://lunchmoney.dev/#crypto-object
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
int
|
Unique identifier for a manual crypto account (no ID for synced accounts) |
required |
zabo_account_id |
int | None
|
Unique identifier for a synced crypto account (no ID for manual accounts, multiple currencies may have the same zabo_account_id) |
None
|
source |
str
|
|
required |
name |
str
|
Name of the crypto asset |
required |
display_name |
str | None
|
Display name of the crypto asset (as set by user) |
None
|
balance |
float
|
Current balance |
required |
balance_as_of |
datetime | None
|
Date/time the balance was last updated in ISO 8601 extended format |
None
|
currency |
str | None
|
Abbreviation for the cryptocurrency |
None
|
status |
str | None
|
The current status of the crypto account. Either active or in error. |
None
|
institution_name |
str | None
|
Name of provider holding the asset |
None
|
created_at |
datetime
|
Date/time the asset was created in ISO 8601 extended format |
required |
Source code in lunchable/models/crypto.py
CryptoParamsPut
#
Bases: LunchableModel
https://lunchmoney.dev/#update-manual-crypto-asset
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
str | None
|
|
None
|
display_name |
str | None
|
|
None
|
institution_name |
str | None
|
|
None
|
balance |
float | None
|
|
None
|
currency |
str | None
|
|
None
|