SDK
One ES module, no install. Works in the browser and in Node 18 and up.
import { ordo } from 'https://ordo.money/sdk.js';
const o = ordo();
const stats = await o.stats();
const depth = await o.depth({ hours: 24 });
const preview = await o.preview({ low: 60, high: 75, amount: 10, asset: 'HYPE' });
// add liquidity from any app, with an ethers v6 signer on Elysium
await o.deposit({ ethers, signer, asset: 'HYPE', amount: '10', low: 60, high: 75 });
API
JSON over HTTPS, open to everyone. Values in USD, every address and tx with its explorer link.
GET /api/v1/statsTotal value, HyperCore depth, volume, fills, epochsGET /api/v1/vaultVault address, NAV, share price, reserveGET /api/v1/bookHYPE book with Ordo levels and trades markedGET /api/v1/depth?hours=24Ordo depth within 0.5%, 1% and 2% of the priceGET /api/v1/heatmap?hours=6Ordo orders around the price, minute by minuteGET /api/v1/preview?low=60&high=75&amount=10&asset=HYPEThe ladder a range would put on the bookGET /api/v1/lp?address=0x...Positions and history of one addressGET /api/v1/fillsOrdo fills on HyperCoreGET /api/v1/solversBonded solvers, scores and bondsGET /api/v1/epochsAttested epochsGET /api/v1/attestationsSigned NAV, handoffs and range checksGET /api/v1/feedEverything that happens, newest firstGET /api/v1/burnsToken burns and buybacksGET /api/v1/configChain, contracts and explorer links
Contracts
The vault ABI is at /api/abi. Prices are USD with 8 decimals. Call depositNative(low, high) with HYPE, or deposit(token, amount, low, high) with USDC after an approve.