Skip to content

vybenetwork/solana-pyth-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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


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

223 stars

Watchers

96 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors