shadowmax31 / crypto_log

This is a cli-tool to log and track the Cost Basis and Capital Gain when transacting with CryptoCurrency
GNU General Public License v2.0
0 stars 0 forks source link

The call to CoinMarketCap should be optimized #19

Open shadowmax31 opened 3 years ago

shadowmax31 commented 3 years ago

We should add a parameter to crypto.ini to specify the frequency at which we should refresh the prices for different crypto.

Each time the application is called, we could make a check to see when was the last call made to CoinMarketCap's api and if it has been long enough we refresh the prices and save them a table called "Price"

shadowmax31 commented 2 years ago

It will need to be added back in the rust version of the app