Skip to content

API ReferencePricing and oraclesInterface

UsdPriceFeedEntry

Names a Pyth feed directly for display pricing, for values with no ERC-20 address to resolve a feed from (native ETH, for example). Shares the batched Hermes request and fresh/stale/unavailable envelope with address entries in the same call.

Properties

decimals

decimals: number;

The priced value’s decimals, folded into the returned Price’s cents-per-most-granular-unit exponent the same way an address entry’s resolved Token.decimals is.


feedId

feedId: string;

The Pyth feed ID to price.


key?

optional key?: string;

Caller-chosen identity for this entry’s outcome, returned as UsdPriceOutcome.key on its kind: 'feed' branch. Defaults to feedId when omitted.