mcp-paradigm

v0.1.4
mcp-paradigm Checked 3 days ago Published 1 month ago

MCP server for the Paradigm trading platform (DRFQv2 + FSPD)

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

paradigm_drfqv2_mmp DRFQv2 MMP

DRFQv2 Market Maker Protection — read status or reset the flag. ``reset`` is destructive (re-arms the desk). Only call after the trigger has been investigated.

ParameterTypeDescription
actionstring'status' to read current state; 'reset' to re-arm the desk.

paradigm_drfqv2_orders DRFQv2 Orders

List the desk's DRFQv2 orders, or fetch one by id.

ParameterTypeDescription
base_currencyBase currency filter.
currencyQuote currency filter.
cursorPagination cursor.
order_idIf set, fetches the single order; otherwise list with filters.
page_sizePage size.
rfq_idFilter by RFQ id.
stateFilter by state.
venueFilter by venue.

paradigm_drfqv2_post_order DRFQv2 Post / Update Order

Post a new order, or amend an existing one if ``order_id`` is set. Async-first: the response state is always ``PENDING`` with zeroed fill quantities. Poll via ``paradigm_drfqv2_orders(order_id=...)`` or subscribe to the ``order`` channel for terminal state. Destructive — puts money on the wire.

ParameterTypeDescription
quantity *stringOrder quantity (decimal string).
rfq_id *stringThe RFQ to quote/cross.
side *stringBUY or SELL.
account_nameAccount name (omit for desk default).
labelCaller idempotency label.
legsPer-leg prices for multi-leg structures.
order_idIf set, amends an existing order (PUT) instead of posting new (POST).
priceOrder price (decimal). Required for LIMIT.
time_in_forcestringMaker quoting = GOOD_TILL_CANCELED; taker crossing = FILL_OR_KILL.
typestringLIMIT or HIDDEN.

paradigm_drfqv2_cancel DRFQv2 Cancel

Cancel a DRFQv2 RFQ, a single order, or a batch by filter. For a global kill switch across all products, use ``paradigm_kill_switch`` instead.

ParameterTypeDescription
target *string'rfq' cancels an RFQ; 'order' cancels by order_id; 'orders' batch-cancels by filter.
base_currencyBatch filter: base currency.
currencyBatch filter: currency.
order_idOrder id (for 'order').
rfq_idRFQ id (for 'rfq' / 'orders').
stateBatch filter: state.
venueBatch filter: venue.

paradigm_drfqv2_price_legs DRFQv2 Price Legs

Given strategy bid/ask, return per-leg prices.

ParameterTypeDescription
legs *arrayStrategy legs.
accept_estimated_pricesAccept estimated prices.
algorithm_versionAlgorithm version.
ask_priceStrategy-level ask.
bid_priceStrategy-level bid.

paradigm_drfqv2_instruments DRFQv2 Instruments

List or fetch a single DRFQv2 instrument (including expired).

ParameterTypeDescription
base_currencyFilter by base currency.
cursorPagination cursor.
include_greeksInclude greeks payload.
instrument_idIf set, fetches a single instrument by id.
kindFUTURE or OPTION.
margin_kindINVERSE or LINEAR.
page_sizePage size.
stateACTIVE or EXPIRED.
venueFilter by venue.
venue_instrument_nameVenue-native instrument name(s).

paradigm_drfqv2_counterparties DRFQv2 Counterparties

List counterparty desks the firm can RFQ. Each desk exposes ``desk_name``, ``firm_name``, ``groups``, and ``venues`` — the settlement venues that desk can trade. Use the ``venues`` field (or the ``venue`` filter) to resolve which LPs can quote a given venue before calling ``paradigm_drfqv2_create_rfq``; a desk that doesn't list a venue can't be quoted there. Without ``venue`` this returns one page (honouring ``cursor`` / ``page_size``). With ``venue`` set it pages through every desk and returns the full filtered set as ``{"results": [...], "count": N, "venue": ..., "scanned": M}`` — so "…

ParameterTypeDescription
cursorPagination cursor.
page_sizePage size.
venueFilter to desks that support this settlement venue (e.g. 'PRDX', 'DBT'). When set, every page is scanned and only matching desks are returned, so the result is the complete set of LPs reachable for th…

paradigm_drfqv2_rfqs DRFQv2 RFQs

List DRFQv2 RFQs visible to the desk. For a single RFQ with its BBO and order book, use ``paradigm_drfqv2_rfq_snapshot`` instead.

