Peg Docs

API

Public endpoints behind peg.cx.

The site reads everything from https://peg.cx/api. Read endpoints are public and return JSON.

EndpointReturns
GET /api/configNetwork, whether launches are open, SOL price
GET /api/pegsEvery peg with its asset, chain, price, source and whether it is live
GET /api/peg/<key or symbol>One peg and the coins launched on it
GET /api/launches?limit=60Newest coins with price and market cap
GET /api/coin/<mint>One coin and its latest trades
GET /api/candles?mint=<mint>&interval=300Price candles in peg units (60, 300, 900, 3600, 14400 or 86400 seconds)
GET /api/keeperEach peg's pool bin and its current target
curl https://peg.cx/api/pegs

Live updates

wss://peg.cx/ws pushes prices (changed peg prices), coin (a new launch) and trade (a trade on a Peg coin) as they happen.

Transactions

POST /api/tx/launch and POST /api/tx/swap return unsigned, simulated transactions for a wallet to sign. POST /api/upload stores a coin's image and metadata on IPFS (12 uploads an hour per visitor, 2 MB per image).