Developers
API reference
Public JSON endpoints that power the INVARA app.
Endpoints#
| Endpoint | Returns |
|---|---|
GET /api/market | Tracked assets: price, borrow fee, volume, gap, Pyth status; chain telemetry; vault totals |
GET /api/screener | Borrow screener rows and totals. Query: q, min, pyth=1, sort=fee|avail |
GET /api/oracle | Pyth contract info and per-feed status on Robinhood Chain |
GET /api/liquidations | All vault positions with ratio, liquidation price and status |
GET /api/logo/:symbol | Company logo PNG (transparent), 404 if none |
GET /api/pyth-update?id= | Signed Pyth update data (requires server PYTH_API_KEY) |
Examples#
bash
curl "https://<your-host>/api/screener?min=50&pyth=1"typescript
const res = await fetch('/api/market');
const { assets, chain } = await res.json();
console.log(chain.blockNumber, assets.map((a) => [a.symbol, a.borrowFee]));