diff --git a/pkg/api/types/types.go b/pkg/api/types/types.go index 3100fdf..6be1e4f 100644 --- a/pkg/api/types/types.go +++ b/pkg/api/types/types.go @@ -2,52 +2,52 @@ package types // Coin struct type Coin struct { - ID string - Name string - Symbol string - Rank int - Price float64 - Volume24H float64 - MarketCap float64 - AvailableSupply float64 - TotalSupply float64 - PercentChange1H float64 - PercentChange24H float64 - PercentChange7D float64 - LastUpdated string + ID string `json:"id"` + Name string `json:"name"` + Symbol string `json:"symbol"` + Rank int `json:"rank"` + Price float64 `json:"price"` + Volume24H float64 `json:"volume24H"` + MarketCap float64 `json:"marketCap"` + AvailableSupply float64 `json:"availableSupply"` + TotalSupply float64 `json:"totalSupply"` + PercentChange1H float64 `json:"percentChange1H"` + PercentChange24H float64 `json:"percentChange24H"` + PercentChange7D float64 `json:"percentChange7D"` + LastUpdated string `json:"lastUpdated"` } // GlobalMarketData struct type GlobalMarketData struct { - TotalMarketCapUSD float64 - Total24HVolumeUSD float64 - BitcoinPercentageOfMarketCap float64 - ActiveCurrencies int - ActiveAssets int - ActiveMarkets int + TotalMarketCapUSD float64 `json:"totalMarketCapUSD"` + Total24HVolumeUSD float64 `json:"total24HVolumeUSD"` + BitcoinPercentageOfMarketCap float64 `json:"bitcoinPercentageOfMarketCap"` + ActiveCurrencies int `json:"activeCurrencies"` + ActiveAssets int `json:"activeAssets"` + ActiveMarkets int `json:"activeMarkets"` } // CoinGraph struct type CoinGraph struct { - MarketCapByAvailableSupply [][]float64 - PriceBTC [][]float64 - Price [][]float64 - Volume [][]float64 + MarketCapByAvailableSupply [][]float64 `json:"marketCapByAvailableSupply"` + PriceBTC [][]float64 `json:"priceBTC"` + Price [][]float64 `json:"price"` + Volume [][]float64 `json:"volume"` } // Market struct type Market struct { - Rank int - Exchange string - Pair string - VolumeUSD float64 - Price float64 - VolumePercent float64 - Updated string + Rank int `json:"rank"` + Exchange string `json:"exchange"` + Pair string `json:"pair"` + VolumeUSD float64 `json:"volumeUSD"` + Price float64 `json:"price"` + VolumePercent float64 `json:"volumePercent"` + Updated string `json:"updated"` } // MarketGraph struct type MarketGraph struct { - MarketCapByAvailableSupply [][]float64 - VolumeUSD [][]float64 + MarketCapByAvailableSupply [][]float64 `json:"marketCapByAvailableSupply"` + VolumeUSD [][]float64 `json:"volumeUSD"` }