Skip to main content
Version: 0.1.21 (Current)

request_accounts_refresh_and_wait

Type: mutation

Convenience method for forcing an accounts refresh on Monarch, as well as waiting for the refresh to complete. Returns True if all accounts are refreshed within the timeout specified, False otherwise.

Signature

async def request_accounts_refresh_and_wait(
account_ids: List[str] | None = None,
timeout: int = 300,
delay: int = 10
) -> Dict[str, Any]

Parameters

ParameterTypeRequiredDescription
account_ids`List[str]None`No
timeoutintNoThe number of seconds to wait for the refresh to complete
delayintNoThe number of seconds to wait for each check on the refresh request

Example

from monarchmoney import MonarchMoney

mm = MonarchMoney()
await mm.login(email, password)

result = await mm.request_accounts_refresh_and_wait()
print(result)

Try It Out

To test this API method locally:

  1. Install the package: pip install monarchmoney
  2. Create a Python script with the example code above
  3. Replace email and password with your Monarch Money credentials
  4. Run the script

See the Authentication Guide for details on logging in.