Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUSDToETHPrice ¶
Types ¶
type BlockchainDotcomResponse ¶
type BlockchainDotcomResponse struct {
LastTradePrice float64 `json:"last_trade_price"`
}
type CoinbaseResponse ¶
type CoinbaseResponse struct { Data struct { Amount string `json:"amount"` } `json:"data"` }
type CoingeckoResponse ¶
type CoingeckoResponse struct { Bitcoin struct { USD float64 `json:"usd"` } `json:"ethereum"` }
type GeminiResponse ¶
type GeminiResponse struct {
Last string `json:"last"`
}
type KrakenResponse ¶
type KrakenResponse struct { Result struct { Ticker struct { LastPriceList []string `json:"c"` } `json:"XETHZUSD"` } `json:"result"` }
Click to show internal directories.
Click to hide internal directories.