Documentation ¶
Index ¶
- func GetBitfinexETHPrice() (decimal.Decimal, error)
- func GetCexIOETHUSDLastPrice() (decimal.Decimal, error)
- func GetCoinbaseETHPrice() (decimal.Decimal, error)
- func GetKrakenETHPrice() (decimal.Decimal, error)
- func GetKuCoinETHUSDTPrice() (decimal.Decimal, error)
- func GetWeightedAvgPriceFromBinance() (decimal.Decimal, error)
- func PingBinance() (decimal.Decimal, error)
- type BitfinexTickerResponse
- type CexIOResponse
- type CoinbaseResponse
- type Data
- type Kline
- type KrakenTickerResponse
- type KuCoinResponse
- type TickerData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBitfinexETHPrice ¶
func GetCexIOETHUSDLastPrice ¶
func GetCoinbaseETHPrice ¶
func GetKrakenETHPrice ¶
func GetKuCoinETHUSDTPrice ¶
func PingBinance ¶
Types ¶
type BitfinexTickerResponse ¶
type BitfinexTickerResponse struct {
Mid string `json:"mid"`
}
type CexIOResponse ¶
type CexIOResponse struct { Timestamp string `json:"timestamp"` Low string `json:"low"` High string `json:"high"` Last string `json:"last"` Volume string `json:"volume"` Volume30d string `json:"volume30d"` Bid float64 `json:"bid"` Ask float64 `json:"ask"` PriceChange string `json:"priceChange"` PriceChangePercentage string `json:"priceChangePercentage"` Pair string `json:"pair"` }
type CoinbaseResponse ¶
type KrakenTickerResponse ¶
type KuCoinResponse ¶
type TickerData ¶
type TickerData struct { Symbol string `json:"symbol"` WeightedAvgPrice string `json:"weightedAvgPrice"` }
Struct to unmarshal the JSON response
Click to show internal directories.
Click to hide internal directories.