Ivy desk Options RFQ API

Request a firm price for a crypto option (an RFQ), then accept or reject it. Every request is priced at once, with no one in the loop. Version v1.

Conventions: JSON bodies; times in ISO-8601 UTC (2026-12-04T08:00:00.000Z); amounts in USD; quantities in coins; vols as decimals (0.6159 = 61.6% a year).

Prices: off Derive's order book at the strike and expiry, on Derive's own underlying price. BTC and ETH are quoted at Derive's mid plus a markup; HYPE and SOL never above Derive's ask. Expiries Derive doesn't list are interpolated between the ones it does. Settlement: Deribit's index, averaged over the 3 hours before expiry.

POST /v1/auth/session → GET /v1/catalogue → POST /v1/rfq (200 quoted) → POST /v1/accept (before expires_at) → pay the premium on chain → GET /v1/trades/{id} → at expiry, the payout arrives on chain
Testnet only. Arbitrum Sepolia, settled in a test USDC token: no real money. The network, the token contract and the desk's wallet are in GET /v1/catalogue → settlement.payment.

Quickstart

From a key to a booked trade in five calls.

  1. Get a key (see Get access and test funds): a key id, the address of your API signing key, your wallet and your server IPs.
  2. Log in: POST /v1/auth/session with a signed challenge → a token valid 24 hours.
  3. See what you can trade: GET /v1/catalogue.
  4. Ask for a price: POST /v1/rfq → 200 with a quote, or 422 with the reason it was declined.
  5. Accept before the quote's expires_at: POST /v1/accept (token + per-request signature) → a trade id; then pay the premium in test USDC from your registered wallet.
# after the Setup helpers in the sample script
q = call("POST", "/v1/rfq", {"client_rfq_id": "your-id-001", "underlying": "ETH",
    "option_type": "call", "strike": 1800, "expiry": "2026-12-04T08:00:00Z",
    "quantity": 1, "side": "buy"}, token, key="your-id-001")
t = call("POST", "/v1/accept", {"quote_id": q["quote_id"], "client_order_id": "your-order-001",
    "quantity": q["quantity"], "premium_usd": q["premium_usd"]}, token, key="your-order-001", signed=True)
print(t["trade_id"])

Get access and test funds

1 · Register

Send your Ivy contact four things:

You get back a key id. It is the id you sign with (key_id in the login, X-Key-Id on signed calls). The key works for 180 days; GET /v1/keys/me shows its state.

2 · Get test funds

3 · Request, accept, pay

Follow the Quickstart. To pay the premium, send exactly premium_payment.pay_amount of the token from your registered wallet to premium_payment.pay_to, before premium_payment.due_by (5 minutes). It is an ordinary token transfer. The desk reads the chain and matches the transfer to your trade by wallet and amount, usually within a minute; you may also report the transaction hash with POST /v1/trades/{id}/payment to match it at once.

Sample script (Python)

One file: log in, send one RFQ, print the quote, and (if you set ACCEPT = True) book it. Download ivy_desk_rfq.py.

pip install requests eth-account
DESK_KEY_ID=... DESK_API_PRIVATE_KEY=0x... python ivy_desk_rfq.py

Authentication

Every call except /v1/health and the login carries a token. Accept, reject and key rotation also carry a signature on the request itself, so a stolen token alone cannot book a trade. Signatures are EIP-191 personal_sign with your API signing key. Clocks must be within 30 seconds of the desk's.

UseMessage you sign
Loginmonarq-session.{key_id}.{nonce}.{timestamp}
Signed call{timestamp}.{METHOD}.{path}.{sha256 hex of the exact body bytes}, sent as X-Key-Id, X-Timestamp, X-Signature

Idempotency: every POST except the login needs an Idempotency-Key header. The same key with the same body returns the first answer and does nothing twice; the same key with another body is refused (409 IDEMPOTENCY_CONFLICT).

GET/v1/health

No token. status, environment (test), accepting_rfqs, time.

POST/v1/auth/session

{"key_id": "...", "nonce": "random hex", "timestamp": "1764139200", "signature": "0x..."}

→ {"token": "mqs_...", "token_type": "Bearer", "valid_hours": 24, ...}. Send it as Authorization: Bearer mqs_....

GET/v1/keys/me · POST/v1/keys/rotate

keys/me: your key's wallet, IP allow-list and days left. keys/rotate (signed by the current key): replace the signing key; you generate the new one and the desk never sees its private key. The old key keeps working for 24 hours. The wallet never changes with a rotation: a new wallet means a new key id.

GET/v1/catalogue

What you can trade and how money moves: the underlyings with their tier and limits (strike range as a multiple of spot, tenor, notional and premium bounds), and settlement (the index, the TWAP rule, and payment: network, chain id, token contract, pay_to).

