Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions monarchmoney/monarchmoney.py
Original file line number Diff line number Diff line change
Expand Up @@ -1450,6 +1450,7 @@ async def get_transactions(
is_recurring: Optional[bool] = None,
imported_from_mint: Optional[bool] = None,
synced_from_institution: Optional[bool] = None,
show_all_transactions: Optional[bool] = True,
) -> Dict[str, Any]:
"""
Gets transaction data from the account.
Expand All @@ -1469,6 +1470,8 @@ async def get_transactions(
:param is_recurring: a bool to filter for whether the transactions are recurring.
:param imported_from_mint: a bool to filter for whether the transactions were imported from mint.
:param synced_from_institution: a bool to filter for whether the transactions were synced from an institution.
:param show_all_transactions: a bool to filter for whether to include all transactions, even those that are
hidden from accounts hidden from lists, reports, and budgets. Defaults to true.
"""

query = gql(
Expand All @@ -1495,6 +1498,7 @@ async def get_transactions(
pending
date
hideFromReports
hiddenByAccount
plaidName
notes
isRecurring
Expand Down Expand Up @@ -1574,6 +1578,9 @@ async def get_transactions(
if synced_from_institution is not None:
variables["filters"]["syncedFromInstitution"] = synced_from_institution

if show_all_transactions:
variables["filters"]["transactionVisibility"] = "all_transactions"

if start_date and end_date:
variables["filters"]["startDate"] = start_date
variables["filters"]["endDate"] = end_date
Expand Down