ParameterTypeDescription
cursorPagination cursor.
page_sizePage size.
product_codesProduct code filter.
roleMAKER or TAKER perspective.
stateFilter by RFQ state.
strategiesStrategy code filter.
venueFilter by venue.

paradigm_drfqv2_create_rfq DRFQv2 Create RFQ

Create a new DRFQv2 RFQ. Broadcast semantics: when ``counterparties`` is empty (the default), the RFQ fans out to **all makers eligible for ``venue``** — this is the normal "ask the whole street" path. Pass an explicit list of desk names (from ``paradigm_drfqv2_counterparties``) only to target a subset; desks that don't support ``venue`` can't be quoted and are skipped by the platform. Places a request-for-quote on the wire — gate behind explicit user confirmation.

ParameterTypeDescription
legs *arrayStrategy legs.
quantity *stringRFQ quantity (decimal string).
venue *stringSettlement venue.
account_nameAccount to bill (omit for desk default).
counterpartiesarrayDesk names to RFQ (from paradigm_drfqv2_counterparties). Leave empty (the default) to broadcast to every maker eligible for the chosen venue — the platform fans the RFQ out to all venue-eligible cou…
is_taker_anonymousbooleanHide the taker desk name from counterparties.
labelCaller idempotency label, echoed in response.
statestringOPEN sends now; DRAFT stages without notifying counterparties.

paradigm_subscribe Subscribe (WebSocket)

Open a DRFQv2 WebSocket subscription and return its ``subscription_id``. The server holds one shared WebSocket connection and keeps the events buffered; pass the returned ``subscription_id`` to ``paradigm_poll`` to drain them and to ``paradigm_unsubscribe`` to close. Polling starts from the moment of subscription — events that arrived earlier are not replayed.

ParameterTypeDescription
channel *stringStream to open. One of: rfq, order, bbo, trade, trade_confirmation, mmp.
cancel_on_disconnectbooleanConnection-level Paradigm setting. If true, the platform cancels the desk's live orders when this socket drops. Only applies on the subscribe that first opens the connection; leave false for read-only…

paradigm_poll Poll Subscription (WebSocket)

Drain buffered events for a subscription. Returns ``{events, cursor, channel, connected}``. Each event carries a monotonic ``seq``, the ``channel``, ``received_at``, and the ``data`` payload. Pass the returned ``cursor`` back as ``since`` (or just call again — the cursor advances automatically) to get only new events. Events age out of the buffer after the configured TTL, so poll often enough to keep up.

ParameterTypeDescription
subscription_id *stringId returned by paradigm_subscribe.
limitMax events to return this poll.
sinceReturn only events with seq greater than this cursor. Omit to continue from the last poll's cursor.

paradigm_unsubscribe Unsubscribe (WebSocket)

Close a DRFQv2 WebSocket subscription. When the last subscription closes, the shared WebSocket connection is torn down.

ParameterTypeDescription
subscription_id *stringId returned by paradigm_subscribe.

paradigm_drfqv2_trades DRFQv2 Trades

List trades for the desk, fetch one, or read the public tape.

ParameterTypeDescription
cursorPagination cursor.
modestring'desk' = your trades; 'tape' = public anonymized tape.
page_sizePage size.
product_codesProduct code filter.
stateState filter.
strategiesStrategy code (tape mode).
trade_idIf set, fetches one trade.
venueVenue filter.

paradigm_echo Echo

Round-trip a payload through Paradigm's echo endpoint. The first call you should make after wiring up the server: a 200 response confirms your access key, signing key, and base URL are all correct. GET form has no body; POST echoes back the payload.

ParameterTypeDescription
payloadOptional JSON object to round-trip. None ⇒ GET /echo.

paradigm_identity_credentials Identity Credentials

Active venue API credentials registered for the trading desk.

ParameterTypeDescription
cursorPagination cursor.
page_sizePage size.
venueFilter by venue.

paradigm_positions Positions

Desk positions across venues. Returns the server-side cached snapshot. If you need fresh data, call ``paradigm_positions_refresh`` first and poll this tool — the refresh is async on the server side, so a single GET right after a refresh trigger may still return stale data.

ParameterTypeDescription
account_nameFilter by API account.
product_codeFilter by product code.
venueFilter by venue.

paradigm_positions_refresh Positions Refresh

Trigger an async refresh of the desk's positions cache. Fire-and-forget — the server processes the refresh in the background (HTTP 202) and you must poll ``paradigm_positions`` to read the updated snapshot.

paradigm_leaderboard Leaderboard

Cross-firm leaderboard for trade volume or liquidity quality.

