Skip to content

About

Solana Pyth API

Topics

Resources

Stars

215 stars

Watchers

95 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

Solana Pyth API

Demo GitHub API Key X

Explore Solana Pyth API price feeds with the Vybe Solana API: live USD prices, OHLC candles, historical price series, product metadata and oracle tools.

Try the live demo: https://solana-pyth-api.vybenetwork.com

Solana Pyth API app


Endpoints used

Vybe API Local proxy
GET /v4/oracle/pyth/pricefeeds GET /api/pyth/pricefeeds
GET /v4/oracle/pyth/pricefeeds/{priceFeedAddress}/price GET /api/pyth/pricefeeds/:feed/price
GET /v4/oracle/pyth/pricefeeds/{priceFeedAddress}/candles GET /api/pyth/pricefeeds/:feed/candles
GET /v4/oracle/pyth/pricefeeds/{priceFeedAddress}/price-ts GET /api/pyth/pricefeeds/:feed/price-ts
GET /v4/oracle/pyth/products/{productAddress} GET /api/pyth/products/:product

Prerequisites

Quick start

cp .env.example .env
# set VYBE_DATA_API_KEY in .env

npm install
npm run dev

Open http://localhost:3009

Scripts

Script Purpose
npm run dev / npm start Run the API + demo UI
npm run build Compile TypeScript to dist/
npm run typecheck Typecheck only

Related demos

This repo focuses on Pyth oracle data only (not DEX OHLC/trades).

About

Solana Pyth API

Topics

Resources

Stars

215 stars

Watchers

95 watching

Forks

Releases

Packages

Contributors

Languages