-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjson.go
37 lines (35 loc) · 2.23 KB
/
json.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package main
import "time"
type Coins []Coin
type Coin struct {
ID string `json:"id"`
Symbol string `json:"symbol"`
Name string `json:"name"`
Image string `json:"image"`
CurrentPrice float64 `json:"current_price"`
MarketCap int64 `json:"market_cap"`
MarketCapRank int `json:"market_cap_rank"`
FullyDilutedValuation int64 `json:"fully_diluted_valuation"`
TotalVolume int64 `json:"total_volume"`
High24H float64 `json:"high_24h"`
Low24H float64 `json:"low_24h"`
PriceChange24H float64 `json:"price_change_24h"`
PriceChangePercentage24H float64 `json:"price_change_percentage_24h"`
MarketCapChange24H float64 `json:"market_cap_change_24h"`
MarketCapChangePercentage24H float64 `json:"market_cap_change_percentage_24h"`
CirculatingSupply float64 `json:"circulating_supply"`
TotalSupply float64 `json:"total_supply"`
MaxSupply float64 `json:"max_supply"`
Ath float64 `json:"ath"`
AthChangePercentage float64 `json:"ath_change_percentage"`
AthDate time.Time `json:"ath_date"`
Atl float64 `json:"atl"`
AtlChangePercentage float64 `json:"atl_change_percentage"`
AtlDate time.Time `json:"atl_date"`
Roi interface{} `json:"roi"`
LastUpdated time.Time `json:"last_updated"`
PriceChangePercentage1HInCurrency float64 `json:"price_change_percentage_1h_in_currency"`
PriceChangePercentage24HInCurrency float64 `json:"price_change_percentage_24h_in_currency"`
PriceChangePercentage30DInCurrency float64 `json:"price_change_percentage_30d_in_currency"`
PriceChangePercentage7DInCurrency float64 `json:"price_change_percentage_7d_in_currency"`
}