tokenrate

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoAvailableQuoteQuery = errors.New("token: no available quote query service")

Functions

func GetUSD

func GetUSD(ctx context.Context, symbol string) (float64, error)

Types

type Float64 added in v1.8.9

type Float64 struct {
	Value float64
}

func (*Float64) UnmarshalJSON added in v1.8.9

func (s *Float64) UnmarshalJSON(data []byte) error

type Query added in v1.8.16

type Query struct {
	ZCN  V2Pair
	USDC V2Pair
}

type V2Pair added in v1.8.16

type V2Pair struct {
	ID           string
	VolumeToken0 string
	VolumeToken1 string
	Token0Price  string
	Token1Price  string
	Token0       V2Token
	Token1       V2Token
}

type V2Token added in v1.8.16

type V2Token struct {
	ID     string
	Symbol string
}

Jump to

Keyboard shortcuts

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