Skip to content

Commit c01da04

Browse files
committed
chore(pricefeeds) Update
1 parent b2afeee commit c01da04

File tree

10 files changed

+82
-68
lines changed

10 files changed

+82
-68
lines changed

components/icons/ProductIcons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@ export function BookIcon() {
7070

7171
export function MoneyWavyIcon() {
7272
return <MoneyWavy className="w-5 h-5" weight="regular" />;
73-
}
73+
}

next.config.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,18 @@ const permanentRedirectArray = [
121121
],
122122
["/benchmarks/api-instances", "/price-feeds/api-reference/"],
123123
["/benchmarks/rate-limits", "/price-feeds/rate-limits/"],
124-
// Lazer to Pyth Pro Redirects
124+
125+
// Lazer (top-level) to Pyth Pro Redirects - MUST come before general price-feeds redirects
125126
["/lazer", "/price-feeds/pro"],
126127
["/lazer/:path*", "/price-feeds/pro/:path*"],
127128

128-
// Price Feeds to Core Redirects
129+
// Explicitly map legacy lazer paths under /price-feeds to Pro - MUST come before general price-feeds redirects
130+
["/price-feeds/lazer", "/price-feeds/pro"],
131+
["/price-feeds/lazer/:path*", "/price-feeds/pro/:path*"],
132+
133+
["/price-feeds/:path((?!core|pro).*?)", "/price-feeds/core/:path*"],
134+
135+
// // Price Feeds to Core Redirects - general catch-all (comes last)
129136
// ["/price-feeds", "/price-feeds/core"],
130137
// ["/price-feeds/:path*", "/price-feeds/core/:path*"],
131138
];

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Getting Started
22

3-
Integrating Pyth price feeds is quick and easy. Pyth price feeds are permissionless and available on-chain. You **don't** need to sign up or request an API key
3+
Integrating Pyth price feeds is quick and easy. Pyth price feeds are permissionless and available on-chain. You **don't** need to sign up or request an API key to use **Pyth Core.**
44

