TheOtherDavid / CoinCheck

A simple app that checks a crypto coin price and sends an SMS alert if there has been a big move recently.
1 stars 0 forks source link

Deposits cause inaccurate average price data #28

Open TheOtherDavid opened 3 years ago

TheOtherDavid commented 3 years ago

Because deposits aren't orders, that causes the average price data to be calculated incorrectly, and come up lower than it should be. This throws everything off. Once I record deposits in a deposits table, I need to do some math to translate these into "phantom" orders, or something, to get the numbers correct.