Monarch Money API for Python
Project description
Monarch Money
Python library for accessing Monarch Money data.
Installation
From Source Code
Clone this repository from Git
git clone https://github.com/hammem/monarchmoney.git
Via pip
pip install monarchmoney
Instantiate & Login
There are two ways to use this library: interactive and non-interactive.
Interactive
If you're using this library in something like iPython or Jupyter, you can run an interactive-login which supports multi-factor authentication:
mm = MonarchMoney()
await mm.interactive_login()
This will prompt you for the email, password and, if needed, the multi-factor token.
Non-interactive
For a non-interactive session, you'll need to create an instance and login:
mm = MonarchMoney()
mm.login(email, password)
This may throw a RequireMFAException
. If it does, you'll need to get a multi-factor token and call the following method:
mm.multi_factor_authenticate(email, password, multi_factor_code)
Accessing Data
As of writing this README, the following methods are supported:
get_accounts
- all the accounts linked to Monarch Moneyget_account_holdings
- all of the securities in a brokerage or similar type of accountget_subscription_details
- the Monarch Money account's status (e.g. paid or trial)get_transactions
- transaction data, defaults to returning the last 100 transactions; can also be searched by date rangeget_transaction_categories
all of the categories configured in the accountget_transaction_tags
- all of the tags configured in the accountget_cashflow
- cashflow data (by category, category group, merchant and a summary)get_cashflow_summary
- cashflow summary (income, expense, savings, savings rate)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for monarchmoney-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65a4aed0f1e48fc46b6018513f5e9ac4dc37917facd1b62f443564f7f1d95955 |
|
MD5 | dd7bf8f6937d354d5ff27275c120a6c6 |
|
BLAKE2b-256 | ec496158469b5a8b2127de9a91abbf6d03a1765bcbf7192e436b3e1d25d41280 |