Update and integrate price updater

PriceUpdater:
    - Pass context so that it can be canceled during an update loop
    - Define APITypes to make it explicit which API we are using
This commit is contained in:
Eduard S
2020-12-18 17:07:09 +01:00
parent 0bde608a1b
commit 56fffdcee5
5 changed files with 111 additions and 33 deletions

View File

@@ -4,6 +4,11 @@ Explorer = true
UpdateMetricsInterval = "10s"
UpdateRecommendedFeeInterval = "10s"
[PriceUpdater]
Interval = "10s"
URL = "https://api-pub.bitfinex.com/v2/"
Type = "bitfinexV2"
[Debug]
APIAddress = "localhost:12345"