Getting account balance for specific days

jstarx's Avatar


05 Mar, 2017 03:12 PM

Looking through the documentation I see the getStartBalance and getCurrentBalance functions, but what if I want the balance on a particular day? (Actually, I want the balance each day for a small set of consecutive days.) Is there a way to get the API to return the balance of an account on a specific day or do I need to iterate through transactions an figure it out manually from the starting balance?

  1. Support Staff 1 Posted by Sean Reilly on 07 Mar, 2017 02:40 PM

    Sean Reilly's Avatar

    Hi Jim,

    You'll need to iterate through. Generally we don't usually need to calculate daily balances, and when we do it has more specific requirements (like being displayed in a register, or having a rolling average in a report or graph). It's pretty easy to do though, and the transaction iteration can probably be done in a handful of lines of code.


    Sean Reilly
    Developer, The Infinite Kind

  2. 2 Posted by jstarx on 15 Mar, 2017 11:42 AM

    jstarx's Avatar

    I've got it working, thanks!

  3. Sean Reilly closed this discussion on 15 Mar, 2017 12:17 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

22 Mar, 2023 07:06 AM
22 Mar, 2023 05:34 AM
22 Mar, 2023 02:51 AM
22 Mar, 2023 02:17 AM
22 Mar, 2023 02:02 AM