types

package
v1.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coin

type Coin struct {
	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"`
	PercentChange30D float64 `json:"percentChange30D"`
	LastUpdated      string  `json:"lastUpdated"`
}

Coin struct

type CoinGraph

type CoinGraph struct {
	MarketCapByAvailableSupply [][]float64 `json:"marketCapByAvailableSupply"`
	PriceBTC                   [][]float64 `json:"priceBTC"`
	Price                      [][]float64 `json:"price"`
	Volume                     [][]float64 `json:"volume"`
}

CoinGraph struct

type GlobalMarketData

type GlobalMarketData struct {
	TotalMarketCapUSD            float64 `json:"totalMarketCapUSD"`
	Total24HVolumeUSD            float64 `json:"total24HVolumeUSD"`
	BitcoinPercentageOfMarketCap float64 `json:"bitcoinPercentageOfMarketCap"`
	ActiveCurrencies             int     `json:"activeCurrencies"`
	ActiveAssets                 int     `json:"activeAssets"`
	ActiveMarkets                int     `json:"activeMarkets"`
}

GlobalMarketData struct

type Market

type Market struct {
	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"`
}

Market struct

type MarketGraph

type MarketGraph struct {
	MarketCapByAvailableSupply [][]float64 `json:"marketCapByAvailableSupply"`
	VolumeUSD                  [][]float64 `json:"volumeUSD"`
}

MarketGraph struct

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL