Get a price feed
https://pyth.dourolabs.app/hermes/v2/price_feeds/{id}No authentication.
Returns metadata for a price feed identified by its ID. The metadata matches the entry returned by List price feeds. Only feeds available from that endpoint can be retrieved here.
hermes/v2/price_feeds/{id}curl "https://pyth.dourolabs.app/hermes/v2/price_feeds/e62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43"{
"attributes": {
"asset_type": "string",
"description": "string",
"display_symbol": "string",
"min_channel": "real_time",
"symbol": "string"
},
"id": "e62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43",
"market_hours": {
"is_open": true,
"next_close": 1717632000,
"next_open": 1717632000
}
}Replace the placeholders in the URL path with these values.
idstringRequiredThe price feed ID, with or without the 0x prefix. Matching is case-insensitive.
Response
200 · application/jsonReturns a JSON object with the following fields.
attributesobjectMetadata that identifies and describes the feed.
asset_typestringAsset class of the feed.
descriptionstringDescription of the instrument.
display_symbolstringSymbol formatted for display.
min_channelFastest update channel supported by the feed.
- real_time
- fixed_rate@50ms
- fixed_rate@200ms
- fixed_rate@1000ms
symbolstringSymbol used to identify the feed.
basestring | nullBase asset of the feed.
cms_symbolstring | nullCMS symbol for the instrument.
countrystring | nullCountry associated with the instrument.
Show 6 moreShow fewer
cqs_symbolstring | nullCQS symbol for the instrument.
generic_symbolstring | nullGeneric symbol for the instrument.
nasdaq_symbolstring | nullNasdaq symbol for the instrument.
publish_intervalstring | nullPublication interval recorded in the feed metadata.
quote_currencystring | nullCurrency in which the price is quoted.
schedulestring | nullTrading schedule for the feed.
idstringHexadecimal ID of the price feed.
market_hoursobject | nullMarket opening and closing information. null when unavailable.
is_openbooleanWhether the market is open.
next_closeinteger | nullNext market closing time, in Unix seconds. null when no closing time is available.
next_openinteger | nullNext market opening time, in Unix seconds. null when no opening time is available.
Status codes returned when a request fails.
- 404
- The requested price feed was not found.
- 422
- The price feed ID is invalid.