ParameterTypeDescription
metric *stringtrade_volume | liquidity_fills | liquidity_responses.
currenciesComma-separated currencies.
endEnd time (unix ms).
instrument_kindsComma-separated instrument kinds.
protocolsComma-separated protocols (D1, OB, RFQ).
startStart time (unix ms).
strategiesComma-separated strategy codes.
venuesComma-separated venues.

paradigm_leaderboard_preferences Leaderboard Anonymity

Set the firm's leaderboard anonymity preference.

ParameterTypeDescription
disabled_leaderboard_anonymity *booleanTrue to show firm name on leaderboards; False for anonymous.

paradigm_fspd_mmp FSPD MMP

FSPD MMP status, or reset to re-arm the desk.

ParameterTypeDescription
actionstring'status' to read; 'reset' to re-arm the desk.

paradigm_fspd_orderbook FSPD Orderbook

Orderbook for an FSPD strategy — full asks/bids depth by default, BBO summary if ``summary=True``.

ParameterTypeDescription
strategy_id *stringFSPD strategy id.
summarybooleanTrue returns BBO summary only; false (default) returns full depth.

paradigm_fspd_orders FSPD Orders

List FSPD orders for the desk, or fetch one by id.

ParameterTypeDescription
from_order_idCursor.
kindANY or FUTURE.
order_idIf set, fetches a single order.
settlement_currencySettlement currency.
stateOrder state.
strategy_idFilter by strategy.
typeLIMIT or MARKET.
venueVenue filter.

paradigm_fspd_post_order FSPD Post / Replace Order

Post a new FSPD order, or replace one if ``order_id`` is set. Destructive — puts money on the wire.

ParameterTypeDescription
amount_decimal *stringOrder size (decimal) in clearing currency.
side *stringBUY or SELL.
strategy_id *stringFSPD strategy to trade.
account_nameVenue account name.
labelCaller label.
order_idIf set, replaces the existing order (POST /replace) instead of new.
post_onlyPost-only flag.
priceLimit price (decimal).
time_in_forcestringGTC or IOC.
typestringLIMIT or MARKET.

paradigm_fspd_cancel FSPD Cancel

Cancel a single FSPD order, or all orders for the desk (optionally by label).

ParameterTypeDescription
labelCancel only orders with this label.
order_idIf set, cancels a single order; otherwise cancels all (with optional label).

paradigm_fspd_instruments FSPD Instruments

List FSPD instruments tradable on the desk.

ParameterTypeDescription
clearing_currencyClearing currency.
kindANY, FUTURE, SPOT.
margin_typeINVERSE/LINEAR.
nameParadigm instrument name.
settlement_currencySettlement currency.
stateState filter.
venueClearing venue.
venue_instrument_nameVenue-native instrument name.

paradigm_fspd_strategies FSPD Strategies

List FSPD strategies, or fetch a single one with its legs.

ParameterTypeDescription
base_currencyBase currency.
clearing_currencyClearing currency.
idStrategy id filter (server-side).
kindANY/FUTURE/SPOT_FUTURE.
margin_typeINVERSE/LINEAR.
settlement_currencySettlement currency.
stateState filter.
strategy_idIf set, fetches a single strategy by id.
venueClearing venue.

paradigm_fspd_venues FSPD Venues

Status of all FSPD venues, or one venue if ``venue`` is set.

ParameterTypeDescription
venueIf set, fetches a single venue's status.

paradigm_fspd_system FSPD System Status

FSPD operational state + server time in one call.

paradigm_fspd_trades FSPD Trades

List FSPD trades for the desk, or fetch one by id.

ParameterTypeDescription
from_trade_idCursor.
inverse_marginedInverse-margined.
kindInstrument kind.
order_idOrder filter.
rolemaker or taker.
settlement_currencySettlement currency.
stateTrade state.
strategy_idStrategy filter.
trade_idIf set, fetches one trade.
venueVenue filter.

paradigm_obv1_obs OBv1 Order Book Markets

List active OBv1 markets. For a single OB with BBO + quotes book, use ``paradigm_obv1_market_snapshot``.

ParameterTypeDescription
cursorPagination cursor.
page_sizePage size.
product_codesProduct codes (comma).
rfq_idFilter by OB id.
strategiesStrategy codes (comma).

paradigm_obv1_create_ob OBv1 Create Market

Open a new OBv1 order book market for the strategy. Public, multi-counterparty.

ParameterTypeDescription
legs *arrayStrategy legs.
venue *stringSettlement venue.

paradigm_obv1_mmp OBv1 MMP