5-
Pyth offers several different resources to help you get started.
5+
Pyth Core offers several different resources to help you get started.
66
The [Build](#build) section provides resources for developers integrating Pyth price feeds into their applications.
77
The [Learn](#learn) section provides general material for anyone interested in understanding how the protocol works.
88

99
## Build
1010

11-
Developers interested in using Pyth can refer to the following resources:
11+
Developers interested in using Pyth Corecan refer to the following resources:
1212

1313
- [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.
1414
- [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.
@@ -21,6 +21,7 @@ In addition to the resources above, the following reference materials will be us
2121
- [Contract Addresses](./contract-addresses/) provides the contract addresses for Pyth on different chains.
2222
- [Error Codes](./error-codes.mdx) lists the error codes that can be returned by the Pyth contracts.
2323
- [Best Practices](./best-practices.mdx) explains how to use Pyth price feeds safely and effectively in your application.
24+
- [Sponsored Feeds](./sponsored-feeds.mdx) lists the price feeds that are sponsored(pushed) by the Pyth Data Association.
2425

2526
## Learn
2627

pages/price-feeds/core/index.mdx

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,21 @@ import {
55
LightningIcon,
66
MultiChainIcon,
77
ShieldIcon,
8+
ListIcon,
89
} from "../../../components/icons/ProductIcons";
10+
import { Cards, Card } from "nextra/components";
911

1012
# Introduction to Pyth Core
1113

12-
Pyth Network provides real-time financial market data to smart contract applications on 100+ blockchains.
13-
Data is sourced from 120+ first-party providers including major exchanges and market makers.
14+
Pyth Core is the decentralized Pyth oracle delivering real-time financial market data to smart contracts across 100+ blockchains.
15+
Data is contributed directly by 120+ first-party publishers, including leading exchanges and trading firms.
1416

1517
## Key Features
1618

17-
- **1600+ price feeds** across all major asset classes
18-
- **Sub-second latency** with high-frequency updates
19+
- **2000+ price feeds** across all major asset classes
20+
- **400ms update frequency** with high-frequency updates
1921
- **Cryptographically signed** and verifiable on-chain
20-
- **Multi-chain support** including EVM, Cosmos, Solana, Aptos, and more
22+
- **Decentralized** access across **100+ blockchains** including EVM, Cosmos, Solana, Aptos, and more
2123

2224
## Our Products
2325

@@ -29,7 +31,7 @@ Data is sourced from 120+ first-party providers including major exchanges and ma
2931
description="Real-time, high-fidelity market data for smart contracts."
3032
features={[
3133
{ icon: <ClockIcon />, text: "400ms update frequency" },
32-
{ icon: <BarChartIcon />, text: "High-frequency data" },
34+
{ icon: <BarChartIcon />, text: "Pull and Push updates" },
3335
{ icon: <MultiChainIcon />, text: "Multi-chain support" }
3436
]}
3537
ctaText="Explore Price Feeds"
@@ -40,6 +42,7 @@ Data is sourced from 120+ first-party providers including major exchanges and ma
4042

4143
<ProductCard
4244
badge="Benchmarks"
45+
badgeColor="bg-green-600"
4346
icon={<ClockIcon />}
4447
title="Historical Data"
4548
description="Access to historical price data for settlement and backtesting."
@@ -55,6 +58,16 @@ Data is sourced from 120+ first-party providers including major exchanges and ma
5558

5659
## Quick Start
5760

58-
Follow the [Getting Started](price-feeds/getting-started.mdx) guide to integrate Pyth Price Feeds into your application.
59-
60-
For contract addresses and deployment details, see [Contract Addresses](./price-feeds/contract-addresses).
61+
<Cards>
62+
<Card icon={<ListIcon />} title="Price Feed IDs" href="./price-feeds" />
63+
<Card
64+
icon={<LightningIcon />}
65+
title="Contract Addresses"
66+
href="./contract-addresses"
67+
/>
68+
<Card
69+
icon={<BarChartIcon />}
70+
title="Sponsored Feeds(Push Updates)"
71+
href="./sponsored-feeds"
72+
/>
73+
</Cards>

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ Install the Pyth TON SDK and other necessary dependencies using npm:
1414
@ton/core @ton/ton @ton/crypto ```
1515
</Tabs.Tab>
1616
<Tabs.Tab>
17-
```sh copy
18-
yarn add @pythnetwork/pyth-ton-js @pythnetwork/hermes-client
19-
@ton/core @ton/ton @ton/crypto
20-
```
17+
```sh copy yarn add @pythnetwork/pyth-ton-js @pythnetwork/hermes-client
18+
@ton/core @ton/ton @ton/crypto ```
2119
</Tabs.Tab>
2220
</Tabs>
2321

pages/price-feeds/index.mdx

Lines changed: 18 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,29 @@ import {
1414

1515
# Price Feeds
1616

17-
Pyth Price Feeds provides real-time financial market data to smart contract applications on 100+ blockchains. Data is sourced from 120+ first-party providers including major exchanges and market makers.
17+
Pyth Price Feeds deliver real-time financial market data sources from 120+ first-party providers. These providers include leading exchanges, banks, trading firms, and market makers.
18+
Additionally, Pyth Price data can be verified on 100+ blockchains.
1819

1920
## Product Options
2021

2122
Pyth offers two main versions of price feeds, each optimized for different use cases:
2223

24+
<br />
2325
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-2 gap-8 mb-12">
2426
<ProductCard
2527
badge="Pro"
2628
badgeColor="bg-blue-600"
2729
icon={<LightningIcon />}
2830
title="Pyth Pro"
29-
description={<>Next-generation price feeds with ultra-low latency, equities and more. <br /><strong>Previously known as Lazer.</strong></>}
31+
description={<>Subscription-based price data for institutions and advanced use cases. <br /><strong>Previously known as Lazer.</strong></>}
3032
features={[
3133
{ icon: <LightningIcon />, text: "Ultra-low latency" },
32-
{ icon: <BarChartIcon />, text: "Equities & Indexes" },
33-
{ icon: <MultiChainIcon />, text: "100+ blockchains" },
34-
{ icon: <ShieldIcon />, text: "Real-time" }
34+
{ icon: <BarChartIcon />, text: "Crypto, Equities & Indexes" },
35+
{ icon: <MultiChainIcon />, text: "Customizable channels and latency" },
36+
{ icon: <ShieldIcon />, text: "Dedicated support" }
3537
]}
3638
quickActions={[
37-
{ icon: <ListIcon />, title: "Available Feeds", href: "./price-feeds/pro/price-feed-ids" },
39+
{ icon: <ListIcon />, title: "Available Price Feeds", href: "./price-feeds/pro/price-feed-ids" },
3840
{ icon: <KeyIcon />, title: "Get the access token", href: "https://tally.so/r/nP2lG5" },
3941
{ icon: <MoneyWavyIcon />, title: "Pricing", href: "./price-feeds/pro/pricing" },
4042
]}
@@ -49,28 +51,28 @@ Pyth offers two main versions of price feeds, each optimized for different use c
4951
badgeColor="bg-green-600"
5052
icon={<BarChartIcon />}
5153
title="Pyth Core"
52-
description="The original Pyth price feeds - stable, secure, and decentralized price data for broad DeFi applications."
54+
description="The original Pyth oracle: decentralized price feeds for DeFi and TradFi builders."
5355
features={[
5456
{ icon: <ClockIcon />, text: "400ms update frequency" },
55-
{ icon: <BarChartIcon />, text: "2000+ price feeds" },
5657
{ icon: <MultiChainIcon />, text: "100+ blockchains" },
58+
{ icon: <ShieldIcon />, text: "Supports Pull and Push updates" },
5759
{ icon: <ShieldIcon />, text: "Decentralized & secure" },
5860
]}
5961
quickActions={[
6062
{
6163
icon: <ListIcon />,
62-
title: "Available Feeds",
64+
title: "Available Price Feeds",
6365
href: "./price-feeds/core/price-feeds",
6466
},
6567
{
66-
icon: <PlayIcon />,
67-
title: "Quick Start",
68-
href: "./price-feeds/core/getting-started",
68+
icon: <CodeIcon />,
69+
title: "Contract Addresses",
70+
href: "./price-feeds/core/contract-addresses",
6971
},
7072
{
71-
icon: <CodeIcon />,
72-
title: "Integration Guide",
73-
href: "./price-feeds/core/getting-started",
73+
icon: <MoneyWavyIcon />,
74+
title: "Current Fees",
75+
href: "./price-feeds/core/current-fees",
7476
},
7577
]}
7678
ctaText="Explore Core Documentation"
@@ -79,24 +81,6 @@ Pyth offers two main versions of price feeds, each optimized for different use c
7981

8082
</div>
8183

82-
## Key Differences
83-
84-
| | **Pro** | **Core** |
85-
| ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
86-
| **Solution Type** | **Permissioned** service focused on **ultra-low-latency** price and market data for highly latency-sensitive users. | Stable, secure, and decentralized price data source for a broad spectrum of DeFi or TradFi applications. |
87-
| **Frequency** | **1ms** (**real-time**), 50ms, and 200ms channels, **customizable** frequencies, and throttling support to address different needs. | 400ms on Pythnet appchain with support for risk mitigation via Benchmarks and confidence intervals. |
88-
| **Data Types** | Aggregate price, bid/ask price, and **customizable** market data (market depth and more). | Aggregate price and confidence intervals. |
89-
| **Fees** | On-chain fee per signed cross-chain price update. | On-chain fee per signed cross-chain price update. |
90-
| **Update Costs** | **100-byte proofs** and simple signature verification. | >1,000-byte proofs and complex signature verification. |
91-
| **Integration Process** | **Specialized** and **permissioned** solution for protocols prioritizing performance over some elements of decentralization. | Open and permissionless integration for any Web3 or Web2 protocol. |
92-
93-
## Quick Start
94-
95-
Get started with Pyth Price Feeds by choosing your version:
96-
97-
- **[Pyth Pro Getting Started](./pro/getting-started)** - For next-generation applications with enhanced features
98-
- **[Pyth Core Getting Started](./core/getting-started)** - For stable, production-ready applications
99-
10084
## Additional Resources
10185

10286
<div className="grid grid-cols-1 md:grid-cols-3 gap-6 mt-8">
@@ -121,7 +105,7 @@ Get started with Pyth Price Feeds by choosing your version:
121105
href="./price-feeds/core/api-reference"
122106
className="text-lightLinks dark:text-darkLinks hover:text-blue-800 dark:hover:text-blue-300 font-medium"
123107
>
124-
Core API
108+
Core APIs
125109
</a>
126110
<span className="mx-2 text-gray-400">|</span>
127111
<a

pages/price-feeds/pro/getting-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pnpm install
3636
This will install `@pythnetwork/pyth-lazer-sdk`, which will be used to subscribe to Pyth Pro prices.
3737

3838
<Callout type="info">
39-
**Pyth Pro was previously known as Pyth Lazer**. The SDK remains the same.
39+
**Pyth Pro was previously known as Pyth Lazer**. The SDK remains the same.
4040
</Callout>
4141

4242
### Configure Your Access Token

pages/price-feeds/pro/index.mdx

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,31 @@
11
import { Callout } from "nextra/components";
2-
import { Cards, Card } from 'nextra/components';
3-
import { KeyIcon, LightningIcon, BarChartIcon } from "../../../components/icons/ProductIcons";
2+
import { Cards, Card } from "nextra/components";
3+
import {
4+
KeyIcon,
5+
LightningIcon,
6+
BarChartIcon,
7+
} from "../../../components/icons/ProductIcons";
48

59
# Pyth Pro
610

7-
<Callout type="info">
8-
Pyth Pro was previously known as Pyth Lazer.
9-
</Callout>
11+
<Callout type="info">Pyth Pro was previously known as Pyth Lazer.</Callout>
1012

11-
Pyth Pro is a low latency, highly customizable price service directly sourced from first-party providers.
12-
It offers a customizable set of price feeds, target chains (EVM or Solana) and channels (real time or fixed rate):
13+
Pyth Pro delivers customizable, enterprise-grade price data directly from first-party publishers.
14+
Subscribers can configure their price feeds, update schedules, and usage rights for display or redistribution.
15+
The service is delivered through standard APIs for seamless integration.
1316

1417
---
1518

16-
1719
<Cards>
18-
<Card icon={<KeyIcon />} title="Get your access token" href="./getting-started" />
19-
<Card icon={<LightningIcon />} title="Subscribe to prices" href="./subscribe-price-updates" />
20-
<Card icon={<BarChartIcon />} title="Pricing" href="./pricing" />
21-
</Cards>
20+
<Card
21+
icon={<KeyIcon />}
22+
title="Get your access token"
23+
href="./acquire-access-token"
24+
/>
25+
<Card
26+
icon={<LightningIcon />}
27+
title="Subscribe to prices"
28+
href="./subscribe-price-updates"
29+
/>
30+
<Card icon={<BarChartIcon />} title="Pricing" href="./pricing" />
31+
</Cards>

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { Callout, Tabs, Steps } from "nextra/components";
55
This guide is intended to serve users who wants to consume prices from the Pyth Pro on **Solana and Fogo**.
66

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

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Callout, Steps } from "nextra/components";
22

33
# How to Subscribe to Prices from Pyth Pro
44

5-
This guide explains how to subscribe to prices from Pyth Pro.
5+
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.
77
**The return data also includes price updates that can be verified on the target chain.**
88

0 commit comments

Comments
 (0)