status-go/services/wallet/history
Stefan f4f6b25302 feat: convert history balance tokens to fiat
Add history.exchange sub-package with following responsibilities

- fetch and caches daily exchange rates for tokens
    - Partial update if missing form yesterday back
- Implement all time fetching special case
- Fetches the price of the token after merging entries for the selected
chains

history.service package changes

- Return ValuePoint instead of DataPoint
    - Value point contains the value in fiat as float64 instead
- Convert merged values from tokens balance (wei) to fiat

Other changes

- Move start/stop balance history to startWallet/stopWallet
- Move cryptocompare to thirdparty package to avoid recursive import
- Rename DataPoint.Value to DataPoint.Balance
- Don't merge entries for single chain
2023-02-15 18:17:21 +04:00
..
balance.go feat: convert history balance tokens to fiat 2023-02-15 18:17:21 +04:00
balance_db.go feat: retrieve balance history for tokens and cache it to DB 2023-01-25 22:25:50 +04:00
balance_db_test.go feat: retrieve balance history for tokens and cache it to DB 2023-01-25 22:25:50 +04:00
balance_test.go feat: convert history balance tokens to fiat 2023-02-15 18:17:21 +04:00
exchange.go feat: convert history balance tokens to fiat 2023-02-15 18:17:21 +04:00
service.go feat: convert history balance tokens to fiat 2023-02-15 18:17:21 +04:00
service_test.go feat: convert history balance tokens to fiat 2023-02-15 18:17:21 +04:00