You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cointop/pkg/api/types/types.go

54 lines
1.2 KiB
Go

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
}
// GlobalMarketData struct
type GlobalMarketData struct {
TotalMarketCapUSD float64
Total24HVolumeUSD float64
BitcoinPercentageOfMarketCap float64
ActiveCurrencies int
ActiveAssets int
ActiveMarkets int
}
// CoinGraph struct
type CoinGraph struct {
MarketCapByAvailableSupply [][]float64
PriceBTC [][]float64
Price [][]float64
Volume [][]float64
}
// Market struct
type Market struct {
Rank int
Exchange string
Pair string
VolumeUSD float64
Price float64
VolumePercent float64
Updated string
}
// MarketGraph struct
type MarketGraph struct {
MarketCapByAvailableSupply [][]float64
VolumeUSD [][]float64
}