paradigm-api
Paradigm's DRFQv2 RFQ API: recent block trades on the public block tape (`paradigm__paradigm_drfqv2_trades` with `mode: "tape"`), verifying the credentials, instruments, counterparties, listing and creating RFQs, quotes and crosses, cancels, your trades, leg pricing and the maker circuit-breaker. The tools are `paradigm__*` MCP tools, called by exact name, and need the user's Paradigm credentials enrolled. Use for ANY request to Paradigm's REST API, including "recent block trades", "is my Paradigm key working", "list my Paradigm RFQs" or "cancel rfq_...". The tape here is the latest prints only: volumes over time, comparisons across days and whether a structure traded before are paradigm-data-discovery's, and so is the block tape without credentials. The RFQ workflow and its confirmation gate are paradigm-rfq-trader.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- paradigm-api
- metadata
- { "author": "tradeparadigm" }
- description
- Paradigm's DRFQv2 RFQ API: recent block trades on the public block tape (`paradigm__paradigm_drfqv2_trades` with `mode: "tape"`), verifying the credentials, instruments, counterparties, listing and creating RFQs, quotes and crosses, cancels, your trades, leg pricing and the maker circuit-breaker. The tools are `paradigm__*` MCP tools, called by exact name, and need the user's Paradigm credentials enrolled. Use for ANY request to Paradigm's REST API, including "recent block trades", "is my Paradigm key working", "list my Paradigm RFQs" or "cancel rfq_...". The tape here is the latest prints only: volumes over time, comparisons across days and whether a structure traded before are paradigm-data-discovery's, and so is the block tape without credentials. The RFQ workflow and its confirmation gate are paradigm-rfq-trader.
03 SKILL.md 正文
Paradigm
Every Paradigm REST call goes through the paradigm MCP server. The server
signs for you. Do not look for credentials, build headers or write a script.
Call a tool with tool_call, passing its exact name below as id and its
arguments as args. You do not need tool_search or tool_describe.
Which environment
The server runs against one environment: mainnet when both
CRED_PARADIGM_MAINNET_ACCESS and CRED_PARADIGM_MAINNET_SIGNING are in your
environment, otherwise testnet. Check those two names before a state-changing
call and say which environment it is. The machine's hostname says nothing
about it: a box named testnet can hold a mainnet key.
Tools
? marks an optional argument. Every tool calls a path under /v2/drfq/,
shown after the arrow.
Credentials
paradigm__paradigm_echo(payload?)→GETorPOST /echo/: a 200 means both credentials and the signature are right. It changes nothing. Pass a JSON object aspayloadto test a signed body.
Reference data
paradigm__paradigm_drfqv2_instruments(instrument_id?, venue?, base_currency?, kind?, margin_kind?, state?, venue_instrument_name?, include_greeks?, cursor?, page_size?)→/instruments/: list, or one instrument by idparadigm__paradigm_drfqv2_counterparties(venue?, cursor?, page_size?)→/counterparties/: maker desks with theirgroupsandvenues. Withvenuethe tool reads every page itself and returns{results, count, venue, scanned, truncated}
RFQs
paradigm__paradigm_drfqv2_rfqs(state?, role?, venue?, strategies?, product_codes?, cursor?, page_size?)→/rfqs/: listparadigm__paradigm_drfqv2_rfq_snapshot(rfq_id)→/rfqs/{id}/,/bbo/,/orders/: one RFQ, its BBO and its book in one callparadigm__paradigm_drfqv2_create_rfq(venue, legs, quantity, counterparties?, is_taker_anonymous?, account_name?, label?, state?)→POST /rfqs/: create an RFQ
Orders
paradigm__paradigm_drfqv2_orders(order_id?, rfq_id?, state?, venue?, currency?, base_currency?, cursor?, page_size?)→/orders/: list, or one order by idparadigm__paradigm_drfqv2_post_order(rfq_id, side, quantity, type?, time_in_force?, price?, legs?, account_name?, label?, order_id?)→POST /orders/, orPUT /orders/{id}/whenorder_idis set: quote, cross or amendparadigm__paradigm_drfqv2_cancel(target, rfq_id?, order_id?, state?, venue?, currency?, base_currency?)→DELETE:targetrfqcancelsrfq_id,ordercancelsorder_id,orderscancels every order matching the filters
Trades and pricing
paradigm__paradigm_drfqv2_trades(trade_id?, mode?, state?, venue?, strategies?, product_codes?, cursor?, page_size?)→/trades/, or/trade_tape/withmode: "tape": your trades, one trade, or the public tape.statefilters your trades only andstrategiesfilters the tape only. The tool drops the other one without an errorparadigm__paradigm_drfqv2_price_legs(legs, bid_price?, ask_price?, accept_estimated_prices?, algorithm_version?)→POST /pricing/: split a structure price across its legsparadigm__paradigm_drfqv2_mmp(action?)→/mmp/status/:actionstatus(the default) reads the circuit-breaker,resetre-arms it
Shapes
- A leg on
create_rfqis{instrument_id, ratio, side, price?}. - A leg on
post_orderis{instrument_id, price}. - A leg on
price_legsis{instrument_id, ratio, side}. instrument_idis an integer in a leg and a string inparadigm_drfqv2_instruments(instrument_id).ratio,priceandquantityare decimal strings.sideisBUYorSELL.typeisLIMIT(the default) orHIDDEN.time_in_forceisGOOD_TILL_CANCELED(the default, a maker quote) orFILL_OR_KILL(a taker cross).venueisPRDX,DBT,BYBorBITon most tools.create_rfqandrfqsaccept a longer list.- RFQ
stateisOPEN,CLOSEDorDRAFT, andcreate_rfqtakesOPEN(the default) orDRAFT. OrderstateisOPEN,CLOSEDorPENDING. TradestateisCOMPLETED,PENDINGorREJECTED. roleisMAKERorTAKER. InstrumentkindisFUTUREorOPTION,margin_kindisINVERSEorLINEAR, instrumentstateisACTIVEorEXPIRED.page_sizeis 1 to 1000. A list answers{count, next, results}. Passnextback ascursorwith the same filters.
Venue facts
- Pass
counterpartieson everycreate_rfq. The tool defaults it to an empty list, and Paradigm answersAt least one counterparty must be specified. - Pass
account_nameoncreate_rfqand on a maker quote. The tool marks it optional, and Paradigm answersThis field is requiredwithout it. A taker cross may leave it out. is_taker_anonymousdefaults totrue, which needs at least three LP counterparties.cancelwithtarget: "orders"and no filter cancels every DRFQ order on the desk. Fill in every filter you mean, and confirm with the user when you cannot.- An order comes back
PENDING. Read its final state withparadigm_drfqv2_orders(order_id=...). - These tools cannot pick a desk on a multi-desk key. Paradigm uses the key's default desk, so say which desk that is before a state-changing call when the user has more than one.
- There is no live stream here. Poll
paradigm_drfqv2_rfq_snapshotevery 1 to 3 seconds for quotes.
When there are no paradigm__ tools
The server did not start for this account. Tell the user which of these applies, cheapest to check first:
- The change has not reached the agent yet. Ask the user to reload, or retry shortly.
- One of the two credentials is not enrolled. The server needs the access key and the signing key in the same environment.
- A credential was enrolled with a custom host or a custom label. Only a
credential named
paradigm-mainnet-access,paradigm-testnet-signingand so on, for one of the app's environments, starts the server. - Another MCP server is already named
paradigm.
When a call fails
A failed call returns the status, the path, Paradigm's request id when
Paradigm answered, and a hint. Quote the request id when you report a
failure. The hint names server settings you cannot change, so read the table
below. paradigm_drfqv2_rfq_snapshot returns a failed part as an error
object in its place, and the other parts still come back.
| Symptom | Causes, cheapest first |
|---|---|
paradigm_echo fails with 401 |
The access key and the signing key come from different Paradigm keys. A clock more than 30 seconds off Paradigm's. |
403 naming a placeholder or an X-Dime-Sign- header |
The proxy refused the request. Ask the user to reload, and to enrol the credential again if it repeats. |
403 Invalid API Access Key |
The access key reached Paradigm unsubstituted. The access key was revoked, or it is for the other environment. |
| 400 | The signature was accepted. Paradigm is objecting to the arguments, and the body says which. |
| 404 | An id that does not exist in this environment. |
04 同仓库更多 Skills
example-api
A skill body that exists so the fixture is a complete app. It teaches nothing and is never published.
telegram-bot
Send messages, photos and files to Telegram through the user's own bot, using a bot token held by the DIME credential proxy. Covers finding the chats the bot can reach, posting to a private chat, group or channel, editing and deleting what it sent, and sending from a data feed. Use for ANY request to message, notify or alert the user on Telegram, "send this to my Telegram", "post alerts to my channel", or a 403 from the credential proxy on api.telegram.org.
paradigm-rfq-trader
Trigger institutional block trades via Paradigm's DRFQv2 flow. The workflow is venue-agnostic — resolve instruments, build the RFQ / order payload, benchmark, run a confirmation gate, submit, verify settlement. Per-venue specifics (fair-value sources, naming conventions, edge syntax, settlement checks) live in references/venues.md. In scope today: PRDX (Paradex, primary focus) and DBT (Deribit). Adding more DRFQv2 venues is a references/venues.md edit, not a skill-body change. Covers takers (build, benchmark, cross) and makers (poll, price, manage). Every state-changing action goes through an explicit confirmation gate. Needs both Paradigm credentials enrolled. Use when the user asks to "send a Paradigm block RFQ", "block-trade X BTC", "send a BTC straddle on Paradex / Deribit", "quote rfq_X", "hit the best bid", "cancel rfq_X". Does NOT cover pricing a structure without trading (its legs' current marks are paradigm-data-discovery's), small central-order-book trades, post-trade analysis (paradigm-block-analyst), historical tape (paradigm-data-discovery).
paradigm-options-recap
Options market recap for a requested or default window, invoked via /recap. Parses "/recap [asset] [options] [window]" (e.g. "/recap btc options 8h") and builds the fixed four-section recap — Snapshot, Biggest Print, Block Flow, Vol Surface — from bounded raw exchange venue files and source tapes, never from Dime hot files, read with the pod's AWS access. Use when the user types /recap or asks for a market recap, an options flow summary, "what happened in BTC options" or "last Xh of flow". A single question is not a recap: the biggest print across venues is paradigm-data-discovery's (paradigm-api reads only Paradigm's own tape), and the vol surface, one IV or one venue's data is paradigm-data-discovery's, as are dataset inventory, schema and historical lookups. The output format is fixed — always the same four sections in the same order.
paradigm-data-discovery
Catalog and query launcher for raw market data available to Dime in s3://dt-exchange-venue-data, s3://dt-paradigm-data, and s3://dt-paradex-data, read with the pod's AWS access. Use for data inventory, coverage, schema and historical analysis, for current venue market data (marks, IV, greeks, OI, funding, spot) on Deribit, OKX, Bybit and Bullish, and for recent block trades when the user has no Paradigm credentials enrolled (with them, paradigm-api reads the live tape). Explains the per-venue raw files and lets the model choose the bounded reads needed for the question. Does not cover account state, positions, vaults, or order placement.
paradigm-block-analyst
Cross-venue analysis of Paradigm RFQ block trades using live market data from Deribit, OKX, and Bybit. Invoked as `/analyze <rfq_id> <rfq description>`: resolves the rfq_id by searching the Paradigm trade tape via the paradigm-data-discovery skill (the daily execution partitions, keyed by RFQ_ID) for the cleared-block record, then fetches live marks, IVs, and greeks per venue, computes net greeks for multi-leg structures, benchmarks the fill vs mark, reports how much of the structure traded over 24h / 7d / 30d and where else it printed, reads whether the flow moved the vol surface, and outputs a concise analysis. Use when the user runs `/analyze <rfq_id> ...`, pastes a Paradigm block trade JSON, or asks to analyze, benchmark, or get market color on a Paradigm RFQ execution. Covers outright calls/puts (CL/PL), strangles (SN), straddles (ST), butterflies (BF), condors (CO), calendars (CA), risk reversals (RR), covered calls, and custom multi-leg combos (CM). Also handles perp combos. Reads the Paradigm trade tape from S3 with the pod's AWS access.