kevinschaich / mintable

🍃 Automate your personal finances – for free, with no ads, and no data collection.
https://kevinschaich.io/mintable/
MIT License
1.52k stars 200 forks source link

Fetch real-time balance data - feature request #116

Closed gbdavidx closed 1 year ago

gbdavidx commented 3 years ago

Is it possible to implement this api? I am not sure what the delay is but it would be nice to use this

The /accounts/balance/get endpoint returns the real-time balance for each of an Item's accounts. While other endpoints may return a balance object, only /accounts/balance/get forces the available and current balance fields to be refreshed rather than cached. This endpoint can be used for existing Items that were added via any of Plaid’s other products. This endpoint can be used as long as Link has been initialized with any other product, balance itself is not a product that can be used to initialize Link.

https://plaid.com/docs/api/products/#accountsbalanceget

kevinschaich commented 1 year ago

Hey @gbdavidx – this is already possible out of the box via a config block. Just add this to the root level of your mintable.jsonc and specify your desired integration and the properties you'd like included.

    "balances": {
        "integration": "google",
        "properties": ["institution", "account", "current", "type"]
    }