types

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidHTTPTimeout is returned when the HTTP timeout is not greater than 0.
	ErrInvalidHTTPTimeout = errors.New("http timeout must be greater than 0")

	// ErrInvalidMaxRetries is returned when the max retries is less than 0.
	ErrInvalidMaxRetries = errors.New("max retries must be greater than or equal to 0")
)

Config.

View Source
var (
	// ErrFeedNotSupported is returned when the feed version is not supported.
	ErrFeedNotSupported = errors.New("feed version not supported")
)

Feeds.

Functions

This section is empty.

Types

type LatestPriceData

type LatestPriceData struct {
	PriceFeed *apyth.PythStructsPriceFeed

	// Always contains only 1 []byte for this price feed's update data.
	UpdateData []byte
}

Actionable data returned from the `v2/updates/price/latest` endpoint for 1 price feed ID.

Jump to

Keyboard shortcuts

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