forked from JulianToledano/goingecko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.go
20 lines (17 loc) · 918 Bytes
/
global.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package global
import "github.com/JulianToledano/goingecko/types"
type Global struct {
Data data `json:"data"`
}
type data struct {
ActiveCryptocurrencies int32 `json:"active_cryptocurrencies"`
UpcomingIcos int32 `json:"upcoming_icos"`
OngoingIcos int32 `json:"ongoing_icos"`
EndedIcos int32 `json:"ended_icos"`
Markets int32 `json:"markets"`
TotalMarketCap types.PriceRates `json:"total_market_cap"`
TotalVolume types.PriceRates `json:"total_volume"`
MarketCapPercentage map[string]float64 `json:"market_cap_percentage"`
MarketCapChangePercentage24hUsd float64 `json:"market_cap_change_percentage_24h_usd"`
UpdatedAt float64 `json:"updated_at"`
}