Skip to content
parchmentdocs
Open app

API reference

Every route of the Parchment public API, version 0.3.0, generated from its OpenAPI document. The TypeScript SDK wraps most routes; the Public API guide covers access and limits.

Base URL

Production
https://api.parchment.trade

Conventions

The public HTTP API of Parchment, at https://api.parchment.trade. Every path is also served under /api/parchment (for example /api/parchment/markets), the form the TypeScript SDK uses.

JSON responses wrap their payload as { data }; errors are { error: { code, message } } with an HTTP status. Every integer is an n-suffixed decimal string ("5000000n"), USDC amounts are in base units (6 decimals) and *Wad values are scaled by 1e18. A price that has not been read stays price_unavailable, and referral bonuses stay estimates.

The live price, trade and order streams are Server-Sent Events (text/event-stream). Transaction routes return unsigned transaction bytes for the wallet to sign. Requests are rate limited per client IP; a 429 carries Retry-After.

Routes