[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75MDPB4NN634JREW02JDX97":3,"skill-same:01M75MDPB4NN634JREW02JDX97":70},{"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":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":6,"ownerHtmlUrl":52,"ownerBlogUrl":53,"ownerDescription":54,"updatedAt":55,"install":56,"resources":69},"01M75MDPB4NN634JREW02JDX97","okx-dex-market-price",null,"Fetch token prices from OKX DEX Market Price API (v6). Use this skill when a user wants to: 1. Get the latest price of one or more tokens on supported EVM\u002FSolana chains 2. Batch query token prices (up to 100 tokens per request) for portfolios or UIs 3. Build applications that need real-time DEX market price data Core value: Correct authenticated POST requests with JSON body, HMAC-SHA256 signing including body in prehash, and proper handling of batch request\u002Fresponse.","javimosch\u002Fopen-claw-skills","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M75B8NCTAJG9WH5YNZH7C3D8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fli-zoe-x\u002Fmarket-test-price\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: okx-dex-market-price\ndescription: >\n  Fetch token prices from OKX DEX Market Price API (v6). Use this skill when a user wants to:\n  1. Get the latest price of one or more tokens on supported EVM\u002FSolana chains\n  2. Batch query token prices (up to 100 tokens per request) for portfolios or UIs\n  3. Build applications that need real-time DEX market price data\n  Core value: Correct authenticated POST requests with JSON body, HMAC-SHA256 signing\n  including body in prehash, and proper handling of batch request\u002Fresponse.\nversion: 1.0.0\nallowed_tools: [bash_tool, create_file, str_replace, view]\nrequired_context: [api_key, secret_key, passphrase]\nlicense: MIT\nauthor: Claude Assistant\ntags: [defi, dex, okx, market, price, web3, token, evm, solana, batch]\n---\n\n# OKX DEX Market Price API Skill\n\n## Overview\n\nThis skill generates production-ready code for fetching **token prices** from the **OKX DEX Market Price API v6**. The API returns the latest price for one or more tokens on a given chain. It is a **batch endpoint**: you send a list of `(chainIndex, tokenContractAddress)` and receive a list of price results.\n\n**Key capabilities:**\n- Authenticated **POST** API requests with HMAC-SHA256 signing (prehash includes request body)\n- **Batch support**: 1–100 tokens per request\n- Multi-chain support (Ethereum, BSC, Polygon, Arbitrum, Base, Solana, etc.)\n- Response includes `time` (price timestamp in ms) and `price` (string for precision)\n\n## Prerequisites\n\n### Required Credentials\n- `OKX_ACCESS_KEY` — API key\n- `OKX_SECRET_KEY` — Secret key for HMAC signing\n- `OKX_PASSPHRASE` — Account passphrase\n\n### Environment\n- **Python**: `requests`, `hmac`, `hashlib`, `base64`, `datetime`, `json` (stdlib except `requests`)\n- **Node.js**: `axios` or `node-fetch`, built-in `crypto`\n- No blockchain dependencies (read-only HTTP API)\n\n### API Endpoint\n```\nPOST https:\u002F\u002Fweb3.okx.com\u002Fapi\u002Fv6\u002Fdex\u002Fmarket\u002Fprice\n```\n\n## Workflow\n\n### Step 1: Validate User Input\n\n1. **Request body** — Must be a **JSON array** of 1–100 objects. Each object:\n   - `chainIndex` (String, required): Supported chain ID, e.g. `\"1\"` = Ethereum, `\"56\"` = BSC.\n   - `tokenContractAddress` (String, required): Token contract address.\n     - **EVM**: 42-character hex, **all lowercase** (e.g. `0x382bb369d343125bfb2117af9c149795c6c65c50`).\n     - **Native token** (ETH, BNB, etc.): use `0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee`.\n     - Solana: base58 address.\n\n2. **Batch size** — Between 1 and 100 (inclusive). Empty array or >100 items will result in API error.\n\n### Step 2: Construct Authentication Headers (POST)\n\nOKX API requires HMAC-SHA256 signed requests. For **POST**, the **body is part of the prehash**.\n\n**Headers:**\n```\nContent-Type: application\u002Fjson\nOK-ACCESS-KEY: \u003Capi_key>\nOK-ACCESS-SIGN: \u003Chmac_signature>\nOK-ACCESS-PASSPHRASE: \u003Cpassphrase>\nOK-ACCESS-TIMESTAMP: \u003Ciso8601_timestamp>\n```\n\n**Signing algorithm (POST):**\n```\ntimestamp = ISO 8601 UTC (e.g. \"2025-01-15T12:00:00.000Z\")\nrequest_path = \"\u002Fapi\u002Fv6\u002Fdex\u002Fmarket\u002Fprice\"   \u002F\u002F no query string for this endpoint\nbody = exact JSON string that will be sent (e.g. '[{\"chainIndex\":\"1\",\"tokenContractAddress\":\"0x...\"}]'\nprehash = timestamp + \"POST\" + request_path + body\nsignature = Base64(HMAC-SHA256(secret_key, prehash))\n```\n\n**CRITICAL for POST:**\n- The **body** must be the **exact** JSON string (same as sent). No extra spaces; use canonical JSON (e.g. no extra whitespace).\n- Method is uppercase `\"POST\"`.\n- Request path is **without** query string (this endpoint has no query params).\n\n### Step 3: Send Request and Parse Response\n\n**Request body example:**\n```json\n[\n  { \"chainIndex\": \"1\", \"tokenContractAddress\": \"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48\" },\n  { \"chainIndex\": \"56\", \"tokenContractAddress\": \"0x382bb369d343125bfb2117af9c149795c6c65c50\" }\n]\n```\n\n**Success response structure:**\n```json\n{\n  \"code\": \"0\",\n  \"data\": [\n    {\n      \"chainIndex\": \"1\",\n      \"tokenContractAddress\": \"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48\",\n      \"time\": \"1716892020000\",\n      \"price\": \"1.00012345\"\n    }\n  ],\n  \"msg\": \"\"\n}\n```\n\n**Fields:**\n- `code`: `\"0\"` = success; non-zero = error (see `msg`).\n- `data`: Array of price objects, one per requested token (order may match request).\n- `chainIndex`, `tokenContractAddress`: Echo of request.\n- `time`: Price timestamp in **Unix milliseconds** (string).\n- `price`: Latest token price (string to preserve precision).\n\n### Step 4: Format Output for User\n\n- Convert `price` (string) to number only when needed for display\u002Fmath to avoid precision loss.\n- Use `time` for “price as of” display (e.g. convert ms to local time).\n- If `code !== \"0\"`, surface `msg` and do not treat as success.\n\n## Best Practices\n\n### Security\n- **Never hardcode** API credentials; use environment variables or secure config.\n- **Never log** secret key or raw signature.\n- Validate `tokenContractAddress` format (EVM hex length\u002Fcase, Solana base58) before sending.\n\n### POST body and signing\n- Use **identical** JSON string for both signing and request body (no re-pretty-print between sign and send).\n- In Python: `json.dumps(payload, separators=(',', ':'))` for deterministic output.\n- In JavaScript: `JSON.stringify(payload)` — ensure no trailing spaces.\n\n### Error handling\n- Check `response[\"code\"] == \"0\"` before using `data`.\n- Empty or invalid `tokenParamList` (e.g. empty list or >100 items) returns param error.\n- HTTP 401 = auth failure (check prehash: timestamp + \"POST\" + path + body).\n- HTTP 429 = rate limit; implement backoff.\n\n### Rate limits\n- Respect OKX rate limits; cache prices when polling frequently.\n\n## Examples\n\n### Example 1: Python — Batch get token prices\n\n```python\nimport os\nimport json\nimport hmac\nimport hashlib\nimport base64\nimport requests\nfrom datetime import datetime, timezone\n\nAPI_KEY = os.environ[\"OKX_ACCESS_KEY\"]\nSECRET_KEY = os.environ[\"OKX_SECRET_KEY\"]\nPASSPHRASE = os.environ[\"OKX_PASSPHRASE\"]\nBASE_URL = \"https:\u002F\u002Fweb3.okx.com\"\nPRICE_PATH = \"\u002Fapi\u002Fv6\u002Fdex\u002Fmarket\u002Fprice\"\n\ndef get_prices(token_param_list):\n    # 1–100 items\n    if not token_param_list or len(token_param_list) > 100:\n        raise ValueError(\"token_param_list must have 1–100 items\")\n\n    body = json.dumps(token_param_list, separators=(',', ':'))\n    timestamp = datetime.now(timezone.utc).strftime(\"%Y-%m-%dT%H:%M:%S.%f\")[:-3] + \"Z\"\n    prehash = timestamp + \"POST\" + PRICE_PATH + body\n    signature = base64.b64encode(\n        hmac.new(SECRET_KEY.encode(), prehash.encode(), hashlib.sha256).digest()\n    ).decode()\n\n    headers = {\n        \"Content-Type\": \"application\u002Fjson\",\n        \"OK-ACCESS-KEY\": API_KEY,\n        \"OK-ACCESS-SIGN\": signature,\n        \"OK-ACCESS-PASSPHRASE\": PASSPHRASE,\n        \"OK-ACCESS-TIMESTAMP\": timestamp,\n    }\n    resp = requests.post(BASE_URL + PRICE_PATH, headers=headers, data=body, timeout=30)\n    resp.raise_for_status()\n    data = resp.json()\n\n    if data.get(\"code\") != \"0\":\n        raise Exception(f\"OKX API error: {data.get('msg', 'Unknown')}\")\n    return data.get(\"data\", [])\n\n# One token on Ethereum (USDC)\npayload = [{\"chainIndex\": \"1\", \"tokenContractAddress\": \"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48\"}]\nprices = get_prices(payload)\nfor p in prices:\n    print(f\"{p['tokenContractAddress']} @ {p['time']}: {p['price']}\")\n```\n\n### Example 2: Node.js — POST with body in prehash\n\n```javascript\nconst crypto = require(\"crypto\");\nconst https = require(\"https\");\n\nconst API_KEY = process.env.OKX_ACCESS_KEY;\nconst SECRET_KEY = process.env.OKX_SECRET_KEY;\nconst PASSPHRASE = process.env.OKX_PASSPHRASE;\nconst BASE = \"https:\u002F\u002Fweb3.okx.com\";\nconst PATH = \"\u002Fapi\u002Fv6\u002Fdex\u002Fmarket\u002Fprice\";\n\nfunction getPrices(tokenParamList) {\n  const body = JSON.stringify(tokenParamList);\n  const timestamp = new Date().toISOString();\n  const prehash = timestamp + \"POST\" + PATH + body;\n  const signature = crypto.createHmac(\"sha256\", SECRET_KEY).update(prehash).digest(\"base64\");\n\n  const options = {\n    method: \"POST\",\n    headers: {\n      \"Content-Type\": \"application\u002Fjson\",\n      \"OK-ACCESS-KEY\": API_KEY,\n      \"OK-ACCESS-SIGN\": signature,\n      \"OK-ACCESS-PASSPHRASE\": PASSPHRASE,\n      \"OK-ACCESS-TIMESTAMP\": timestamp,\n    },\n  };\n\n  return new Promise((resolve, reject) => {\n    const req = https.request(BASE + PATH, options, (res) => {\n      let data = \"\";\n      res.on(\"data\", (chunk) => (data += chunk));\n      res.on(\"end\", () => {\n        const json = JSON.parse(data);\n        if (json.code !== \"0\") reject(new Error(json.msg || \"API error\"));\n        else resolve(json.data || []);\n      });\n    });\n    req.on(\"error\", reject);\n    req.write(body);\n    req.end();\n  });\n}\n```\n\n## Troubleshooting\n\n| Problem | Cause | Solution |\n|--------|-------|----------|\n| 401 Unauthorized | Signature mismatch | Ensure prehash = timestamp + \"POST\" + path + **exact body**; same body for sign and request. |\n| tokenParamList param error | Empty or >100 items | Send array with 1–100 elements. |\n| Invalid token address | Wrong format or chain | EVM: 42-char hex lowercase; use native token placeholder for ETH\u002FBNB. |\n| code non-zero | API \u002F param error | Read `msg`; check chain support and address validity. |\n| Missing price for a token | Token not supported or no liquidity | API may omit or fail for that pair; check supported chains\u002Ftokens. |\n\n## Reference: Common Chain IDs\n\n| Chain     | chainIndex |\n|----------|------------|\n| Ethereum | 1          |\n| BSC      | 56         |\n| Polygon  | 137        |\n| Arbitrum | 42161      |\n| Optimism | 10         |\n| Base     | 8453       |\n| Solana   | 501        |\n| Unichain | 130        |\n\n## Reference: Request\u002FResponse Summary\n\n| Item | Description |\n|------|-------------|\n| Method | POST |\n| URL | `https:\u002F\u002Fweb3.okx.com\u002Fapi\u002Fv6\u002Fdex\u002Fmarket\u002Fprice` |\n| Body | JSON array of `{ \"chainIndex\": string, \"tokenContractAddress\": string }`, length 1–100 |\n| Success code | `\"0\"` |\n| data[] | `chainIndex`, `tokenContractAddress`, `time` (ms string), `price` (string) |\n","# OKX DEX Market Price API Skill\n\n## Overview\n\nThis skill generates production-ready code for fetching **token prices** from the **OKX DEX Market Price API v6**. The API returns the latest price for one or more tokens on a given chain. It is a **batch endpoint**: you send a list of `(chainIndex, tokenContractAddress)` and receive a list of price results.\n\n**Key capabilities:**\n- Authenticated **POST** API requests with HMAC-SHA256 signing (prehash includes request body)\n- **Batch support**: 1–100 tokens per request\n- Multi-chain support (Ethereum, BSC, Polygon, Arbitrum, Base, Solana, etc.)\n- Response includes `time` (price timestamp in ms) and `price` (string for precision)\n\n## Prerequisites\n\n### Required Credentials\n- `OKX_ACCESS_KEY` — API key\n- `OKX_SECRET_KEY` — Secret key for HMAC signing\n- `OKX_PASSPHRASE` — Account passphrase\n\n### Environment\n- **Python**: `requests`, `hmac`, `hashlib`, `base64`, `datetime`, `json` (stdlib except `requests`)\n- **Node.js**: `axios` or `node-fetch`, built-in `crypto`\n- No blockchain dependencies (read-only HTTP API)\n\n### API Endpoint\n```\nPOST https:\u002F\u002Fweb3.okx.com\u002Fapi\u002Fv6\u002Fdex\u002Fmarket\u002Fprice\n```\n\n## Workflow\n\n### Step 1: Validate User Input\n\n1. **Request body** — Must be a **JSON array** of 1–100 objects. Each object:\n   - `chainIndex` (String, required): Supported chain ID, e.g. `\"1\"` = Ethereum, `\"56\"` = BSC.\n   - `tokenContractAddress` (String, required): Token contract address.\n     - **EVM**: 42-character hex, **all lowercase** (e.g. `0x382bb369d343125bfb2117af9c149795c6c65c50`).\n     - **Native token** (ETH, BNB, etc.): use `0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee`.\n     - Solana: base58 address.\n\n2. **Batch size** — Between 1 and 100 (inclusive). Empty array or >100 items will result in API error.\n\n### Step 2: Construct Authentication Headers (POST)\n\nOKX API requires HMAC-SHA256 signed requests. For **POST**, the **body is part of the prehash**.\n\n**Headers:**\n```\nContent-Type: application\u002Fjson\nOK-ACCESS-KEY: \u003Capi_key>\nOK-ACCESS-SIGN: \u003Chmac_signature>\nOK-ACCESS-PASSPHRASE: \u003Cpassphrase>\nOK-ACCESS-TIMESTAMP: \u003Ciso8601_timestamp>\n```\n\n**Signing algorithm (POST):**\n```\ntimestamp = ISO 8601 UTC (e.g. \"2025-01-15T12:00:00.000Z\")\nrequest_path = \"\u002Fapi\u002Fv6\u002Fdex\u002Fmarket\u002Fprice\"   \u002F\u002F no query string for this endpoint\nbody = exact JSON string that will be sent (e.g. '[{\"chainIndex\":\"1\",\"tokenContractAddress\":\"0x...\"}]'\nprehash = timestamp + \"POST\" + request_path + body\nsignature = Base64(HMAC-SHA256(secret_key, prehash))\n```\n\n**CRITICAL for POST:**\n- The **body** must be the **exact** JSON string (same as sent). No extra spaces; use canonical JSON (e.g. no extra whitespace).\n- Method is uppercase `\"POST\"`.\n- Request path is **without** query string (this endpoint has no query params).\n\n### Step 3: Send Request and Parse Response\n\n**Request body example:**\n```json\n[\n  { \"chainIndex\": \"1\", \"tokenContractAddress\": \"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48\" },\n  { \"chainIndex\": \"56\", \"tokenContractAddress\": \"0x382bb369d343125bfb2117af9c149795c6c65c50\" }\n]\n```\n\n**Success response structure:**\n```json\n{\n  \"code\": \"0\",\n  \"data\": [\n    {\n      \"chainIndex\": \"1\",\n      \"tokenContractAddress\": \"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48\",\n      \"time\": \"1716892020000\",\n      \"price\": \"1.00012345\"\n    }\n  ],\n  \"msg\": \"\"\n}\n```\n\n**Fields:**\n- `code`: `\"0\"` = success; non-zero = error (see `msg`).\n- `data`: Array of price objects, one per requested token (order may match request).\n- `chainIndex`, `tokenContractAddress`: Echo of request.\n- `time`: Price timestamp in **Unix milliseconds** (string).\n- `price`: Latest token price (string to preserve precision).\n\n### Step 4: Format Output for User\n\n- Convert `price` (string) to number only when needed for display\u002Fmath to avoid precision loss.\n- Use `time` for “price as of” display (e.g. convert ms to local time).\n- If `code !== \"0\"`, surface `msg` and do not treat as success.\n\n## Best Practices\n\n### Security\n- **Never hardcode** API credentials; use environment variables or secure config.\n- **Never log** secret key or raw signature.\n- Validate `tokenContractAddress` format (EVM hex length\u002Fcase, Solana base58) before sending.\n\n### POST body and signing\n- Use **identical** JSON string for both signing and request body (no re-pretty-print between sign and send).\n- In Python: `json.dumps(payload, separators=(',', ':'))` for deterministic output.\n- In JavaScript: `JSON.stringify(payload)` — ensure no trailing spaces.\n\n### Error handling\n- Check `response[\"code\"] == \"0\"` before using `data`.\n- Empty or invalid `tokenParamList` (e.g. empty list or >100 items) returns param error.\n- HTTP 401 = auth failure (check prehash: timestamp + \"POST\" + path + body).\n- HTTP 429 = rate limit; implement backoff.\n\n### Rate limits\n- Respect OKX rate limits; cache prices when polling frequently.\n\n## Examples\n\n### Example 1: Python — Batch get token prices\n\n```python\nimport os\nimport json\nimport hmac\nimport hashlib\nimport base64\nimport requests\nfrom datetime import datetime, timezone\n\nAPI_KEY = os.environ[\"OKX_ACCESS_KEY\"]\nSECRET_KEY = os.environ[\"OKX_SECRET_KEY\"]\nPASSPHRASE = os.environ[\"OKX_PASSPHRASE\"]\nBASE_URL = \"https:\u002F\u002Fweb3.okx.com\"\nPRICE_PATH = \"\u002Fapi\u002Fv6\u002Fdex\u002Fmarket\u002Fprice\"\n\ndef get_prices(token_param_list):\n    # 1–100 items\n    if not token_param_list or len(token_param_list) > 100:\n        raise ValueError(\"token_param_list must have 1–100 items\")\n\n    body = json.dumps(token_param_list, separators=(',', ':'))\n    timestamp = datetime.now(timezone.utc).strftime(\"%Y-%m-%dT%H:%M:%S.%f\")[:-3] + \"Z\"\n    prehash = timestamp + \"POST\" + PRICE_PATH + body\n    signature = base64.b64encode(\n        hmac.new(SECRET_KEY.encode(), prehash.encode(), hashlib.sha256).digest()\n    ).decode()\n\n    headers = {\n        \"Content-Type\": \"application\u002Fjson\",\n        \"OK-ACCESS-KEY\": API_KEY,\n        \"OK-ACCESS-SIGN\": signature,\n        \"OK-ACCESS-PASSPHRASE\": PASSPHRASE,\n        \"OK-ACCESS-TIMESTAMP\": timestamp,\n    }\n    resp = requests.post(BASE_URL + PRICE_PATH, headers=headers, data=body, timeout=30)\n    resp.raise_for_status()\n    data = resp.json()\n\n    if data.get(\"code\") != \"0\":\n        raise Exception(f\"OKX API error: {data.get('msg', 'Unknown')}\")\n    return data.get(\"data\", [])\n\n# One token on Ethereum (USDC)\npayload = [{\"chainIndex\": \"1\", \"tokenContractAddress\": \"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48\"}]\nprices = get_prices(payload)\nfor p in prices:\n    print(f\"{p['tokenContractAddress']} @ {p['time']}: {p['price']}\")\n```\n\n### Example 2: Node.js — POST with body in prehash\n\n```javascript\nconst crypto = require(\"crypto\");\nconst https = require(\"https\");\n\nconst API_KEY = process.env.OKX_ACCESS_KEY;\nconst SECRET_KEY = process.env.OKX_SECRET_KEY;\nconst PASSPHRASE = process.env.OKX_PASSPHRASE;\nconst BASE = \"https:\u002F\u002Fweb3.okx.com\";\nconst PATH = \"\u002Fapi\u002Fv6\u002Fdex\u002Fmarket\u002Fprice\";\n\nfunction getPrices(tokenParamList) {\n  const body = JSON.stringify(tokenParamList);\n  const timestamp = new Date().toISOString();\n  const prehash = timestamp + \"POST\" + PATH + body;\n  const signature = crypto.createHmac(\"sha256\", SECRET_KEY).update(prehash).digest(\"base64\");\n\n  const options = {\n    method: \"POST\",\n    headers: {\n      \"Content-Type\": \"application\u002Fjson\",\n      \"OK-ACCESS-KEY\": API_KEY,\n      \"OK-ACCESS-SIGN\": signature,\n      \"OK-ACCESS-PASSPHRASE\": PASSPHRASE,\n      \"OK-ACCESS-TIMESTAMP\": timestamp,\n    },\n  };\n\n  return new Promise((resolve, reject) => {\n    const req = https.request(BASE + PATH, options, (res) => {\n      let data = \"\";\n      res.on(\"data\", (chunk) => (data += chunk));\n      res.on(\"end\", () => {\n        const json = JSON.parse(data);\n        if (json.code !== \"0\") reject(new Error(json.msg || \"API error\"));\n        else resolve(json.data || []);\n      });\n    });\n    req.on(\"error\", reject);\n    req.write(body);\n    req.end();\n  });\n}\n```\n\n## Troubleshooting\n\n| Problem | Cause | Solution |\n|--------|-------|----------|\n| 401 Unauthorized | Signature mismatch | Ensure prehash = timestamp + \"POST\" + path + **exact body**; same body for sign and request. |\n| tokenParamList param error | Empty or >100 items | Send array with 1–100 elements. |\n| Invalid token address | Wrong format or chain | EVM: 42-char hex lowercase; use native token placeholder for ETH\u002FBNB. |\n| code non-zero | API \u002F param error | Read `msg`; check chain support and address validity. |\n| Missing price for a token | Token not supported or no liquidity | API may omit or fail for that pair; check supported chains\u002Ftokens. |\n\n## Reference: Common Chain IDs\n\n| Chain     | chainIndex |\n|----------|------------|\n| Ethereum | 1          |\n| BSC      | 56         |\n| Polygon  | 137        |\n| Arbitrum | 42161      |\n| Optimism | 10         |\n| Base     | 8453       |\n| Solana   | 501        |\n| Unichain | 130        |\n\n## Reference: Request\u002FResponse Summary\n\n| Item | Description |\n|------|-------------|\n| Method | POST |\n| URL | `https:\u002F\u002Fweb3.okx.com\u002Fapi\u002Fv6\u002Fdex\u002Fmarket\u002Fprice` |\n| Body | JSON array of `{ \"chainIndex\": string, \"tokenContractAddress\": string }`, length 1–100 |\n| Success code | `\"0\"` |\n| data[] | `chainIndex`, `tokenContractAddress`, `time` (ms string), `price` (string) |\n",{"name":5,"tags":24,"author":35,"license":15,"version":36,"description":37,"allowed_tools":38,"required_context":43},[25,26,27,28,29,30,31,32,33,34],"defi","dex","okx","market","price","web3","token","evm","solana","batch","Claude Assistant","1.0.0","Fetch token prices from OKX DEX Market Price API (v6). Use this skill when a user wants to: 1. Get the latest price of one or more tokens on supported EVM\u002FSolana chains 2. Batch query token prices (up to 100 tokens per request) for portfolios or UIs 3. Build applications that need real-time DEX market price data Core value: Correct authenticated POST requests with JSON body, HMAC-SHA256 signing including body in prehash, and proper handling of batch request\u002Fresponse.\n",[39,40,41,42],"bash_tool","create_file","str_replace","view",[44,45,46],"api_key","secret_key","passphrase","main","f9d3fe7cf9ac8f1ea63a0d96e98e1f510a3814db","skills\u002Fli-zoe-x\u002Fmarket-test-price",1,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-06-07 03:34:58",{"source":8,"skillName":5,"commands":57,"prompt":67,"zipAvailable":68},[58,61,64],{"tool":59,"command":60},"npx","npx skills add javimosch\u002Fopen-claw-skills --skill okx-dex-market-price",{"tool":62,"command":63},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill okx-dex-market-price",{"tool":65,"command":66},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill okx-dex-market-price","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fli-zoe-x\u002Fmarket-test-price\u002FSKILL.md",true,[],[71,79,86,93,100,107],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":78},"01M778GGXG2VQ0YF31W2MKGMQZ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":78},"01M778G7BH8SBJ9FJ6C3G7CB1K","ceaser","Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir\u002FUltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":78},"01M778FYCJQZWFKKX5FYMK3S47","ceaser-send","Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir\u002FUltraHonk zero-knowledge proofs.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser-send\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":78},"01M778FQQNSEYA3HJKZBPQ4M9Z","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":78},"01M778FGVZX7QA2TF9BFMM37FY","moldium","Post and manage content on the Moldium blog platform. Triggered by \"post to Moldium\", \"write a blog post\", \"publish an article\", etc.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyom45\u002Fmoldium\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":78},"01M778F88D8PQ9MQ0KNW2TJ8ZH","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http:\u002F\u002Fweakaccept.top:8000\u002F.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[]]