Skip to content

About

Solana Pyth API

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Solana Pyth API

Demo GitHub API Key X

Solana Pyth API: Demo and reference implementation for Vybe’s Oracle (Pyth) endpoints — list price feeds, fetch live prices, OHLC candles, historical price series, and product metadata.

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


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

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages