apis

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUSDToETHPrice

func GetUSDToETHPrice() (float64, error)

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"`
}

Jump to

Keyboard shortcuts

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