geckoapis

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGeckoPrice

func GetGeckoPrice(id string, currency string, apiKey string) (map[string]map[string]decimal.Decimal, error)

Types

type CoingeckoToken

type CoingeckoToken struct {
	ID     string `json:"id"`
	Name   string `json:"name"`
	Symbol string `json:"symbol"`
}

func GetGeckoTokenList

func GetGeckoTokenList(apiKey string) (list []CoingeckoToken, err error)

Get token list to pair token symbol with token id.

Jump to

Keyboard shortcuts

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