View Issue Details

IDProjectCategoryView StatusLast Update
0006086Talerbank API (C)public2020-02-11 22:25
ReportergroteAssigned Togrote 
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status feedbackResolutionopen 
Product Versiongit (master) 
Target Version0.7Fixed in Version 
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.

Activities

Christian Grothoff

2020-02-10 23:49

manager   ~0015340

Last edited: 2020-02-10 23:49

View 2 revisions

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.

grote

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...

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
2020-02-10 23:49 Christian Grothoff Note Edited: 0015340 View Revisions
2020-02-11 00:15 grote Note Added: 0015343
2020-02-11 22:25 Christian Grothoff Note Added: 0015348