coingecko

package
v0.0.0-...-ad1f59c Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(client *http.Client, base *url.URL, apiKey string) *Client

func (*Client) Do

func (c *Client) Do(r *http.Request) (*http.Response, error)

func (*Client) Resolve

func (c *Client) Resolve(endpoint *url.URL) (string, error)

type Price

type Price struct {
	Price     string
	ExpiresAt time.Time
}

type PriceCache

type PriceCache map[string]Price

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(connector *helpers.Connector, cacheExpiration time.Duration) *Service

func (*Service) GetNftPrice

func (s *Service) GetNftPrice(platform, contract string) (*models.FloorPrice, error)

func (*Service) GetPlatforms

func (s *Service) GetPlatforms() (models.PlatformResponse, error)

func (*Service) GetPrice

func (s *Service) GetPrice(platform, contract, vsAsset string) (string, error)

func (*Service) GetTokenContractInfo

func (s *Service) GetTokenContractInfo(address common.Address)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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