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 ¶
NewPriceDataService creates a new token price data service.
Click to show internal directories.
Click to hide internal directories.