api

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ApiBaseUrl = "https://min-api.cryptocompare.com"

Variables

This section is empty.

Functions

func GetCurrencyValues

func GetCurrencyValues(fromCurrencies *[]string, toCurrencies *[]string, amount float64)

Types

type CoinList

type CoinList struct {
	BaseImageUrl     string           `json:"BaseImageUrl"`
	BaseLinkUrl      string           `json:"BaseLinkUrl"`
	Data             map[string]Datum `json:"Data"`
	DefaultWatchlist DefaultWatchlist `json:"DefaultWatchlist"`
	Message          string           `json:"Message"`
	Response         string           `json:"Response"`
	Type             int64            `json:"Type"`
}

func GetCoinlist

func GetCoinlist() CoinList

func UnmarshalCoinList

func UnmarshalCoinList(data []byte) (CoinList, error)

func (*CoinList) Marshal

func (r *CoinList) Marshal() ([]byte, error)

type Datum

type Datum struct {
	Algorithm           string  `json:"Algorithm"`
	CoinName            string  `json:"CoinName"`
	FullName            string  `json:"FullName"`
	FullyPremined       string  `json:"FullyPremined"`
	Id                  string  `json:"Id"`
	ImageUrl            *string `json:"ImageUrl"`
	Name                string  `json:"Name"`
	PreMinedValue       string  `json:"PreMinedValue"`
	ProofType           string  `json:"ProofType"`
	SortOrder           string  `json:"SortOrder"`
	Sponsored           bool    `json:"Sponsored"`
	Symbol              string  `json:"Symbol"`
	TotalCoinSupply     string  `json:"TotalCoinSupply"`
	TotalCoinsFreeFloat string  `json:"TotalCoinsFreeFloat"`
	Url                 string  `json:"Url"`
}

func GetCurrencyDetails

func GetCurrencyDetails(symbol string) Datum

type DefaultWatchlist

type DefaultWatchlist struct {
	CoinIs    string `json:"CoinIs"`
	Sponsored string `json:"Sponsored"`
}

Jump to

Keyboard shortcuts

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