PyreFi
Documentation · v1.4.2

Build with PyreFi.

Every score, every signal, every headline — exposed as REST endpoints, WebSocket streams, and webhooks. Production-grade, multi-region, with first-class SDKs for the languages quant desks actually use.

All systems normalv1.4.284ms p5099.97% uptime · 30d
Five-minute quickstart

Your first request, three lines.

Get an API key from the dashboard, and you're querying live AI scores in a curl.

curl200 · 84ms
// Live AI scores + on-chain composite
curl https://api.pyrefi.com/v1/metrics/btc \
  -H "Authorization: Bearer pk_live_..."

{
  "symbol": "BTC",
  "price": 67842.18,
  "scores": {
    "risk":      28,
    "momentum":  74,
    "sentiment": 61,
    "tsmom":    0.68
  },
  "signals_24h":   3,
  "updated_at"    "2026-05-12T08:14:32Z"
}

Top endpoints

GET/v1/tokensv1
GET/v1/metrics/:symbolv1
GET/v1/onchain/:symbolv1.2
GET/v1/signals/livev1
GET/v1/news/feedv1
POST/v1/chatv1.4
POST/v1/webhooksv1
WS/v1/stream/pricesv1
Official SDKs

First-class libraries.

Typed, tested, and shipped on every release. Open-source on GitHub.

TypeScriptv1.4.2npm i @pyrefi/sdk
Pythonv1.4.2pip install pyrefi
Gov1.4.0go get pyrefi.com/sdk
Rustv1.3.4cargo add pyrefi
Rubyv0.9.2 · betagem install pyrefi
Guides

End-to-end recipes.

Copy, paste, deploy.

TUTORIAL12 min read

Stream prices into BigQuery with WebSocket

Subscribe to /v1/stream/prices, batch insert every 30 seconds, and partition by symbol for sub-100ms queries.

RECIPE7 min read

Build a sentiment dashboard in Next.js

Pull /v1/metrics/:symbol server-side, hydrate a chart with SWR, refresh on the 30-second tick.

RECIPE9 min read

Forward signals to your own Discord bot

Register a webhook, verify HMAC, re-broadcast to discord.com/api/webhooks/* with retry-on-fail.

RECIPE15 min read

Backtest a momentum strategy in Python

Pull 12 months of trend force scores, simulate a top-decile long portfolio, and chart drawdown against BTC.

GUIDE5 min read

Auto-trade on Binance via the Telegram bot

Link your Binance sub-account, set the position sizing rules, and let the bot fire orders in under 500ms.

GUIDE8 min read

Launch a token airdrop campaign

Configure tasks, set verification criteria, distribute to wallets, and track KOL attribution in real time.

Ready to build?

Get an API key and query live data in under 5 minutes.

Get API key →

Need help?

Can't find what you're looking for? Our team responds in under 4 hours.

Contact support