types

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: MIT Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VolumeChartValidDays = map[string]struct{}{
	"1":   {},
	"7":   {},
	"14":  {},
	"30":  {},
	"90":  {},
	"180": {},
	"365": {},
}

Functions

This section is empty.

Types

type Converted

type Converted struct {
	Btc float64 `json:"btc"`
	Eth float64 `json:"eth"`
	Usd float64 `json:"usd"`
}

type Exchange

type Exchange struct {
	ID                         string  `json:"id"`
	Name                       string  `json:"name"`
	YearEstablished            int64   `json:"year_established"`
	Country                    string  `json:"country"`
	Description                string  `json:"description"`
	Url                        string  `json:"url"`
	Image                      string  `json:"image"`
	HasTradingIncentive        bool    `json:"has_trading_incentive"`
	TrustScore                 int64   `json:"trust_score"`
	TrustScoreRank             int64   `json:"trust_score_rank"`
	TradeVolume24h             float64 `json:"trade_volume_24h_btc"`
	TradeVolume24jBtcNormalice float64 `json:"trade_volume_24h_btc_normalized"`
}

type ExchangeId

type ExchangeId struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type ExchangeWithTicker

type ExchangeWithTicker struct {
	Name                        string          `json:"name"`
	YearEstablished             int64           `json:"year_established"`
	Country                     string          `json:"country"`
	Description                 string          `json:"description"`
	Url                         string          `json:"url"`
	Image                       string          `json:"image"`
	FacebookUrl                 string          `json:"facebook_url"`
	RedditYrl                   string          `json:"reddit_url"`
	TelegramUrl                 string          `json:"telegram_url"`
	SlackUrl                    string          `json:"slack_url"`
	OtherUrl1                   string          `json:"other_url_1"`
	OtherUrl2                   string          `json:"other_url_2"`
	TwitterHandle               string          `json:"twitter_handle"`
	HasTradingIncentive         bool            `json:"has_trading_incentive"`
	Centralized                 bool            `json:"centralized"`
	PublicNotice                string          `json:"public_notice"`
	AlertNotice                 string          `json:"alert_notice"`
	TrustScore                  int64           `json:"trust_score"`
	TrustScoreRank              int64           `json:"trust_score_rank"`
	TradeVolume24hBtc           float64         `json:"trade_volume_24h_btc"`
	TradeVolume24hBtcNormalized float64         `json:"trade_volume_24h_btc_normalized"`
	Tickers                     []Ticker        `json:"tickers"`
	StatusUpdates               []StatusUpdates `json:"status_updates"`
}

type ExchangesList

type ExchangesList []Exchange

type Market

type Market struct {
	Name                string `json:"name"`
	Identifier          string `json:"identifier"`
	HasTradingIncentive bool   `json:"has_trading_incentive"`
}

type StatusUpdates

type StatusUpdates struct {
}

type Ticker

type Ticker struct {
	Base                   string    `json:"base"`
	Target                 string    `json:"target"`
	Market                 Market    `json:"Market"`
	Last                   float64   `json:"Last"`
	Volume                 float64   `json:"volume"`
	ConvertedLast          Converted `json:"converted_last"`
	ConvertedVolume        Converted `json:"converted_volume"`
	TrustScore             string    `json:"trust_score"`
	BidAskSpreadPercentage float64   `json:"bid_ask_spread_percentage"`
	Timestamp              string    `json:"timestamp"`
	LastTradedAt           string    `json:"last_traded_at"`
	LastFetchAt            string    `json:"last_fetch_at"`
	IsAnomaly              bool      `json:"is_anomaly"`
	IsStale                bool      `json:"is_stale"`
	TradeUrl               string    `json:"trade_url"`
	TokenInfoUrl           string    `json:"token_info_url"`
	CoinID                 string    `json:"coin_id"`
	TargetCoinID           string    `json:"target_coin_id"`
}

type Tickers

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

type Volume

type Volume []interface{}

Jump to

Keyboard shortcuts

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