fetch prices repeatedly when run as daemon

This commit is contained in:
woodser 2022-07-28 15:45:47 -04:00
parent a3a5b96c06
commit a5f457d8e9
6 changed files with 12 additions and 8 deletions

View file

@ -132,7 +132,7 @@ public class MarketPricePresentation {
}
private void setupMarketPriceFeed() {
priceFeedService.requestPriceFeed(price -> marketPrice.set(FormattingUtils.formatMarketPrice(price, priceFeedService.getCurrencyCode())),
priceFeedService.startRequestingPrices(price -> marketPrice.set(FormattingUtils.formatMarketPrice(price, priceFeedService.getCurrencyCode())),
(errorMessage, throwable) -> marketPrice.set(Res.get("shared.na")));
marketPriceBinding = EasyBind.combine(