Skip to content

Commit

Permalink
Merge pull request #1377 from consolelabs/fix/update-coingecko-ticker…
Browse files Browse the repository at this point in the history
…s-model

fix: update coingecko tickers model
  • Loading branch information
anhnh12 authored Mar 27, 2024
2 parents aa38f72 + e3e801e commit 7cdfa3b
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions pkg/response/defi.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,21 @@ type TokenInfoKeyValue struct {
}

type TickerData struct {
Base string `json:"base"`
Target string `json:"target"`
Last float32 `json:"last"`
CoinID string `json:"coin_id"`
TargetCoinID string `json:"target_coin_id"`
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"`
}

type TickerMarketData struct {
Name string `json:"name"`
Identifier string `json:"identifier"`
HasTradingIncentive bool `json:"has_trading_incentive"`
}

type MarketData struct {
Expand Down

0 comments on commit 7cdfa3b

Please sign in to comment.