is_accounts_refresh_complete
Type: query
Checks on the status of a prior request to refresh account balances.
Signature
async def is_accounts_refresh_complete(
account_ids: List[str] | None = None
) -> Dict[str, Any]
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
account_ids | `List[str] | None` | No |
Returns
- True if refresh request is completed. - False if refresh request still in progress. Otherwise, throws a
RequestFailedException. :param account_ids: The list of accounts IDs to check on the status of. If set to None, all account IDs will be checked.
Example
from monarchmoney import MonarchMoney
mm = MonarchMoney()
await mm.login(email, password)
result = await mm.is_accounts_refresh_complete()
print(result)
GraphQL Operation
Operation Name: ForceRefreshAccountsQuery
GraphQL Query
query ForceRefreshAccountsQuery {
accounts {
id
hasSyncInProgress
__typename
}
}
Try It Out
To test this API method locally:
- Install the package:
pip install monarchmoney - Create a Python script with the example code above
- Replace
emailandpasswordwith your Monarch Money credentials - Run the script
See the Authentication Guide for details on logging in.