diff --git a/Makefile b/Makefile index 19b215b..52220a6 100644 --- a/Makefile +++ b/Makefile @@ -13,4 +13,4 @@ uninstall: pip uninstall monarchmoney clean: - rm -fR build dist monarchmoney.egg-info monarchmoney/__pycache__ \ No newline at end of file + rm -fR build dist monarchmoney.egg-info monarchmoney/__pycache__ *.json \ No newline at end of file diff --git a/main.py b/main.py index e6993ad..6c06be1 100644 --- a/main.py +++ b/main.py @@ -37,6 +37,11 @@ def main() -> None: print(f'{c.get("group").get("type")} - {c.get("group").get("name")} - {c.get("name")}') expense_category_groups[c.get("group").get("name")] = 0 + # Transactions + transactions = asyncio.run(mm.get_transactions(limit=10)) + with open("transactions.json", "w") as outfile: + json.dump(transactions, outfile) + # Cashflow cashflow = asyncio.run(mm.get_cashflow(start_date="2023-10-01", end_date="2023-10-31")) with open("cashflow.json", "w") as outfile: diff --git a/monarchmoney/monarchmoney.py b/monarchmoney/monarchmoney.py index 5fa8875..b8f547f 100644 --- a/monarchmoney/monarchmoney.py +++ b/monarchmoney/monarchmoney.py @@ -332,6 +332,11 @@ async def get_transactions( transactionsCount __typename } + account { + id + displayName + __typename + } tags { id name