Documentation
Markout Labs Oracle
Signed prices from independent nodes, checked by quorum.
Get started
What you get, and a working program in ten lines.
- IntroductionMarkout Labs Oracle publishes signed crypto prices from independent nodes. Read them with the JavaScript SDK or the Rust SDK.
- Quick startRead a live BTC price in ten lines of JavaScript, or in a small Rust program.
- ArchitectureHow a price moves from the venues through a node to the SDK or the web proxy, what each part does, and why the nodes do not talk to each other.
Integrate
The JavaScript SDK, the Rust SDK, the web proxy API and on-chain prices.
- JavaScript SDKRead prices, venue reports, books, funding and node reports from the web proxy, in a browser or in Node.js.
- Rust SDKRead prices in a Rust service that verifies every node itself and takes the median.
- Web proxy APIThe JSON WebSocket and the GET routes that oracle-proxy serves to browsers.
- On-chain pricesRead the oracle's median price on the Internet Computer (ICP), from the registry canister or as a certified document over HTTPS.
Reference
Feeds, aggregation, the trust model, the registry and the protocol, in depth.
- Feeds and symbolsHow the oracle names a feed, how a feed ID derives from its symbol, how numbers are encoded, and which feeds and venues exist today.
- AggregationHow a node turns the quotes of several venues into one price, one confidence interval and status flags, and when it publishes them.
- Trust modelWhat a node signature proves, what the quorum protects against, and the failures that the median across nodes cannot catch.
- RegistryThe registry canister on the Internet Computer lists the nodes and the clients, and a consumer verifies what it publishes.
- Signing and the price payloadThe signature scheme, the domain digest, the 96-byte PriceUpdate layout, the price frame, and the steps that verify one update.
- Venue reports, books and fundingThe signed VenueReport, BookUpdate and FundingUpdate payloads, and how books travel as snapshots and deltas.
- Node WebSocket protocolThe signed handshake, the sealed control channel, subscriptions, data frames, REST routes and fanout of /v2/ws.