Skip to content

Commit 71e8256

Browse files
committed
chore(pricfeeds) Requested changes
1 parent 4626931 commit 71e8256

File tree

9 files changed

+40
-33
lines changed

9 files changed

+40
-33
lines changed

pages/price-feeds/core/price-feeds.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ These specific pairs are part of an asset class, which is a broader category of
1111
Anyone can fetch available price feeds and their IDs via [Hermes API](https://hermes.pyth.network/docs/#/rest/price_feeds_metadata).
1212

1313
<Callout type="info">
14-
Pyth Core Price Feed IDs **are different** from Pyth Pro Price Feed IDs.
15-
Please refer to the [Pyth Pro Price Feed IDs](../pro/price-feed-ids) page for Pyth Pro Price Feed IDs.
14+
Pyth Core Price Feed IDs **are different** from Pyth Pro Price Feed IDs.
15+
Please refer to the [Pyth Pro Price Feed IDs](../pro/price-feed-ids) page for
16+
Pyth Pro Price Feed IDs.
1617
</Callout>
1718

1819
## Asset Classes

pages/price-feeds/core/use-real-time-data/ton.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ Install the Pyth TON SDK and other necessary dependencies using npm:
1010

1111
<Tabs items={["npm", "yarn"]}>
1212
<Tabs.Tab>
13-
```bash copy
14-
npm install @pythnetwork/pyth-ton-js @pythnetwork/hermes-client
15-
@ton/core @ton/ton @ton/crypto
16-
```
13+
```bash copy
14+
npm install @pythnetwork/pyth-ton-js @pythnetwork/hermes-client
15+
@ton/core @ton/ton @ton/crypto
16+
```
1717
</Tabs.Tab>
1818
<Tabs.Tab>
19-
```bash copy
20-
yarn add @pythnetwork/pyth-ton-js @pythnetwork/hermes-client
21-
@ton/core @ton/ton @ton/crypto
22-
```
19+
```bash copy
20+
yarn add @pythnetwork/pyth-ton-js @pythnetwork/hermes-client
21+
@ton/core @ton/ton @ton/crypto
22+
```
2323
</Tabs.Tab>
2424
</Tabs>
2525

pages/price-feeds/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ Pyth offers two main versions of price feeds, each optimized for different use c
3737
]}
3838
quickActions={[
3939
{ icon: <ListIcon />, title: "Available Price Feeds", href: "./price-feeds/pro/price-feed-ids" },
40-
{ icon: <KeyIcon />, title: "Get the access token", href: "https://tally.so/r/nP2lG5" },
41-
{ icon: <MoneyWavyIcon />, title: "Pricing", href: "./price-feeds/pro/pricing" },
40+
{ icon: <KeyIcon />, title: "Get an access token", href: "https://tally.so/r/nP2lG5" },
41+
{ icon: <MoneyWavyIcon />, title: "Pricing", href: "https://www.pyth.network/pricing" },
4242
]}
4343
ctaText="Explore Pro Documentation"
4444
href="./price-feeds/pro"
@@ -56,7 +56,7 @@ Pyth offers two main versions of price feeds, each optimized for different use c
5656
{ icon: <ClockIcon />, text: "400ms update frequency" },
5757
{ icon: <MultiChainIcon />, text: "100+ blockchains" },
5858
{ icon: <ShieldIcon />, text: "Supports Pull and Push updates" },
59-
{ icon: <ShieldIcon />, text: "Decentralized & secure" },
59+
{ icon: <ShieldIcon />, text: "Decentralized Oracle" },
6060
]}
6161
quickActions={[
6262
{

pages/price-feeds/pro/index.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,9 @@ The service is delivered through standard APIs for seamless integration.
2727
title="Subscribe to prices"
2828
href="./subscribe-price-updates"
2929
/>
30-
<Card icon={<BarChartIcon />} title="Pricing" href="./pricing" />
30+
<Card
31+
icon={<BarChartIcon />}
32+
title="Pricing"
33+
href="https://www.pyth.network/pricing"
34+
/>
3135
</Cards>

pages/price-feeds/pro/integrate-as-consumer/evm.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ contract ExampleConsumer {
5252
5353
```
5454

55-
Add an argument of type `bytes calldata{:solidity}` to the method which will receive the price udpate:
55+
Add an argument of type `bytes calldata{:solidity}` to the method which will receive the price update:
5656

5757
```solidity copy
5858
function updatePrice(bytes calldata priceUpdate) public payable {
@@ -127,7 +127,7 @@ for (uint8 i = 0; i < feedsLen; i++) {
127127

128128
### Subscribe to Pyth Pro to receive Price Updates
129129

130-
Pyth Pro/Lazer provides a websocket endpoint to receive price updates. Moreover, Pyth Pro/Lazer also provides a [Typescript SDK](https://github.com/pyth-network/pyth-crosschain/tree/main/lazer/sdk/js) to subscribe to the websocket endpoint.
130+
Pyth Pro provides a websocket endpoint to receive price updates. Moreover, Pyth Pro also provides a [Typescript SDK](https://github.com/pyth-network/pyth-crosschain/tree/main/lazer/sdk/js) to subscribe to the websocket endpoint.
131131

132132
Consult [How to subscribe to price updates](../subscribe-price-updates.mdx) for a complete step-by-step guide.
133133

pages/price-feeds/pro/integrate-as-consumer/svm.mdx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ import { Callout, Tabs, Steps } from "nextra/components";
44

55
This guide is intended to serve users who wants to consume prices from the Pyth Pro on **Solana and Fogo**.
66

7-
<Callout type="info">
8-
Pyth Pro was previously known as Pyth Lazer. Pyth Pro uses the same
9-
infrastructure as Pyth Lazer.
10-
</Callout>
7+
<Callout type="info">Pyth Pro was previously known as Pyth Lazer.</Callout>
118

129
Integrating with Pyth Pro in smart contracts as a consumer is a three-step process:
1310

pages/price-feeds/pro/price-feed-ids.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ import { Callout } from "nextra/components";
44
# Pyth Pro Price Feeds
55

66
<Callout type="info">
7-
Pyth Pro Price Feed IDs **are different** from Pyth Core Price Feed IDs.
8-
Please refer to the [Pyth Core Price Feed IDs](../core/price-feeds) page for Pyth Core Price Feed IDs.
7+
Pyth Pro Price Feed IDs **are different** from Pyth Core Price Feed IDs.
8+
Please refer to the [Pyth Core Price Feed IDs](../core/price-feeds) page for
9+
Pyth Core Price Feed IDs.
910
</Callout>
1011

12+
<br />
13+
1114
<LazerPriceIdTable />

pages/price-feeds/pro/subscribe-price-updates.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import { Callout, Steps } from "nextra/components";
44

55
This guide explains how to subscribe to prices from Pyth Pro.
66
This guide will also explain various properties and configuration options to customize the prices.
7-
**The return data also includes price updates that can be verified on the target chain.**
7+
**The return data also includes verified payloads that can be verified on the target blockchain.**
88

99
Subscribing to prices is a three-step process:
1010

1111
1. **Acquire** an access token.
1212
2. **Configure** subscription parameters.
13-
3. **Subscribe** to the prices and price updates via [websocket API](https://pyth-lazer.dourolabs.app/docs).
13+
3. **Subscribe** to the prices via [websocket API](https://pyth-lazer.dourolabs.app/docs).
1414

1515
The websocket server is available at `wss://pyth-lazer.dourolabs.app/v1/stream{:bash}`.
1616

@@ -42,7 +42,7 @@ client.send({
4242
The most significant parameters are:
4343

4444
- `subscriptionId` is an arbitrary numeric identifier for a subscription. It will be returned back in response by the server. It does not affect the signed payload.
45-
- `priceFeedIds` is the list of price feeds to receive updates for. Data for all price feeds will be present in the signed price updates generated. Refer to the [Price Feed IDs list](./price-feed-ids.mdx) for the supported price feeds.
45+
- `priceFeedIds` is the list of price feeds to receive price data for. It will also include the verified payloads for the price feeds. Refer to the [Price Feed IDs list](./price-feed-ids.mdx) for the supported price feeds.
4646
- `properties` is the list of properties to retrieve, such as **price**, **bestBidPrice**, **bestAskPrice**, etc.
4747
- `chains` is the list of chains to receive a signed payload for, such as **evm**, **solana**, etc.
4848
- `channel` determines the update rate: updates in the **real_time** channel are sent as frequently as possible, while **fixed_rate@200ms** and **fixed_rate@50ms** channels are updated at fixed rates.
@@ -51,11 +51,11 @@ There are also a few other configuration parameters -- see the [API documentatio
5151

5252
Determine the most suitable values for your application -- they will be used in the next step.
5353

54-
### 3. Subscribe to the prices and price updates
54+
### 3. Subscribe to the prices
5555

56-
To subscribe to the prices, send a request to the websocket server. The server will respond with a signed price update.
56+
To subscribe to the prices, send a request to the websocket server. The server will respond with a signed payload.
5757

58-
1. Pyth Lazer(Infrastructure behind Pyth Pro) provides an [SDK](https://github.com/pyth-network/pyth-crosschain/tree/main/lazer/sdk/js) to seamlessly integrate the websocket API into your application.
58+
1. Pyth Lazer provides an [SDK](https://github.com/pyth-network/pyth-crosschain/tree/main/lazer/sdk/js) to seamlessly integrate the websocket API into your application.
5959
Install it using the following command:
6060

6161
```bash copy
@@ -73,7 +73,7 @@ const client = await PythLazerClient.create(
7373
);
7474
```
7575

76-
3. After the client is created, subscribe to price and price updates (using the configuration parameters from step 2):
76+
3. After the client is created, subscribe to prices (using the configuration parameters from step 2):
7777

7878
```js copy
7979
client.subscribe({
@@ -86,15 +86,15 @@ client.subscribe({
8686
});
8787
```
8888

89-
4. Once the connection is established, the server will start sending the price and price updates to the client:
89+
4. Once the connection is established, the server will start sending the price and verified payloads to the client:
9090

9191
```js copy
9292
client.addMessageListener((message) => {
9393
console.log(message);
9494
});
9595
```
9696

97-
By default, price updates contain the `parsed` field that one can use to easily interpret the price update in their backend or frontend, as well as `evm` and/or `solana` fields that contain data that one should include in the on-chain transaction:
97+
By default, verified payloads contain the `parsed` field that one can use to easily interpret the price data in their backend or frontend, as well as `evm` and/or `solana` fields that contain data that one should include in the on-chain transaction:
9898

9999
```json copy
100100
{
@@ -124,7 +124,7 @@ By default, price updates contain the `parsed` field that one can use to easily
124124

125125
## Additional Resources
126126

127-
You may find these additional resources helpful for subscribing to prices and price updates from Pyth Pro.
127+
You may find these additional resources helpful for subscribing to prices from Pyth Pro.
128128

129129
### Price Feed IDs
130130

theme.config.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ const config: DocsThemeConfig = {
4343
className="flex items-center justify-center gap-2 text-white hover:text-white/90 transition-colors"
4444
>
4545
<span className="text-lg"></span>
46-
<span className="font-semibold">Now get 1ms latency on Pyth Pro!</span>
46+
<span className="font-semibold">
47+
Trade in real time: Pyth Pro introduces 1 ms updates
48+
</span>
4749
<span className="text-sm opacity-90"></span>
4850
</a>
4951
),

0 commit comments

Comments
 (0)