You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 4, 2020. It is now read-only.
Currency BTC (it's our base coin, we shall ignore it)
Currencies with zero balance. In a near future would be nice to also have a /summaries/history with not only the currencies with zero balance, but also any other we've traded over time.
We should loop over all our /account/balances > 0 and then do a call to /account/getorderhistory for each currency. There we need to:
Take all sell orders and sum them.
Take all buy orders and rest it to the result of the sell sum
So the /summaries for now should return an array (or maybe better, an object with the currencies as key) with a total key for each object with the result of the above operation..
In a near future this call will also have a profit key with a % of our profit or benefit (negative or positive, but a percentage after all).
Excepting these two cases:
/summaries/historywith not only the currencies with zero balance, but also any other we've traded over time.We should loop over all our
/account/balances > 0and then do a call to/account/getorderhistoryfor each currency. There we need to:sellorders and sum them.buyorders and rest it to the result of thesellsumSo the
/summariesfor now should return an array (or maybe better, an object with the currencies as key) with atotalkey for each object with the result of the above operation..In a near future this call will also have a
profitkey with a % of our profit or benefit (negative or positive, but a percentage after all).