mirror of https://github.com/miguelmota/cointop
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.
25 lines
509 B
Go
25 lines
509 B
Go
package cointop
|
|
|
|
// Coin is the row structure
|
|
type Coin struct {
|
|
ID string
|
|
Name string
|
|
Slug string
|
|
Symbol string
|
|
Rank int
|
|
Price float64
|
|
Volume24H float64
|
|
MarketCap float64
|
|
AvailableSupply float64
|
|
TotalSupply float64
|
|
PercentChange1H float64
|
|
PercentChange24H float64
|
|
PercentChange7D float64
|
|
LastUpdated string
|
|
// for favorites
|
|
Favorite bool
|
|
// for portfolio
|
|
Holdings float64
|
|
Balance float64
|
|
}
|