Skip to content

Commit

Permalink
add version to price api
Browse files Browse the repository at this point in the history
  • Loading branch information
woodser committed Jan 25, 2024
1 parent 165d8fc commit 97e8828
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/haveno/price/spot/ExchangeRateService.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class ExchangeRateService {
private final List<ExchangeRateProvider> providers;
private final List<ExchangeRateTransformer> transformers;
private final GatedLogging gatedLogging = new GatedLogging();
private static final String VERSION = "0.0.2";

/**
* Construct an {@link ExchangeRateService} with a list of all
Expand Down Expand Up @@ -77,6 +78,7 @@ public Map<String, Object> getAllMarketPrices() {
// return result
LinkedHashMap<String, Object> result = new LinkedHashMap<>(metadata);
result.put("data", aggregateExchangeRates);
result.put("version", VERSION);
return result;
}

Expand Down

0 comments on commit 97e8828

Please sign in to comment.