How do I get price feeds for stocks like AAPL at a particular timestamp? Current way is not working

Currently trying to query for the price of different stocks on Pyth through the Benchmark Link: Benchmarks - Swagger UI

Specifically, I’m checking for the price at the end of the market per day (that’s 9 PM UTC)

Take AAPL for example: the price feed ID is 0x49f6b65cb1de6b10eaf75e7c03ca029c306d0357e91b5311b175084a5ad5568 and for the timestamp of 1752008400 (Tue 8th July)

When you make the API call to /v1/updates/price/{timestamp}, it responds with

Unique historical price update for the given ids [‘49f6b65cb1de6b10eaf75e7c03ca029c306d0357e91b5311b175084a5ad5568’] and timestamp 1752008400 are not found

Please what is the issue?

Hi @obumnwabude,

There are two issues with the provided data

  1. The Price Feed ID has a typo, there’s an “8” at the end, which is missing. The correct Price Feed ID for Equity.US.AAPL/USD
    0x49f6b65cb1de6b10eaf75e7c03ca029c306d0357e91b5311b175084a5ad55688
    Please use the copy button provided to ensure the correctness.

  2. The time provided is outside the working hours. Kindly check https://docs.pyth.network/price-feeds/market-hours

You are using 1752008400 which is Tuesday, July 8, 2025 9:00:00 PM GMT - 8th July 5PM ET.
Working hours are until 4PM ET, if you use 8th July 4PM ET - 1752004800, it should work as it is the end of the market day.

2 Likes