Kit
Docs kit
Every component a docs page can use.
This page is the site's own sample of every component a docs page can use. Pages in content/docs/ use them without importing anything. The calls in the code blocks show the components, not the API: the API pages hold the real calls.
Code
A fenced block gets a language label and a copy control. A leading $ on shell lines is dropped from what is copied.
$ npm install
$ npm run buildimport { FEES } from '@/lib/facts'
const takerFee = (notional: number) => (notional * FEES.takerBps) / 10_000The same call, each way
<Ways> holds one <Way label="…"> per way the product offers. The reader's choice is remembered across pages.
const fill = await client.example({ market: 'SOL-PERP' })$ strobe example --market SOL-PERPGET /v1/example?market=SOL-PERPSteps
Open the invite link
The code is stored in the browser and bound to the wallet you connect.
Enable trading
The wallet signs one message for a session key that lasts 7 days.
Claim test USDC
Season Zero credits 10,000 test USDC once per wallet per day.
Fields
| Field | Type | Description |
|---|---|---|
makerBps | number | Maker fee in basis points: 0. |
takerBps | number | Taker fee in basis points: 2.5. |
maxLeverage | number | Highest leverage an order can use: 20x. |
escapeSlotsoptional | u64 | Slots without a batch before escape_withdraw opens. Default 1500. |
Plain Markdown tables work too:
| Market | Quote |
|---|---|
| SOL-PERP | USDC |
| BTC-PERP | USDC |
| ETH-PERP | USDC |
Callouts
Cards
Diagram
<Diagram> draws a path of parts with what passes between them. It turns into a column on narrow screens.
Data modules
A page can import from content/docs/_data/ and from @/lib/facts, so a figure is written once and every page that shows it agrees.