Skip to content

Commit

Permalink
Merge pull request #46 from jansoren/master
Browse files Browse the repository at this point in the history
Added mapping for price_change_percentage when getting CoinMarkets
  • Loading branch information
Philipinho authored Jan 14, 2024
2 parents 29a041b + 952b624 commit 54af596
Showing 1 changed file with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,20 @@ public class CoinMarkets {
private BigDecimal circulatingSupply;
@JsonProperty("total_supply")
private BigDecimal totalSupply;
@JsonProperty("max_supply")
private BigDecimal maxSupply;
@JsonProperty("ath")
private BigDecimal ath;
@JsonProperty("ath_change_percentage")
private BigDecimal athChangePercentage;
@JsonProperty("ath_date")
private String athDate;
@JsonProperty("atl")
private BigDecimal atl;
@JsonProperty("atl_change_percentage")
private BigDecimal atlChangePercentage;
@JsonProperty("atl_date")
private String atlDate;
@JsonProperty("roi")
private Roi roi;
@JsonProperty("last_updated")
Expand All @@ -58,6 +66,17 @@ public class CoinMarkets {
private SparklineIn7d sparklineIn7d;
@JsonProperty("price_change_percentage_1h_in_currency")
private BigDecimal priceChangePercentage1hInCurrency;

@JsonProperty("price_change_percentage_24h_in_currency")
private BigDecimal priceChangePercentage24hInCurrency;
@JsonProperty("price_change_percentage_7d_in_currency")
private BigDecimal priceChangePercentage7dInCurrency;
@JsonProperty("price_change_percentage_14d_in_currency")
private BigDecimal priceChangePercentage14dInCurrency;
@JsonProperty("price_change_percentage_30d_in_currency")
private BigDecimal priceChangePercentage30dInCurrency;
@JsonProperty("price_change_percentage_200d_in_currency")
private BigDecimal priceChangePercentage200dInCurrency;
@JsonProperty("price_change_percentage_1y_in_currency")
private BigDecimal priceChangePercentage1yInCurrency;
}

0 comments on commit 54af596

Please sign in to comment.