[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D9MCQFWXSBDWH78T96GHH8":3,"skill-same:01M7D9MCQFWXSBDWH78T96GHH8":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7D9MCQFWXSBDWH78T96GHH8","deribit-api",null,"Trading and account access on Deribit's v2 API using a client secret held by the DIME credential proxy. Covers the whole flow: exchanging the stored client secret for an access token, reading instruments, order book and index prices, reading positions and account summary, placing and cancelling orders on options, futures and perpetuals, and authenticating a WebSocket. Use for ANY request to www.deribit.com or test.deribit.com — including \"buy a BTC call on Deribit\", \"what are my Deribit positions\", \"cancel my Deribit orders\", \"what is my Deribit margin\", or a 403 from the credential proxy on a Deribit call. Read this BEFORE calling Deribit: the token exchange is the only call that touches the credential, and it must be a GET with the placeholder in the query string.","tradeparadigm\u002Fdt-apps","tradeparadigm","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F72768132?v=4","01M7D9KY0PDJW6NWY8P936YNEX","Paradigm","01M7D9KY1BYPTKX9MGQHZKW4BP",0,"MIT","https:\u002F\u002Fgithub.com\u002Ftradeparadigm\u002Fdt-apps\u002Fblob\u002Fmain\u002Fapps\u002Fderibit\u002Fskills\u002Fderibit-api\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: deribit-api\ndescription: >\n  Trading and account access on Deribit's v2 API using a client secret held by\n  the DIME credential proxy. Covers the whole flow: exchanging the stored client\n  secret for an access token, reading instruments, order book and index prices,\n  reading positions and account summary, placing and cancelling orders on\n  options, futures and perpetuals, and authenticating a WebSocket. Use for ANY\n  request to www.deribit.com or test.deribit.com — including \"buy a BTC call on\n  Deribit\", \"what are my Deribit positions\", \"cancel my Deribit orders\", \"what\n  is my Deribit margin\", or a 403 from the credential proxy on a Deribit call.\n  Read this BEFORE calling Deribit: the token exchange is the only call that\n  touches the credential, and it must be a GET with the placeholder in the query\n  string.\nmetadata:\n  author: tradeparadigm\n---\n\n# Deribit\n\nDeribit is a crypto derivatives exchange. Its main market is BTC and ETH\noptions; it also lists perpetuals and dated futures. Everything is margined in\nthe underlying coin or in USDC, depending on the instrument.\n\nYour `AGENTS.md` already explains the placeholder mechanism in general — how\n`CRED_\u003CNAME>` and `CRED_\u003CNAME>_META` work and what the `cred-` prefix means.\nThis file assumes that and covers only what is specific to Deribit.\n\n## Hosts\n\n| Environment | REST base | WebSocket |\n|---|---|---|\n| Mainnet | `https:\u002F\u002Fwww.deribit.com\u002Fapi\u002Fv2` | `wss:\u002F\u002Fwww.deribit.com\u002Fws\u002Fapi\u002Fv2` |\n| Testnet | `https:\u002F\u002Ftest.deribit.com\u002Fapi\u002Fv2` | `wss:\u002F\u002Ftest.deribit.com\u002Fws\u002Fapi\u002Fv2` |\n\nCheck which one your credential is scoped to before assuming mainnet. Testnet\nis a full, separate exchange with its own accounts and its own API keys.\n\n## What you hold\n\n- **`CRED_DERIBIT_\u003CENV>_SECRET`** — the client secret, as a `cred-` placeholder.\n  You never see the secret itself.\n- **`CRED_DERIBIT_\u003CENV>_SECRET_META`** — JSON, containing `client_id`. Not a\n  secret; you send it in the clear.\n\nThe exact variable names depend on the label chosen at enrolment; read them from\nthe environment rather than assuming.\n\n## Deribit does not sign requests\n\nThis is the difference from Bybit and OKX, and it makes everything simpler.\nThere is no HMAC, no timestamp, no canonical string. You make **one** call that\ncarries the credential, get a bearer token back, and use that token on\neverything else.\n\n```\ncredential proxy holds the client secret\n        │\n        │  GET \u002Fapi\u002Fv2\u002Fpublic\u002Fauth   ← the only call with a placeholder\n        ▼\n   access_token  (yours, expires in ~900s)\n        │\n        │  Authorization: Bearer \u003Caccess_token>\n        ▼\n   every other private call\n```\n\n## Step 1: get an access token\n\n```\nGET \u002Fapi\u002Fv2\u002Fpublic\u002Fauth\n    ?grant_type=client_credentials\n    &client_id=\u003Cclient_id from _META>\n    &client_secret=\u003Cthe cred- placeholder>\n```\n\nSend it as a **GET with the parameters in the query string**. That is the only\nshape the credential proxy is watching: it swaps the placeholder for the real\nsecret in the query string of this one path and forwards the request.\n\nThe response:\n\n```json\n{\n  \"result\": {\n    \"access_token\": \"1580293819...\",\n    \"expires_in\": 900,\n    \"refresh_token\": \"1580293819...\",\n    \"token_type\": \"bearer\",\n    \"scope\": \"account:read_write trade:read_write\"\n  }\n}\n```\n\nKeep `access_token` in memory. Note `expires_in` and re-authenticate before it\nruns out.\n\n**Do not use the `refresh_token` grant.** It hits this same\n`\u002Fapi\u002Fv2\u002Fpublic\u002Fauth` path without a client secret, and the proxy refuses any\nrequest to that path that does not carry the placeholder — you will get a 403\nrather than a token. Just run the `client_credentials` exchange again. It is one\nrequest and it always works.\n\nCheck the `scope` in the response. A key created read-only comes back with\n`trade:read` rather than `trade:read_write`, and every order you place will be\nrejected. That is a Deribit key setting, not something to work around — report\nit.\n\n## Step 2: everything else\n\n```\nAuthorization: Bearer \u003Caccess_token>\n```\n\nNo placeholder, no proxy involvement. The proxy narrows this app to\n`\u002Fapi\u002Fv2\u002Fpublic\u002Fauth` alone, so every other Deribit path is forwarded untouched.\n\nIf a private call returns `13009 unauthorized`, your token expired. Go back to\nstep 1.\n\n## Market data (public, no token needed)\n\n```\nGET \u002Fapi\u002Fv2\u002Fpublic\u002Fget_instruments?currency=BTC&kind=option&expired=false\nGET \u002Fapi\u002Fv2\u002Fpublic\u002Fget_order_book?instrument_name=BTC-PERPETUAL&depth=10\nGET \u002Fapi\u002Fv2\u002Fpublic\u002Fticker?instrument_name=BTC-PERPETUAL\nGET \u002Fapi\u002Fv2\u002Fpublic\u002Fget_index_price?index_name=btc_usd\nGET \u002Fapi\u002Fv2\u002Fpublic\u002Fget_tradingview_chart_data?instrument_name=BTC-PERPETUAL&start_timestamp=...&end_timestamp=...&resolution=60\n```\n\nDeribit instrument names are readable and encode everything:\n\n| Name | What it is |\n|---|---|\n| `BTC-PERPETUAL` | BTC perpetual, coin-margined |\n| `BTC-27MAR26` | BTC future expiring 27 March 2026 |\n| `BTC-27MAR26-80000-C` | BTC call, strike 80000, expiring 27 March 2026 |\n| `BTC-27MAR26-80000-P` | the matching put |\n| `BTC_USDC-PERPETUAL` | USDC-margined perpetual |\n\n`kind` in `get_instruments` is `future`, `option`, `spot`, `future_combo` or\n`option_combo`. Always pass `expired=false` unless historical instruments are\ngenuinely wanted — the expired list is very long.\n\nFor an option, `public\u002Fticker` carries the greeks, the mark IV and the\nunderlying index price. Use it rather than computing anything yourself.\n\n## Account state (token required)\n\n```\nGET \u002Fapi\u002Fv2\u002Fprivate\u002Fget_account_summary?currency=BTC&extended=true\nGET \u002Fapi\u002Fv2\u002Fprivate\u002Fget_positions?currency=BTC&kind=option\nGET \u002Fapi\u002Fv2\u002Fprivate\u002Fget_open_orders?currency=BTC\nGET \u002Fapi\u002Fv2\u002Fprivate\u002Fget_order_history_by_currency?currency=BTC&count=50\nGET \u002Fapi\u002Fv2\u002Fprivate\u002Fget_user_trades_by_currency?currency=BTC&count=50\n```\n\n`get_account_summary` with `extended=true` is the one to read first: it carries\n`equity`, `available_funds`, `initial_margin`, `maintenance_margin` and\n`delta_total`. Check `available_funds` before sizing an order — Deribit's\nmargin for options is portfolio-based and not something to estimate.\n\n`currency` is required nearly everywhere and is the settlement currency: `BTC`,\n`ETH`, `USDC`, `USDT`, or `any`.\n\n## Placing an order\n\nDeribit uses separate buy and sell endpoints rather than a `side` parameter.\n\n```\nGET \u002Fapi\u002Fv2\u002Fprivate\u002Fbuy\n    ?instrument_name=BTC-PERPETUAL\n    &amount=10\n    &type=limit\n    &price=60000\n    &label=myorder1\n    &post_only=true\n```\n\n```\nGET \u002Fapi\u002Fv2\u002Fprivate\u002Fsell?instrument_name=BTC-27MAR26-80000-C&amount=1&type=limit&price=0.05\n```\n\nThese are `GET` requests with query parameters — Deribit's HTTP interface is\nJSON-RPC mapped onto GET, which surprises people. They are not idempotent\ndespite the verb.\n\n- **`amount` units differ by instrument.** For BTC futures and perpetuals it is\n  in **USD** and must be a multiple of 10. For options it is in the **base\n  coin** (contracts of 1 BTC or 1 ETH). For USDC-margined instruments it is in\n  the base coin. Read `contract_size` and `min_trade_amount` from\n  `get_instruments` rather than guessing — this is the single most common way\n  to place an order a hundred times the intended size.\n- **`price` for options is quoted in the base coin**, not in dollars. A BTC call\n  at `0.05` costs 0.05 BTC per contract.\n- `type`: `limit`, `market`, `stop_limit`, `stop_market`.\n- `post_only=true` for a maker-only order; Deribit will reprice rather than\n  cross. Add `reject_post_only=true` if you would rather it be rejected than\n  repriced.\n- `reduce_only=true` to close rather than open.\n- `label` is your own id, up to 64 characters. Set it — it is how you cancel by\n  label and how you find the order again.\n- `time_in_force`: `good_til_cancelled` (default), `fill_or_kill`,\n  `immediate_or_cancel`.\n\nThe response's `result.order.order_state` tells you what happened: `open`,\n`filled`, `rejected`, `cancelled`. A `200` with `order_state: \"rejected\"` is a\nfailure — read `result.order.reject_reason`.\n\n## Cancelling\n\n```\nGET \u002Fapi\u002Fv2\u002Fprivate\u002Fcancel?order_id=ETH-12345\nGET \u002Fapi\u002Fv2\u002Fprivate\u002Fcancel_by_label?label=myorder1&currency=BTC\nGET \u002Fapi\u002Fv2\u002Fprivate\u002Fcancel_all_by_instrument?instrument_name=BTC-PERPETUAL\nGET \u002Fapi\u002Fv2\u002Fprivate\u002Fcancel_all?detailed=false\n```\n\n`cancel_all` with no arguments cancels every open order on the whole account,\nacross currencies and instruments. Scope it to an instrument or a currency\nunless that is genuinely what was asked for.\n\n## WebSocket\n\nDeribit's WebSocket carries the **same JSON-RPC methods** as the HTTP interface,\nand this is the one venue in this catalogue where private streams work.\n\n```\nwss:\u002F\u002Fwww.deribit.com\u002Fws\u002Fapi\u002Fv2\n```\n\nAuthenticate by sending `public\u002Fauth` as the first frame — but **with the access\ntoken you already obtained over HTTP**, not with the client secret:\n\n```json\n{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"public\u002Fauth\",\n \"params\":{\"grant_type\":\"client_credentials\",\"client_id\":\"...\",\"client_secret\":\"...\"}}\n```\n\nYou cannot send that, because you do not have the client secret and the proxy\ndoes not rewrite WebSocket frames. Instead, take the token from the HTTP\nexchange in step 1 and send:\n\n```json\n{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"private\u002Fsubscribe\",\n \"params\":{\"channels\":[\"user.orders.BTC-PERPETUAL.raw\"],\"access_token\":\"\u003Caccess_token>\"}}\n```\n\nDeribit accepts `access_token` as a parameter on private WebSocket methods,\nwhich is what makes this work where Bybit and OKX do not. Useful channels:\n`user.orders.\u003Cinstrument>.raw`, `user.trades.\u003Ccurrency>.raw`,\n`user.portfolio.\u003Ccurrency>`, and the public `ticker.\u003Cinstrument>.100ms` and\n`book.\u003Cinstrument>.none.10.100ms`.\n\nRe-run the HTTP exchange and re-subscribe when the token expires.\n\n## When something fails\n\n- **403 from the credential proxy**, body naming `placeholder_absent` — you\n  called `\u002Fapi\u002Fv2\u002Fpublic\u002Fauth` without the placeholder in the query string.\n  Most likely you tried the `refresh_token` grant; use `client_credentials`.\n- **`13004 invalid_credentials`** — the enrolled client secret does not match\n  the `client_id` you sent, or you sent a masked value for `client_id` instead\n  of the one in `_META`, or the key was revoked on Deribit's side. Print the\n  `client_id` you actually sent before assuming the secret is wrong.\n- **`13009 unauthorized`** — the access token expired or was not sent. Re-run\n  step 1.\n- **`11044 not_open_order`** — the order was already filled or cancelled.\n- **`10001 ... amount`** — almost always the `amount` units: USD and a multiple\n  of 10 for BTC futures, base coin for options.\n- **An order rejected with `post_only_reject`** — you sent\n  `reject_post_only=true` and the order would have crossed. Re-price it.\n\n## Reference\n\nFull API documentation: https:\u002F\u002Fdocs.deribit.com\u002F\n\nGo there for anything this file does not cover — the complete method list,\nrate limits, the full error code table. This file is the part Deribit's own docs\ncannot tell you: that the client secret is not yours to hold, and what to send\ninstead.\n","# Deribit\n\nDeribit is a crypto derivatives exchange. Its main market is BTC and ETH\noptions; it also lists perpetuals and dated futures. Everything is margined in\nthe underlying coin or in USDC, depending on the instrument.\n\nYour `AGENTS.md` already explains the placeholder mechanism in general — how\n`CRED_\u003CNAME>` and `CRED_\u003CNAME>_META` work and what the `cred-` prefix means.\nThis file assumes that and covers only what is specific to Deribit.\n\n## Hosts\n\n| Environment | REST base | WebSocket |\n|---|---|---|\n| Mainnet | `https:\u002F\u002Fwww.deribit.com\u002Fapi\u002Fv2` | `wss:\u002F\u002Fwww.deribit.com\u002Fws\u002Fapi\u002Fv2` |\n| Testnet | `https:\u002F\u002Ftest.deribit.com\u002Fapi\u002Fv2` | `wss:\u002F\u002Ftest.deribit.com\u002Fws\u002Fapi\u002Fv2` |\n\nCheck which one your credential is scoped to before assuming mainnet. Testnet\nis a full, separate exchange with its own accounts and its own API keys.\n\n## What you hold\n\n- **`CRED_DERIBIT_\u003CENV>_SECRET`** — the client secret, as a `cred-` placeholder.\n  You never see the secret itself.\n- **`CRED_DERIBIT_\u003CENV>_SECRET_META`** — JSON, containing `client_id`. Not a\n  secret; you send it in the clear.\n\nThe exact variable names depend on the label chosen at enrolment; read them from\nthe environment rather than assuming.\n\n## Deribit does not sign requests\n\nThis is the difference from Bybit and OKX, and it makes everything simpler.\nThere is no HMAC, no timestamp, no canonical string. You make **one** call that\ncarries the credential, get a bearer token back, and use that token on\neverything else.\n\n```\ncredential proxy holds the client secret\n        │\n        │  GET \u002Fapi\u002Fv2\u002Fpublic\u002Fauth   ← the only call with a placeholder\n        ▼\n   access_token  (yours, expires in ~900s)\n        │\n        │  Authorization: Bearer \u003Caccess_token>\n        ▼\n   every other private call\n```\n\n## Step 1: get an access token\n\n```\nGET \u002Fapi\u002Fv2\u002Fpublic\u002Fauth\n    ?grant_type=client_credentials\n    &client_id=\u003Cclient_id from _META>\n    &client_secret=\u003Cthe cred- placeholder>\n```\n\nSend it as a **GET with the parameters in the query string**. That is the only\nshape the credential proxy is watching: it swaps the placeholder for the real\nsecret in the query string of this one path and forwards the request.\n\nThe response:\n\n```json\n{\n  \"result\": {\n    \"access_token\": \"1580293819...\",\n    \"expires_in\": 900,\n    \"refresh_token\": \"1580293819...\",\n    \"token_type\": \"bearer\",\n    \"scope\": \"account:read_write trade:read_write\"\n  }\n}\n```\n\nKeep `access_token` in memory. Note `expires_in` and re-authenticate before it\nruns out.\n\n**Do not use the `refresh_token` grant.** It hits this same\n`\u002Fapi\u002Fv2\u002Fpublic\u002Fauth` path without a client secret, and the proxy refuses any\nrequest to that path that does not carry the placeholder — you will get a 403\nrather than a token. Just run the `client_credentials` exchange again. It is one\nrequest and it always works.\n\nCheck the `scope` in the response. A key created read-only comes back with\n`trade:read` rather than `trade:read_write`, and every order you place will be\nrejected. That is a Deribit key setting, not something to work around — report\nit.\n\n## Step 2: everything else\n\n```\nAuthorization: Bearer \u003Caccess_token>\n```\n\nNo placeholder, no proxy involvement. The proxy narrows this app to\n`\u002Fapi\u002Fv2\u002Fpublic\u002Fauth` alone, so every other Deribit path is forwarded untouched.\n\nIf a private call returns `13009 unauthorized`, your token expired. Go back to\nstep 1.\n\n## Market data (public, no token needed)\n\n```\nGET \u002Fapi\u002Fv2\u002Fpublic\u002Fget_instruments?currency=BTC&kind=option&expired=false\nGET \u002Fapi\u002Fv2\u002Fpublic\u002Fget_order_book?instrument_name=BTC-PERPETUAL&depth=10\nGET \u002Fapi\u002Fv2\u002Fpublic\u002Fticker?instrument_name=BTC-PERPETUAL\nGET \u002Fapi\u002Fv2\u002Fpublic\u002Fget_index_price?index_name=btc_usd\nGET \u002Fapi\u002Fv2\u002Fpublic\u002Fget_tradingview_chart_data?instrument_name=BTC-PERPETUAL&start_timestamp=...&end_timestamp=...&resolution=60\n```\n\nDeribit instrument names are readable and encode everything:\n\n| Name | What it is |\n|---|---|\n| `BTC-PERPETUAL` | BTC perpetual, coin-margined |\n| `BTC-27MAR26` | BTC future expiring 27 March 2026 |\n| `BTC-27MAR26-80000-C` | BTC call, strike 80000, expiring 27 March 2026 |\n| `BTC-27MAR26-80000-P` | the matching put |\n| `BTC_USDC-PERPETUAL` | USDC-margined perpetual |\n\n`kind` in `get_instruments` is `future`, `option`, `spot`, `future_combo` or\n`option_combo`. Always pass `expired=false` unless historical instruments are\ngenuinely wanted — the expired list is very long.\n\nFor an option, `public\u002Fticker` carries the greeks, the mark IV and the\nunderlying index price. Use it rather than computing anything yourself.\n\n## Account state (token required)\n\n```\nGET \u002Fapi\u002Fv2\u002Fprivate\u002Fget_account_summary?currency=BTC&extended=true\nGET \u002Fapi\u002Fv2\u002Fprivate\u002Fget_positions?currency=BTC&kind=option\nGET \u002Fapi\u002Fv2\u002Fprivate\u002Fget_open_orders?currency=BTC\nGET \u002Fapi\u002Fv2\u002Fprivate\u002Fget_order_history_by_currency?currency=BTC&count=50\nGET \u002Fapi\u002Fv2\u002Fprivate\u002Fget_user_trades_by_currency?currency=BTC&count=50\n```\n\n`get_account_summary` with `extended=true` is the one to read first: it carries\n`equity`, `available_funds`, `initial_margin`, `maintenance_margin` and\n`delta_total`. Check `available_funds` before sizing an order — Deribit's\nmargin for options is portfolio-based and not something to estimate.\n\n`currency` is required nearly everywhere and is the settlement currency: `BTC`,\n`ETH`, `USDC`, `USDT`, or `any`.\n\n## Placing an order\n\nDeribit uses separate buy and sell endpoints rather than a `side` parameter.\n\n```\nGET \u002Fapi\u002Fv2\u002Fprivate\u002Fbuy\n    ?instrument_name=BTC-PERPETUAL\n    &amount=10\n    &type=limit\n    &price=60000\n    &label=myorder1\n    &post_only=true\n```\n\n```\nGET \u002Fapi\u002Fv2\u002Fprivate\u002Fsell?instrument_name=BTC-27MAR26-80000-C&amount=1&type=limit&price=0.05\n```\n\nThese are `GET` requests with query parameters — Deribit's HTTP interface is\nJSON-RPC mapped onto GET, which surprises people. They are not idempotent\ndespite the verb.\n\n- **`amount` units differ by instrument.** For BTC futures and perpetuals it is\n  in **USD** and must be a multiple of 10. For options it is in the **base\n  coin** (contracts of 1 BTC or 1 ETH). For USDC-margined instruments it is in\n  the base coin. Read `contract_size` and `min_trade_amount` from\n  `get_instruments` rather than guessing — this is the single most common way\n  to place an order a hundred times the intended size.\n- **`price` for options is quoted in the base coin**, not in dollars. A BTC call\n  at `0.05` costs 0.05 BTC per contract.\n- `type`: `limit`, `market`, `stop_limit`, `stop_market`.\n- `post_only=true` for a maker-only order; Deribit will reprice rather than\n  cross. Add `reject_post_only=true` if you would rather it be rejected than\n  repriced.\n- `reduce_only=true` to close rather than open.\n- `label` is your own id, up to 64 characters. Set it — it is how you cancel by\n  label and how you find the order again.\n- `time_in_force`: `good_til_cancelled` (default), `fill_or_kill`,\n  `immediate_or_cancel`.\n\nThe response's `result.order.order_state` tells you what happened: `open`,\n`filled`, `rejected`, `cancelled`. A `200` with `order_state: \"rejected\"` is a\nfailure — read `result.order.reject_reason`.\n\n## Cancelling\n\n```\nGET \u002Fapi\u002Fv2\u002Fprivate\u002Fcancel?order_id=ETH-12345\nGET \u002Fapi\u002Fv2\u002Fprivate\u002Fcancel_by_label?label=myorder1&currency=BTC\nGET \u002Fapi\u002Fv2\u002Fprivate\u002Fcancel_all_by_instrument?instrument_name=BTC-PERPETUAL\nGET \u002Fapi\u002Fv2\u002Fprivate\u002Fcancel_all?detailed=false\n```\n\n`cancel_all` with no arguments cancels every open order on the whole account,\nacross currencies and instruments. Scope it to an instrument or a currency\nunless that is genuinely what was asked for.\n\n## WebSocket\n\nDeribit's WebSocket carries the **same JSON-RPC methods** as the HTTP interface,\nand this is the one venue in this catalogue where private streams work.\n\n```\nwss:\u002F\u002Fwww.deribit.com\u002Fws\u002Fapi\u002Fv2\n```\n\nAuthenticate by sending `public\u002Fauth` as the first frame — but **with the access\ntoken you already obtained over HTTP**, not with the client secret:\n\n```json\n{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"public\u002Fauth\",\n \"params\":{\"grant_type\":\"client_credentials\",\"client_id\":\"...\",\"client_secret\":\"...\"}}\n```\n\nYou cannot send that, because you do not have the client secret and the proxy\ndoes not rewrite WebSocket frames. Instead, take the token from the HTTP\nexchange in step 1 and send:\n\n```json\n{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"private\u002Fsubscribe\",\n \"params\":{\"channels\":[\"user.orders.BTC-PERPETUAL.raw\"],\"access_token\":\"\u003Caccess_token>\"}}\n```\n\nDeribit accepts `access_token` as a parameter on private WebSocket methods,\nwhich is what makes this work where Bybit and OKX do not. Useful channels:\n`user.orders.\u003Cinstrument>.raw`, `user.trades.\u003Ccurrency>.raw`,\n`user.portfolio.\u003Ccurrency>`, and the public `ticker.\u003Cinstrument>.100ms` and\n`book.\u003Cinstrument>.none.10.100ms`.\n\nRe-run the HTTP exchange and re-subscribe when the token expires.\n\n## When something fails\n\n- **403 from the credential proxy**, body naming `placeholder_absent` — you\n  called `\u002Fapi\u002Fv2\u002Fpublic\u002Fauth` without the placeholder in the query string.\n  Most likely you tried the `refresh_token` grant; use `client_credentials`.\n- **`13004 invalid_credentials`** — the enrolled client secret does not match\n  the `client_id` you sent, or you sent a masked value for `client_id` instead\n  of the one in `_META`, or the key was revoked on Deribit's side. Print the\n  `client_id` you actually sent before assuming the secret is wrong.\n- **`13009 unauthorized`** — the access token expired or was not sent. Re-run\n  step 1.\n- **`11044 not_open_order`** — the order was already filled or cancelled.\n- **`10001 ... amount`** — almost always the `amount` units: USD and a multiple\n  of 10 for BTC futures, base coin for options.\n- **An order rejected with `post_only_reject`** — you sent\n  `reject_post_only=true` and the order would have crossed. Re-price it.\n\n## Reference\n\nFull API documentation: https:\u002F\u002Fdocs.deribit.com\u002F\n\nGo there for anything this file does not cover — the complete method list,\nrate limits, the full error code table. This file is the part Deribit's own docs\ncannot tell you: that the client secret is not yours to hold, and what to send\ninstead.\n",{"name":5,"metadata":24,"description":25},{"author":9},"Trading and account access on Deribit's v2 API using a client secret held by the DIME credential proxy. Covers the whole flow: exchanging the stored client secret for an access token, reading instruments, order book and index prices, reading positions and account summary, placing and cancelling orders on options, futures and perpetuals, and authenticating a WebSocket. Use for ANY request to www.deribit.com or test.deribit.com — including \"buy a BTC call on Deribit\", \"what are my Deribit positions\", \"cancel my Deribit orders\", \"what is my Deribit margin\", or a 403 from the credential proxy on a Deribit call. Read this BEFORE calling Deribit: the token exchange is the only call that touches the credential, and it must be a GET with the placeholder in the query string.\n","main","4befefc366f86a32c20711cf3798aaf13df1cd59","apps\u002Fderibit\u002Fskills\u002Fderibit-api","https:\u002F\u002Fgithub.com\u002Ftradeparadigm\u002Fdt-apps","https:\u002F\u002Fgithub.com\u002Ftradeparadigm","https:\u002F\u002Fparadigm.co\u002F","2026-11-13 17:14:22",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add tradeparadigm\u002Fdt-apps --skill deribit-api",{"tool":39,"command":40},"bunx","bunx skills add tradeparadigm\u002Fdt-apps --skill deribit-api",{"tool":42,"command":43},"pnpm","pnpm dlx skills add tradeparadigm\u002Fdt-apps --skill deribit-api","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftradeparadigm\u002Fdt-apps\u002Fblob\u002Fmain\u002Fapps\u002Fderibit\u002Fskills\u002Fderibit-api\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7D9RW0ZFXNH3MCGZE2B9WHY","example-api","A skill body that exists so the fixture is a complete app. It teaches nothing and is never published.","https:\u002F\u002Fgithub.com\u002Ftradeparadigm\u002Fdt-apps\u002Fblob\u002Fmain\u002Fscripts\u002Ftestdata\u002Fapps\u002Fexample\u002Fskills\u002Fexample-api\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7D9RN7GJCJR5QA2ZCE4MPTH","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.","https:\u002F\u002Fgithub.com\u002Ftradeparadigm\u002Fdt-apps\u002Fblob\u002Fmain\u002Fapps\u002Ftelegram\u002Fskills\u002Ftelegram-bot\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7D9R7K7RPTJ4T7DZRHXD156","paradigm-rfq-trader","Trigger institutional block trades via Paradigm's DRFQv2 flow. The workflow is venue-agnostic — resolve instruments, build the RFQ \u002F 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\u002Fvenues.md. In scope today: PRDX (Paradex, primary focus) and DBT (Deribit). Adding more DRFQv2 venues is a references\u002Fvenues.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 \u002F 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).","https:\u002F\u002Fgithub.com\u002Ftradeparadigm\u002Fdt-apps\u002Fblob\u002Fmain\u002Fapps\u002Fparadigm\u002Fskills\u002Fparadigm-rfq-trader\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7D9QV6WFQDW717AXTW7GJKE","paradigm-options-recap","Options market recap for a requested or default window, invoked via \u002Frecap. Parses \"\u002Frecap [asset] [options] [window]\" (e.g. \"\u002Frecap 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 \u002Frecap 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.","https:\u002F\u002Fgithub.com\u002Ftradeparadigm\u002Fdt-apps\u002Fblob\u002Fmain\u002Fapps\u002Fparadigm\u002Fskills\u002Fparadigm-options-recap\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7D9QJYMTHRTDVJFW3AC0HDN","paradigm-data-discovery","Catalog and query launcher for raw market data available to Dime in s3:\u002F\u002Fdt-exchange-venue-data, s3:\u002F\u002Fdt-paradigm-data, and s3:\u002F\u002Fdt-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.","https:\u002F\u002Fgithub.com\u002Ftradeparadigm\u002Fdt-apps\u002Fblob\u002Fmain\u002Fapps\u002Fparadigm\u002Fskills\u002Fparadigm-data-discovery\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7D9Q3F60BDBMC8PEGH1VBZG","paradigm-block-analyst","Cross-venue analysis of Paradigm RFQ block trades using live market data from Deribit, OKX, and Bybit. Invoked as `\u002Fanalyze \u003Crfq_id> \u003Crfq 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 \u002F 7d \u002F 30d and where else it printed, reads whether the flow moved the vol surface, and outputs a concise analysis. Use when the user runs `\u002Fanalyze \u003Crfq_id> ...`, pastes a Paradigm block trade JSON, or asks to analyze, benchmark, or get market color on a Paradigm RFQ execution. Covers outright calls\u002Fputs (CL\u002FPL), 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.","https:\u002F\u002Fgithub.com\u002Ftradeparadigm\u002Fdt-apps\u002Fblob\u002Fmain\u002Fapps\u002Fparadigm\u002Fskills\u002Fparadigm-block-analyst\u002FSKILL.md",[],[]]