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.
Click to show internal directories.
Click to hide internal directories.