View Issue Details

IDProjectCategoryView StatusLast Update
0006086Talerbank API (C)public2020-03-31 16:04
Reportergrote Assigned Togrote  
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status closedResolutionfixed 
Product Versiongit (master) 
Target Version0.7.0Fixed in Version0.7.0 
Summary0006086: Provide bank API endpoint to get current account balance
DescriptionOne way of doing this could be to add some fields to the basic JSON response to include the beginning/ending balances around the history that is being returned.

For the cashier app, only the current balance is needed.
TagsNo tags attached.


Christian Grothoff

2020-02-10 23:49

manager   ~0015340

Last edited: 2020-02-10 23:49

I have proposed (but not implemented!) an API for this in a757d05..02507a8 (docs.git). Torsten: please let me know if the API is clear and will suffice in your opinion. Marcello/Florian: please make sure this is implementable for libeufin/Nexus.


2020-02-11 00:15

developer   ~0015343

Looking at this change, I would either choose the incoming or the outgoing history endpoint and then do (current_incoming - total_outgoing_end) or (total_incoming_end - current_outgoing) to calculate the current balance, right?

Unrelated to the issue at hand: The change doesn't make clear anymore that outgoing_transactions and incoming_transactions is an array.

Christian Grothoff

2020-02-11 22:25

manager   ~0015348

I fixed the array issue, but then Florian now convinced me that this is the 'wrong' place to do this. So most of my change will be reverted. We discussed that likely Marcello will write the 'right' API (ideally spec+implementation). Stay tuned...


2020-03-06 17:57

developer   ~0015434

This seems to have been implemented. Can we close this ticket?

Christian Grothoff

2020-03-06 21:23

manager   ~0015435

If it works for you, sure. Except 'resolve' is the right state until we made the release.

Issue History

Date Modified Username Field Change
2020-02-10 19:41 grote New Issue
2020-02-10 19:41 grote Status new => assigned
2020-02-10 19:41 grote Assigned To => Christian Grothoff
2020-02-10 23:49 Christian Grothoff Note Added: 0015340
2020-02-10 23:49 Christian Grothoff Assigned To Christian Grothoff => grote
2020-02-10 23:49 Christian Grothoff Status assigned => feedback
2020-02-10 23:49 Christian Grothoff Product Version => git (master)
2020-02-10 23:49 Christian Grothoff Target Version => 0.7.1
2020-02-10 23:49 Christian Grothoff Note Edited: 0015340
2020-02-11 00:15 grote Note Added: 0015343
2020-02-11 22:25 Christian Grothoff Note Added: 0015348
2020-03-06 17:57 grote Note Added: 0015434
2020-03-06 21:23 Christian Grothoff Note Added: 0015435
2020-03-09 19:20 grote Status feedback => resolved
2020-03-09 19:20 grote Resolution open => fixed
2020-03-17 02:08 Christian Grothoff Fixed in Version => 0.7.0
2020-03-17 02:08 Christian Grothoff Target Version 0.7.1 => 0.7.0
2020-03-31 16:04 Christian Grothoff Status resolved => closed