tokenprice

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package tokenprice contains the historical price data

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	// GetPriceData attempts to get price data from the cache otherwise it requests defillama
	GetPriceData(context.Context, int, string) *float64
}

Service provides price data about tokens using either a cache or defillama cache keys sare always ${coin gecko id}_${timestamp}.

func NewPriceDataService

func NewPriceDataService() (Service, error)

NewPriceDataService creates a new token price data service.

Jump to

Keyboard shortcuts

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