AGENT SKILL

paradex-trade-analyst

Analysis of a Paradex trade the user ALREADY MADE, against live Paradex market data. Invoked as `/paradex_trade_analyst <fill_id> <market side size price>`, which the trade history sends when a user asks to analyse a fill. Resolves the fill with the paradex-api skill's MCP tools, benchmarks the fill price against the mark and the book at the time, reports the position the fill left behind, and states funding paid or received over the holding period. Use when the user asks to analyse, benchmark or get market colour on a Paradex fill, or pastes Paradex fill JSON. A structure the user is considering rather than one they traded belongs to paradex-structure-analyst. Paradigm RFQ blocks belong to paradigm-block-analyst, and a block from the Option Monitor to paradex-block-analyst.

License 许可
MIT
最近更新
2026-11-13
Stars
★ 0
Forks
0

01 前言 Front Matter

name
paradex-trade-analyst
metadata
{ "author": "tradeparadigm", "version": "1.0" }
description
Analysis of a Paradex trade the user ALREADY MADE, against live Paradex market data. Invoked as `/paradex_trade_analyst <fill_id> <market side size price>`, which the trade history sends when a user asks to analyse a fill. Resolves the fill with the paradex-api skill's MCP tools, benchmarks the fill price against the mark and the book at the time, reports the position the fill left behind, and states funding paid or received over the holding period. Use when the user asks to analyse, benchmark or get market colour on a Paradex fill, or pastes Paradex fill JSON. A structure the user is considering rather than one they traded belongs to paradex-structure-analyst. Paradigm RFQ blocks belong to paradigm-block-analyst, and a block from the Option Monitor to paradex-block-analyst.
compatibility
Needs the paradex-api skill's `paradex__*` tools, which means a Paradex credential enrolled. Names every read that failed.

03 SKILL.md 正文

Paradex trade analyst

Benchmarks one filled Paradex trade against the market around it.

Input

/paradex_trade_analyst <fill_id> <market side size price>. The first token is the fill id and is what resolves the trade. Everything after it is the label the user saw in the trade history, useful for reading back but never authoritative.

A message may also carry hidden context holding the source fills as JSON. When it does, those rows are the fill and no lookup is needed.

Step 1 — resolve the fill

With hidden context, use it. That is the normal path: the trade history sends the whole row.

Without it, search for the fill with paradex__paradex_account_fills(market_id, start_unix_ms, end_unix_ms), with market_id set to the label's market. There is no fill-id filter and no single-fill tool.

Start with the last 24 hours and step the window back a day at a time. The tool returns one page of at most 100 fills and no cursor. When a window returns 100 rows with no match, halve it and search each half, until every window returns fewer than 100. Compare each row's id against the fill id as strings. Stop at the exact match, and stop after ten days without one.

Report and stop when no row matches. Never read a fill from the label, and never accept a row whose id differs from the one asked for.

Step 2 — value it

  • Compare the fill price against the mark. paradex__paradex_market_summaries is a live snapshot, so it answers for a recent fill and not for an old one. For anything older, read paradex__paradex_klines around the fill's timestamp and say which of the two the comparison came from.
  • Compare against the book at that moment where the data reaches back far enough, and say so when it does not.
  • State the difference in basis points of the mark, signed against the side: a buy above the mark and a sell below it both read as paying away.

Step 3 — the position it left

Aggregate the fills of that market around the trade to say what position the user held after it, and at what average entry. State it in contracts and in notional.

Step 4 — funding

Sum funding over the holding period for that market and state it against the realised move, so a profitable-looking hold that paid it all away in funding reads as one.

Step 5 — draw the payoff

After the numbers, render the payoff so the user sees the shape of the position:

{
  "id": "payoff-1",
  "layout": "stack",
  "children": [
    {
      "component": "options_payoff",
      "props": {
        "product": "BTC",
        "spot": 83356.2,
        "legs": [
          {"optionType": "CALL", "side": "BUY", "strike": 86000,
           "size": 1, "price": 1234.5,
           "symbol": "BTC-USD-3OCT26-86000-C"}
        ]
      }
    }
  ]
}

Write that object as the last thing in your reply, with your prose above it. The terminal reads the outermost {...} of a message and renders it when it carries layout and children, keeping the prose as the text of the bubble. An object without both keys is not a spec and shows as raw JSON, which is what a bare {"mode": ..., "component": ..., "props": ...} does.

One leg per fill. optionType and strike come from the market symbol, side and size from the fill, and price is the fill price as the premium per contract, always positive. spot is underlying_price from the paradex__paradex_market_summaries read of Step 2, which is the underlying's price now and not the option's own mark. Skip this step when that read failed.

Send the legs and nothing else. The chart works out the curve, the max loss, the breakeven and the max profit from them, so a payoff number you calculated yourself has no field to go in and must not appear in the prose either.

Skip this step when the host draws nothing back. Say the numbers either way.

Output

Lead with the numbers. Fill against mark in basis points, size, notional, the resulting position, then funding. Say what was unavailable rather than filling it in.

Never fabricate a mark, a book level or a funding number. A missing venue read is a missing line, and the line says which read failed.

04 同仓库更多 Skills

tradeparadigm
tradeparadigm/dt-apps

example-api

A skill body that exists so the fixture is a complete app. It teaches nothing and is never published.

★ 0
tradeparadigm
tradeparadigm/dt-apps

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.

★ 0
tradeparadigm
tradeparadigm/dt-apps

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).

★ 0
tradeparadigm
tradeparadigm/dt-apps

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.

★ 0
tradeparadigm
tradeparadigm/dt-apps

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.

★ 0
tradeparadigm
tradeparadigm/dt-apps

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.

★ 0