types

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoinID

type CoinID struct {
	ID                 string   `json:"id"`
	Symbol             string   `json:"symbol"`
	Name               string   `json:"name"`
	AssetPlatformID    string   `json:"asset_platform_id"`
	BlockTimeInMinutes int64    `json:"block_time_in_minutes"`
	HashingAlgorithm   string   `json:"hashing_algorithm"`
	Categories         []string `json:"categories"`
	// PublicNotice ¿? `json:"public_notice"`
	// AdditionalNotices ¿? `json:"public_notices"`
	Localization              types.Localization        `json:"localization"`
	Description               types.Description         `json:"description"`
	Links                     types.Links               `json:"links"`
	Image                     types.Image               `json:"image"`
	CountryOrigin             string                    `json:"country_origin"`
	GenesisData               string                    `json:"genesis_date"`
	SentimentVotesUpPercent   float64                   `json:"sentiment_votes_up_percentage"`
	SentimentVotesDownPercent float64                   `json:"sentiment_votes_down_percentage"`
	MarketCapRank             int64                     `json:"market_cap_rank"`
	CoingeckoRank             int64                     `json:"coingecko_rank"`
	CoingeckoScore            float64                   `json:"coingecko_score"`
	DeveloperScore            float64                   `json:"developer_score"`
	CommunityScore            float64                   `json:"community_score"`
	LiquidityScore            float64                   `json:"liquidity_score"`
	PublicInterestScore       float64                   `json:"public_interest_score"`
	MarketData                types.MarketData          `json:"market_data"`
	CommunityData             types.CommunityData       `json:"community_data"`
	DeveloperData             types.DeveloperData       `json:"developer_data"`
	PublicInterestStats       types.PublicInterestStats `json:"public_interest_stats"`
	Tickers                   []types.Ticker            `json:"tickers"`
}

type CoinInfo

type CoinInfo struct {
	ID     string `json:"id"`
	Symbol string `json:"symbol"`
	Name   string `json:"name"`
}

type History

type History struct {
	ID                  string                    `json:"id"`
	Symbol              string                    `json:"symbol"`
	Name                string                    `json:"name"`
	Localization        types.Localization        `json:"localization"`
	Image               types.Image               `json:"image"`
	MarketData          HistoryMarketData         `json:"market_data"`
	CommunityData       types.CommunityData       `json:"community_data"`
	DeveloperData       types.DeveloperData       `json:"developer_data"`
	PublicInterestStats types.PublicInterestStats `json:"public_interest_stats"`
}

type HistoryMarketData

type HistoryMarketData struct {
	CurrentPrice types.PriceRates `json:"current_price"`
	MarketCap    types.PriceRates `json:"market_cap"`
	TotalVolume  types.PriceRates `json:"total_volume"`
}

type Market

type Market struct {
	ID                                         string          `json:"ID"`
	Symbol                                     string          `json:"symbol"`
	Name                                       string          `json:"name"`
	Image                                      string          `json:"image"`
	CurrentPrice                               float64         `json:"current_price"`
	MarketCap                                  float64         `json:"market_cap"`
	MarkeCcapRank                              int64           `json:"market_cap_rank"`
	FullyDilutedValuation                      float64         `json:"fully_diluted_valuation"`
	TotalVolume                                float64         `json:"total_volume"`
	HighDay                                    float64         `json:"high_24h"`
	LowDay                                     float64         `json:"low_24h"`
	PriceChangeDay                             float64         `json:"price_change_24h"`
	PriceChangePercentageDay                   float64         `json:"price_change_percentage_24h"`
	MarketCapChangeDay                         float64         `json:"market_cap_change_24h"`
	MarketCapChangePercentageDay               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                                    string          `json:"ath_date"`
	Atl                                        float64         `json:"atl"`
	AtlChangePercentage                        float64         `json:"atl_change_percentage"`
	AtlDate                                    string          `json:"atl_date"`
	Roi                                        types.Roi       `json:"roi"`
	LastUpdated                                string          `json:"last_updated"`
	SparklineInWeek                            types.Sparkline `json:"sparkline_in_7d"`
	PriceChangePercentageTwoWeeksInCurrency    float64         `json:"price_change_percentage_14d_in_currency"`
	PriceChangePercentageHourInCurrency        float64         `json:"price_change_percentage_1h_in_currency"`
	PriceChangePercentageThreeMonthsInCurrency float64         `json:"price_change_percentage_200d_in_currency"`
	PriceChangePercentageDayInCurrency         float64         `json:"price_change_percentage_24h_in_currency"`
	PriceChangePercentageMonthInCurrency       float64         `json:"price_change_percentage_30d_in_currency"`
	PriceChangePercentageWeekInCurrency        float64         `json:"price_change_percentage_7d_in_currency"`
}

type Ohlc

type Ohlc [][]float64

type Project

type Project struct {
	Type   string      `json:"type"`
	ID     string      `json:"id"`
	Name   string      `json:"name"`
	Symbol string      `json:"symbol"`
	Image  types.Image `json:"image"`
}

type ReposUrl

type ReposUrl struct {
	Github    []string `json:"github"`
	Bitbucket []string `json:"bitbucket"`
}

type Status

type Status struct {
	Description string  `json:"description"`
	Category    string  `json:"category"`
	CreatedAt   string  `json:"created_at"`
	User        string  `json:"user"`
	UserTitle   string  `json:"user_title"`
	Pin         bool    `json:"pin"`
	Project     Project `json:"project"`
}

type StatusUpdates

type StatusUpdates struct {
	StatusUpdates []Status `json:"status_updates"`
}

type Tickers

type Tickers struct {
	Name    string         `json:"name"`
	Tickers []types.Ticker `json:"tickers"`
}

Jump to

Keyboard shortcuts

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