Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Asset ¶
type Asset struct { ID string `json:"id"` // "1e31218a-e44e-4285-820c-8282ee222035", Symbol string `json:"symbol"` // "BTC", Name string `json:"name"` // "Bitcoin", Slug string `json:"slug"` // "bitcoin", Metrics struct { MarketData struct { PriceUSD float64 `json:"price_usd"` } `json:"market_data"` Supply struct { Y2050 float64 `json:"y_2050"` // 20983495.3984375, Y2050IssuedPct float64 `json:"y_2050_issued_percent"` // 20, YPlus10 float64 `json:"y_plus10"` // 8932344.3984375, YPlus10IssuedPct float64 `json:"y_plus10_issued_percent"` // 40, Liquid float64 `json:"liquid"` // 1982345, Circulating float64 `json:"circulating"` // 17394725, StockToFlow float64 `json:"stock_to_flow"` // 0 AnnualInflationPct float64 `json:"annual_inflation_percent"` // 1.7633 } `json:"supply"` DeveloperActivity struct { Stars int `json:"stars"` // 34996, Watchers int `json:"watchers"` // 3513, CommitsLast3Months int `json:"commits_last_3_months"` // 342, CommitsLast1Year int `json:"commits_last_1_year"` // 1775, } `json:"developer_activity"` AllTimeHigh struct { Price float64 `json:"price"` // 20089, At string `json:"at"` // "2018-06-02T22:51:28.209Z", DaysSince int `json:"days_since"` // 344, PercentDown float64 `json:"percent_down"` // 81.47285775644839 } `json:"all_time_high"` } `json:"metrics"` }
type AssetsResponse ¶
type ErrorResponse ¶
type ErrorResponse struct { Status struct { Timestamp string `json:"timestamp"` // Current ISO 8601 timestamp on the server. ErrorCode int `json:"error_code"` // Internal error code generated or 400 if default. ErrorMessage string `json:"error_message"` // Corresponding error message for the code. Elapsed int `json:"elapsed"` // Number of milliseconds taken to generate this response. } `json:"status"` }
type Messari ¶
type Messari struct {
// contains filtered or unexported fields
}
func (*Messari) AssetsWithCache ¶
func (cg *Messari) AssetsWithCache(i jsoncache.InvalidateCachePeriod) (as []*Asset, err error)
Click to show internal directories.
Click to hide internal directories.