You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 28, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: pages/price-feeds/getting-started.mdx
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ Developers interested in using Pyth can refer to the following resources:
12
12
13
13
-[Create Your First Pyth App](./create-your-first-pyth-app/) is a tutorial that walks the reader through all of the steps required to develop, test and deploy a contract using Pyth price feeds. This guide is tailored toward new developers with less contract development experience.
14
14
-[Use Real-Time Price Data](./use-real-time-data/) is a how-to guide that provides the minimal steps to integrate price feeds into your app. This guide is targeted towards more experienced developers who know the basics of smart contract development.
15
+
-[Use Historic Price Data](./use-historic-price-data/) is a how-to guide that provides the minimal steps to integrate historic price data into your app.
15
16
-[API Reference](./api-reference) is an interactive playground that provides a detailed overview of the Pyth smart contract's functionality. This guide is useful for developers who want to understand the full capabilities of the Pyth oracles.
16
17
17
18
In addition to the resources above, the following reference materials will be useful for developers as they integrate:
# Use Historic Price Data (Benchmarks) on EVM Chains
3
+
# Use Historic Price Data (Benchmarks)
4
4
5
5
This guide shows you how to integrate **Pyth Benchmarks to access historical price data** for your applications.
6
6
The Pyth Benchmarks API is available on all Pythnet chains.
@@ -26,9 +26,9 @@ Pyth Benchmarks can be used in two ways to fetch historical prices:
26
26
27
27
<Steps>
28
28
29
-
### 1. Fetching Historical Prices
29
+
### 1. Fetching Historical Prices from Benchmarks API
30
30
31
-
Fetching historical prices from the Benchmarks API is the most straightforward way to get historical prices.
31
+
Fetching historical prices from the [Benchmarks API](https://benchmarks.pyth.network/docs#/Updates/price_updates_timestamp_route_v1_updates_price__timestamp__get) is the most straightforward way to get historical prices.
32
32
Moreover, [Hermes also extends the Benchmarks API to allow you to fetch historical prices](https://hermes.pyth.network/docs/#/rest/timestamp_price_updates).
33
33
34
34
Benchmarks APIs expose two endpoints to fetch historical prices:
@@ -43,7 +43,7 @@ For example, if the timestamp is 1716400000 and the **interval is 60,** this fun
43
43
44
44
</Callout>
45
45
46
-
### Verifying Historical Prices on-chain
46
+
### 2. Verifying Historical Prices on EVM Chains
47
47
48
48
Verifying Historical Prices on-chain is very similar to verifying real-time prices on-chain.
49
49
After fetching the price updates in the previous step, you need to pass the price update to the [`parsePriceFeedUpdates`](https://api-reference.pyth.network/price-feeds/evm/parsePriceFeedUpdates) function on the Pyth contract instead of the [`updatePriceFeeds`](https://api-reference.pyth.network/price-feeds/evm/updatePriceFeeds) function.
@@ -104,7 +104,7 @@ Refer to the [parsePriceFeedUpdates](https://api-reference.pyth.network/price-fe
104
104
105
105
### TradingView Integration
106
106
107
-
-[TradingView integration](../benchmarks/how-to-create-tradingview-charts) for visualization.
107
+
-[TradingView integration](../create-tradingview-charts) for visualization.
0 commit comments