Quoting API
Post and refresh a multi-level ladder with one atomic bulk call, and pull it
with cancel-all.
Fill stream
React to executions and position changes in real time over SSE instead of
polling.
Best practices
Inventory skew, dead-man switch, reconnect and heartbeat handling.
Fee tiers
Volume-based maker/taker fees. Query the live schedule from the API.
The market-making loop
Authenticate and provision a key
Sign in once with SIWE, then mint a scoped API key for your bot. Send the key
on every automated request.
Discover markets and reference data
Pull the market catalog, order book, stats, and your fee tier. Compute a fair
value from your own reference price feed.
Post a two-sided ladder
Build a symmetric set of bid/ask levels around fair value and submit them in
one atomic bulk call that replaces your prior quotes.
React to fills
Consume the real-time stream. Each fill arrives as a trade plus a position
change — feed that back into your next quoting cycle (skew or shrink as
inventory builds).
Requirements
A funded perps account
A funded perps account
Quotes are subject to portfolio margin server-side. Fund the
perps bucket
(transfer wallet → perps) so your resting quotes and any resulting
positions have collateral. Orders that fail the margin check are rejected —
see Best practices.SIWE sign-in, then an API key
SIWE sign-in, then an API key
Human owner signs in once with Sign-In With Ethereum, then provisions an API
key with the
trade scope for the bot. See
Authentication.A reference price feed
A reference price feed
You supply your own fair value. OCX publishes marks, funding, and a full
options board for reference, but your quoting decisions and pricing are
yours.
A resilient client
A resilient client
SSE streams are long-lived and diff server-side. A well-behaved client
applies the initial snapshot, folds in deltas, reconnects on drop, and wires
a cancel-all kill-switch. See Best practices.
Where market makers quote
Perpetuals, dated futures, options, and spot all support two-sided quoting. This section documents the perpetuals/futures quoting path in detail (the highest-throughput programmatic surface). The options CLOB exposes an equivalent bulk-quote path — see the API reference for the/options/quotes/bulk alias.
Fees follow a standard maker–taker model with volume-based tiers — higher rolling
volume earns better rates, and the top tiers can make the maker side a rebate.
Query the live schedule from the API rather than hardcoding it; your personal
tier is reflected in every order preview.