cryptocompare

package
v0.0.0-...-8cd81b6 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const CRYPTOCOMPARE_RATES_URL = "https://min-api.cryptocompare.com/data/price?fsym={base_currency}&tsyms=USD,RUB,EUR,GBP,AUD,ETH,BTC"

Variables

This section is empty.

Functions

This section is empty.

Types

type CryptocompateCurrencyResponse

type CryptocompateCurrencyResponse struct {
	USD float64 `json:"USD"`
	RUB float64 `json:"RUB"`
	EUR float64 `json:"EUR"`
	AUD float64 `json:"AUD"`
	GBP float64 `json:"GBP"`
	ETH float64 `json:"ETH"`
	BTC float64 `json:"BTC"`
}

func GetCryptocompareCurrencyResponse

func GetCryptocompareCurrencyResponse(baseCurrency string) (CryptocompateCurrencyResponse, error)

Jump to

Keyboard shortcuts

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