OBv1 MMP status, or reset to re-arm the desk.

ParameterTypeDescription
actionstring'status' to read; 'reset' to re-arm the desk.

paradigm_obv1_orders OBv1 Fill Orders

List OBv1 fill orders, or fetch one by id.

ParameterTypeDescription
cursorPagination cursor.
order_idIf set, fetches one order.
page_sizePage size.

paradigm_obv1_price_legs OBv1 Price Legs

Given strategy bid/ask, return per-leg prices.

ParameterTypeDescription
legs *arrayStrategy legs.
venue *stringPricing venue.
accept_estimated_pricesAllow estimated prices.
algorithm_versionPricing algorithm version.
ask_priceStrategy ask (decimal).
bid_priceStrategy bid (decimal).

paradigm_obv1_quotes OBv1 Quotes

List the desk's OBv1 quotes, or fetch one by id.

ParameterTypeDescription
currencyCurrency filter.
cursorPagination cursor.
page_sizePage size.
quote_idIf set, fetches a single quote.
rfq_idFilter by OB id.
sideBuy or Sell.
statusOPEN or CLOSED.

paradigm_obv1_post_quote OBv1 Post / Update Quote

Post a maker quote on an OBv1 market, or replace one if ``quote_id`` is set. Destructive — adds liquidity that may be hit immediately unless ``post_only`` is set.

ParameterTypeDescription
account *stringAccount name (required).
legs *arrayPer-leg prices.
ob_id *stringOB id to quote on.
quantity *stringQuote quantity.
side *stringBUY or SELL.
client_order_idCaller idempotency id.
iocIOC flag.
post_onlyPost-only flag.
quote_idIf set, replaces an existing quote (PUT) instead of posting new.

paradigm_obv1_cancel OBv1 Cancel Quotes

Cancel a single OBv1 quote, or batch by filter (returns action_id).

ParameterTypeDescription
currencyBatch: currency filter.
priceBatch: cancel near this price.
quote_idIf set, cancels a single quote; otherwise batch-cancels by filter.
rfq_idBatch: limit to one OB.
sideBatch: side filter.

paradigm_obv1_instruments OBv1 Instruments

List OBv1 instruments, or fetch one by ``(venue, instrument_name)``. Pass both ``venue`` and ``instrument_name`` to fetch a single instrument by venue-native name. Either one alone is fine as a list filter — ``venue`` filters by clearing venue, ``instrument_name`` is forwarded as the ``name`` filter on the list endpoint.

ParameterTypeDescription
assetBCH, BTC, or ETH.
cursorPagination cursor.
instrument_nameIf set with `venue`, fetches the single instrument by venue-native name.
kindFUTURE or OPTION.
nameVenue-native names filter.
page_sizePage size.
venueIf set with `instrument_name`, fetches one.

paradigm_obv1_trades OBv1 Trades

OBv1 trades — single, desk-only blotter, all visible, or public tape.

ParameterTypeDescription
cursorPagination cursor.
hide_publicHide non-participant.
modestring'trades' = all visible; 'blotter' = desk's trades; 'tape' = public anonymized.
page_sizePage size.
product_codesProduct code filter.
statusTrade status.
strategiesStrategy codes (comma).
trade_idIf set, fetches one trade.

paradigm_desk_overview Desk Overview

One-shot snapshot of desk health across all active Paradigm products. Combines: positions, identity credentials, MMP status (DRFQv2, OBv1, FSPD), and per-product platform / system state. Use this as the first call to answer "what state is my desk in?" before drilling into specific products.

paradigm_kill_switch Kill Switch (Cancel All)

Cancel everything live across the desk in a single call. DESTRUCTIVE. Use as a kill switch when something's gone wrong or end-of-day shutdown. By default cancels DRFQv2 orders, OBv1 quotes, and FSPD orders. Disable any product with ``<product>=False``. RFQs/OBs you created stay open — only your active orders and quotes are pulled.

ParameterTypeDescription
drfqv2booleanCancel all DRFQv2 orders.
fspdbooleanCancel all FSPD orders.
obv1booleanCancel all OBv1 quotes.

paradigm_drfqv2_rfq_snapshot DRFQv2 RFQ Snapshot

Full state of a DRFQv2 RFQ in one call: RFQ + BBO + order book.

ParameterTypeDescription
rfq_id *stringParadigm DRFQv2 RFQ id.

paradigm_obv1_market_snapshot OBv1 Market Snapshot

Full state of an OBv1 order book market: market + BBO + quotes book.

ParameterTypeDescription
ob_id *stringOBv1 market id.