TierUnderlyingsStrikesPrice
1BTC, ETH0.5–2.0 × spotDerive mid + markup
2HYPE, SOL0.6–1.7 × spotnever above Derive's ask

Tenor: from 3 hours to 42 days, expiries at 08:00 UTC. On testnet the size limits are wide (up to $10M notional and $1M premium per trade); the catalogue states the current ones.

GET/v1/markets

For each underlying: whether it is quoting, the products, the spot price, and its limits (notional, premium, tenor, strike range).

POST/v1/rfq

Name the option by instrument (Deribit style, ETH-4DEC26-1800-C), or by underlying, option_type, strike and expiry. Give either quantity (coins) or max_premium_usd (the desk sizes the trade to fit the budget).

Field
client_rfq_idyour id; required, unique per key
sidebuy (you buy the option from the desk)
payoffvanilla (default)

→ 200 with status: "quoted": quote_id, instrument, quantity, price_per_unit_usd, premium_usd, iv, index_price, greeks, pricer_source (what the price came from) and expires_at (60 seconds). Or 422 with a decline code.

GET/v1/rfq/{id} · GET/v1/quotes/{id}

An RFQ or a quote as it stands now (quoted, expired, accepted, rejected). The desk always prices at once, so there is nothing to poll for; these are for looking back.

POST/v1/accept · POST/v1/reject

Signed. {"quote_id", "client_order_id", "quantity", "premium_usd"}: the quantity and premium must be the quote's. → the trade, with trade_id and premium_payment (pay_amount, pay_amount_units, pay_to, due_by, status: "awaiting_payment"). A quote past expires_at is refused. reject takes {"quote_id"} or {"rfq_id"}, with an optional reason, and closes the quote.

GET/v1/trades/{id}

By trade_id or your client_order_id. status, premium_payment.status (awaiting_payment → pending_confirmation once reported → received; overdue is true once past due_by), settlement_status (open → settled, or on_hold), settlement and payouts.

POST/v1/trades/{id}/payment

{"tx_hash": "0x..."}: report the premium transfer so it is matched at once. Optional: the desk finds it on its own.

GET/v1/positions

Your open trades, each with what it would pay if it expired now (value_if_expired_now_usd).

Settlement

A trade settles at 08:02 UTC on its expiry day. The settlement price is the mean of 180 one-minute prints of Deribit's index in the 3 hours to 08:00 (btc_usd, eth_usd, hype_usdc, sol_usdc). At least 162 prints are needed; with fewer, the trade goes on_hold and settles on Deribit's delivery price after 2 hours.

The payout is max(settlement − strike, 0) × quantity for a call and max(strike − settlement, 0) × quantity for a put, rounded half-up to the cent once. It is sent automatically from the desk wallet to your registered wallet, within 4 hours of settlement.

GET/v1/payouts · GET/v1/payouts/{id}

Each payout with its status (to_be_sent → sending → paid), tx_hash, amount_usd and the full calculation: settlement price, TWAP window, prints used, payoff per coin.

GET/v1/transactions

Every money movement on your key, both ways: premiums in, payouts out, with transaction hashes.

Errors and decline codes

Errors are {"status": "error", "code", "message"}. A 422 is a decline: final, and it replays as such under the same Idempotency-Key. 5xx and 401 are safe to retry.

CodeMeaning
UNSUPPORTED_UNDERLYING, UNSUPPORTED_PRODUCTnot offered (only buying vanilla calls and puts)
EXPIRY_NOT_DERIBIT_TIMEexpiries are at 08:00 UTC
EXPIRY_TOO_SOON, EXPIRY_TOO_FARoutside 3 hours to 42 days
STRIKE_OUT_OF_RANGEoutside the tier's strike range
NOTIONAL_TOO_SMALL / _LARGE, PREMIUM_TOO_SMALL / _LARGEoutside the size limits
BUDGET_TOO_SMALL, PREMIUM_ABOVE_MAXwith max_premium_usd: the budget doesn't fit
EXPOSURE_LIMITthe desk's total open notional is full
UNPAID_PREMIUM_LIMITtoo many of your premiums are still unpaid
PRICE_UNAVAILABLEno safe price right now; guard says why: move (the index moved over 50 bp in a minute), basis (Derive and Deribit disagree), spread (Derive's market at that strike is too wide), no_ask. Retry shortly.
AUTH_FAILED, IDEMPOTENCY_KEY_REQUIRED, IDEMPOTENCY_CONFLICT, BAD_REQUESTfix the request

Compatibility with Monarq

Same /v1 paths, fields, login message, signatures and idempotency rules as Monarq's Options RFQ API: a client written for Monarq works here by changing the base URL and the key. Differences: every RFQ is priced at once (no 202 review), there is no WebSocket and no buyback.