Skip to content

Commit

Permalink
fix: update coingecko tickers response model
Browse files Browse the repository at this point in the history
  • Loading branch information
anhnh12 committed Mar 27, 2024
1 parent 67c7e1c commit fe037e9
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions pkg/response/defi.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,17 @@ type TokenInfoKeyValue struct {
}

type TickerData struct {
Base string `json:"base"`
Target string `json:"target"`
Last float64 `json:"last"`
CoinID string `json:"coin_id"`
TargetCoinID string `json:"target_coin_id"`
Market *TickerMarketData `json:"market"`
TradeUrl string `json:"trade_url"`
Volume float64 `json:"volume"`
TrustScore string `json:"trust_score"`
Base string `json:"base"`
Target string `json:"target"`
Last float64 `json:"last"`
CoinID string `json:"coin_id"`
TargetCoinID string `json:"target_coin_id"`
Market *TickerMarketData `json:"market"`
TradeUrl string `json:"trade_url"`
Volume float64 `json:"volume"`
TrustScore string `json:"trust_score"`
ConvertedVolume map[string]float64 `json:"converted_volume"`
ConvertedLast map[string]float64 `json:"converted_last"`
}

type TickerMarketData struct {
Expand Down

0 comments on commit fe037e9

Please sign in to comment.