Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a client for the Pyth Benchmarks API (https://benchmarks.pyth.network/docs)
func (*Client) GetHistoricalPriceUpdatesSync ¶
func (c *Client) GetHistoricalPriceUpdatesSync( _ context.Context, timestamp time.Time, priceFeeds ...string, ) (map[string]*apyth.PythStructsPriceFeed, error)
GetHistoricalPriceUpdatesSync queries the `v1/updates/price/{timestamp}` endpoint for all price feed IDs together. Takes the price feed keys (uses corresponding Pyth feed ID). Returns the Pyth PriceFeed struct and the price feed update data for each pair.
Click to show internal directories.
Click to hide internal directories.