{
  "schemaVersion": "1.0",
  "item": {
    "slug": "phemex-trade",
    "name": "Phemex Trading",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/bubble501/phemex-trade",
    "canonicalUrl": "https://clawhub.ai/bubble501/phemex-trade",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/phemex-trade",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=phemex-trade",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/phemex-trade"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/phemex-trade",
    "agentPageUrl": "https://openagent3.xyz/skills/phemex-trade/agent",
    "manifestUrl": "https://openagent3.xyz/skills/phemex-trade/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/phemex-trade/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Phemex Trading",
        "body": "Trade on Phemex via the phemex-cli tool. Supports USDT-M futures, Coin-M futures, and Spot markets."
      },
      {
        "title": "Before you start",
        "body": "Ensure you have the latest version installed:\n\nnpm install -g phemex-trade-mcp@latest"
      },
      {
        "title": "How to call tools",
        "body": "phemex-cli <tool_name> --param1 value1 --param2 value2\n\nOr with JSON args:\n\nphemex-cli <tool_name> '{\"param1\":\"value1\",\"param2\":\"value2\"}'\n\nOutput is always JSON. Environment variables PHEMEX_API_KEY, PHEMEX_API_SECRET, and PHEMEX_API_URL are read automatically."
      },
      {
        "title": "Contract types",
        "body": "Every tool accepts an optional --contractType flag:\n\nlinear (default) — USDT-M perpetual futures. Symbols end in USDT (e.g. BTCUSDT).\ninverse — Coin-M perpetual futures. Symbols end in USD (e.g. BTCUSD).\nspot — Spot trading. Symbols end in USDT (e.g. BTCUSDT). The server auto-prefixes s for the API."
      },
      {
        "title": "Market data (no auth needed)",
        "body": "get_ticker — 24hr price ticker. Example: phemex-cli get_ticker --symbol BTCUSDT\nget_orderbook — Order book (30 levels). Example: phemex-cli get_orderbook --symbol BTCUSDT\nget_klines — Candlestick data. Example: phemex-cli get_klines --symbol BTCUSDT --resolution 3600 --limit 100\nget_recent_trades — Recent trades. Example: phemex-cli get_recent_trades --symbol BTCUSDT\nget_funding_rate — Funding rate history. Example: phemex-cli get_funding_rate --symbol .BTCFR8H --limit 20"
      },
      {
        "title": "Account (read-only, auth required)",
        "body": "get_account — Balance and margin info. Example: phemex-cli get_account --currency USDT\nget_spot_wallet — Spot wallet balances. Example: phemex-cli get_spot_wallet\nget_positions — Current positions with PnL. Example: phemex-cli get_positions --currency USDT\nget_open_orders — Open orders. Example: phemex-cli get_open_orders --symbol BTCUSDT\nget_order_history — Closed/filled orders. Example: phemex-cli get_order_history --symbol BTCUSDT --limit 50\nget_trades — Trade execution history. Example: phemex-cli get_trades --symbol BTCUSDT --limit 50"
      },
      {
        "title": "Trading (auth required)",
        "body": "place_order — Place an order (Market, Limit, Stop, StopLimit). Key params: --symbol, --side (Buy/Sell), --orderQty, --ordType, --price (Limit/StopLimit), --stopPx (Stop/StopLimit), --timeInForce (GoodTillCancel/PostOnly/ImmediateOrCancel/FillOrKill), --reduceOnly, --posSide (Long/Short/Merged), --stopLoss, --takeProfit, --qtyType (spot only). orderQty units differ by contract type:\n\nlinear (USDT-M): orderQty = base currency amount (e.g. 0.01 = 0.01 BTC). To buy 10 USDT worth, calculate qty = 10 / current price.\ninverse (Coin-M): orderQty = number of contracts as integer (e.g. 10 = 10 contracts). Each contract has a fixed USD value (e.g. 1 USD/contract for BTCUSD).\nspot: depends on --qtyType. ByBase (default) = base currency (e.g. 0.01 = 0.01 BTC). ByQuote = quote currency (e.g. 50 = 50 USDT worth of BTC).\nExample: phemex-cli place_order --symbol BTCUSDT --side Buy --orderQty 0.01 --ordType Market\n\n\namend_order — Modify an open order. Example: phemex-cli amend_order --symbol BTCUSDT --orderID xxx --price 95000\ncancel_order — Cancel one order. Example: phemex-cli cancel_order --symbol BTCUSDT --orderID xxx\ncancel_all_orders — Cancel all orders for a symbol. Example: phemex-cli cancel_all_orders --symbol BTCUSDT\nset_leverage — Set leverage. Example: phemex-cli set_leverage --symbol BTCUSDT --leverage 10\nswitch_pos_mode — Switch OneWay/Hedged. Example: phemex-cli switch_pos_mode --symbol BTCUSDT --targetPosMode OneWay"
      },
      {
        "title": "Transfers (auth required)",
        "body": "transfer_funds — Move funds between spot and futures. Example: phemex-cli transfer_funds --currency USDT --amount 100 --direction spot_to_futures\nget_transfer_history — Transfer history. Example: phemex-cli get_transfer_history --currency USDT --limit 20"
      },
      {
        "title": "Safety rules",
        "body": "Always confirm before placing orders. Before calling place_order, show the user exactly what the order will do: symbol, side, quantity, type, price. Ask for confirmation.\nAlways confirm before cancelling all orders. Before calling cancel_all_orders, list the open orders first and confirm with the user.\nExplain leverage changes. Before calling set_leverage, explain the implications (higher leverage = higher liquidation risk).\nShow context before trading. Before suggesting a trade, show current positions and account balance so the user can make an informed decision.\nNever auto-trade. Do not place orders without explicit user instruction."
      },
      {
        "title": "Check a price",
        "body": "phemex-cli get_ticker --symbol BTCUSDT"
      },
      {
        "title": "Place a market buy (USDT-M futures)",
        "body": "phemex-cli place_order --symbol BTCUSDT --side Buy --orderQty 0.01 --ordType Market"
      },
      {
        "title": "Place a limit sell (Coin-M futures)",
        "body": "phemex-cli place_order --symbol BTCUSD --side Sell --orderQty 10 --ordType Limit --price 100000 --contractType inverse"
      },
      {
        "title": "Buy spot",
        "body": "phemex-cli place_order --symbol BTCUSDT --side Buy --orderQty 10 --ordType Market --contractType spot --qtyType ByQuote"
      },
      {
        "title": "Check positions",
        "body": "phemex-cli get_positions --currency USDT"
      },
      {
        "title": "Setup",
        "body": "Create a Phemex account at https://phemex.com\nCreate an API key (Account → API Management)\nSet environment variables PHEMEX_API_KEY and PHEMEX_API_SECRET\nOptionally set PHEMEX_API_URL (defaults to testnet https://testnet-api.phemex.com for safety; set to https://api.phemex.com for real trading)\nOptionally set PHEMEX_MAX_ORDER_VALUE to limit maximum order size (USD)"
      }
    ],
    "body": "Phemex Trading\n\nTrade on Phemex via the phemex-cli tool. Supports USDT-M futures, Coin-M futures, and Spot markets.\n\nBefore you start\n\nEnsure you have the latest version installed:\n\nnpm install -g phemex-trade-mcp@latest\n\nHow to call tools\nphemex-cli <tool_name> --param1 value1 --param2 value2\n\n\nOr with JSON args:\n\nphemex-cli <tool_name> '{\"param1\":\"value1\",\"param2\":\"value2\"}'\n\n\nOutput is always JSON. Environment variables PHEMEX_API_KEY, PHEMEX_API_SECRET, and PHEMEX_API_URL are read automatically.\n\nContract types\n\nEvery tool accepts an optional --contractType flag:\n\nlinear (default) — USDT-M perpetual futures. Symbols end in USDT (e.g. BTCUSDT).\ninverse — Coin-M perpetual futures. Symbols end in USD (e.g. BTCUSD).\nspot — Spot trading. Symbols end in USDT (e.g. BTCUSDT). The server auto-prefixes s for the API.\nTools\nMarket data (no auth needed)\nget_ticker — 24hr price ticker. Example: phemex-cli get_ticker --symbol BTCUSDT\nget_orderbook — Order book (30 levels). Example: phemex-cli get_orderbook --symbol BTCUSDT\nget_klines — Candlestick data. Example: phemex-cli get_klines --symbol BTCUSDT --resolution 3600 --limit 100\nget_recent_trades — Recent trades. Example: phemex-cli get_recent_trades --symbol BTCUSDT\nget_funding_rate — Funding rate history. Example: phemex-cli get_funding_rate --symbol .BTCFR8H --limit 20\nAccount (read-only, auth required)\nget_account — Balance and margin info. Example: phemex-cli get_account --currency USDT\nget_spot_wallet — Spot wallet balances. Example: phemex-cli get_spot_wallet\nget_positions — Current positions with PnL. Example: phemex-cli get_positions --currency USDT\nget_open_orders — Open orders. Example: phemex-cli get_open_orders --symbol BTCUSDT\nget_order_history — Closed/filled orders. Example: phemex-cli get_order_history --symbol BTCUSDT --limit 50\nget_trades — Trade execution history. Example: phemex-cli get_trades --symbol BTCUSDT --limit 50\nTrading (auth required)\nplace_order — Place an order (Market, Limit, Stop, StopLimit). Key params: --symbol, --side (Buy/Sell), --orderQty, --ordType, --price (Limit/StopLimit), --stopPx (Stop/StopLimit), --timeInForce (GoodTillCancel/PostOnly/ImmediateOrCancel/FillOrKill), --reduceOnly, --posSide (Long/Short/Merged), --stopLoss, --takeProfit, --qtyType (spot only). orderQty units differ by contract type:\nlinear (USDT-M): orderQty = base currency amount (e.g. 0.01 = 0.01 BTC). To buy 10 USDT worth, calculate qty = 10 / current price.\ninverse (Coin-M): orderQty = number of contracts as integer (e.g. 10 = 10 contracts). Each contract has a fixed USD value (e.g. 1 USD/contract for BTCUSD).\nspot: depends on --qtyType. ByBase (default) = base currency (e.g. 0.01 = 0.01 BTC). ByQuote = quote currency (e.g. 50 = 50 USDT worth of BTC).\nExample: phemex-cli place_order --symbol BTCUSDT --side Buy --orderQty 0.01 --ordType Market\namend_order — Modify an open order. Example: phemex-cli amend_order --symbol BTCUSDT --orderID xxx --price 95000\ncancel_order — Cancel one order. Example: phemex-cli cancel_order --symbol BTCUSDT --orderID xxx\ncancel_all_orders — Cancel all orders for a symbol. Example: phemex-cli cancel_all_orders --symbol BTCUSDT\nset_leverage — Set leverage. Example: phemex-cli set_leverage --symbol BTCUSDT --leverage 10\nswitch_pos_mode — Switch OneWay/Hedged. Example: phemex-cli switch_pos_mode --symbol BTCUSDT --targetPosMode OneWay\nTransfers (auth required)\ntransfer_funds — Move funds between spot and futures. Example: phemex-cli transfer_funds --currency USDT --amount 100 --direction spot_to_futures\nget_transfer_history — Transfer history. Example: phemex-cli get_transfer_history --currency USDT --limit 20\nSafety rules\nAlways confirm before placing orders. Before calling place_order, show the user exactly what the order will do: symbol, side, quantity, type, price. Ask for confirmation.\nAlways confirm before cancelling all orders. Before calling cancel_all_orders, list the open orders first and confirm with the user.\nExplain leverage changes. Before calling set_leverage, explain the implications (higher leverage = higher liquidation risk).\nShow context before trading. Before suggesting a trade, show current positions and account balance so the user can make an informed decision.\nNever auto-trade. Do not place orders without explicit user instruction.\nCommon workflows\nCheck a price\nphemex-cli get_ticker --symbol BTCUSDT\n\nPlace a market buy (USDT-M futures)\nphemex-cli place_order --symbol BTCUSDT --side Buy --orderQty 0.01 --ordType Market\n\nPlace a limit sell (Coin-M futures)\nphemex-cli place_order --symbol BTCUSD --side Sell --orderQty 10 --ordType Limit --price 100000 --contractType inverse\n\nBuy spot\nphemex-cli place_order --symbol BTCUSDT --side Buy --orderQty 10 --ordType Market --contractType spot --qtyType ByQuote\n\nCheck positions\nphemex-cli get_positions --currency USDT\n\nSetup\nCreate a Phemex account at https://phemex.com\nCreate an API key (Account → API Management)\nSet environment variables PHEMEX_API_KEY and PHEMEX_API_SECRET\nOptionally set PHEMEX_API_URL (defaults to testnet https://testnet-api.phemex.com for safety; set to https://api.phemex.com for real trading)\nOptionally set PHEMEX_MAX_ORDER_VALUE to limit maximum order size (USD)"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/bubble501/phemex-trade",
    "publisherUrl": "https://clawhub.ai/bubble501/phemex-trade",
    "owner": "bubble501",
    "version": "1.1.2",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/phemex-trade",
    "downloadUrl": "https://openagent3.xyz/downloads/phemex-trade",
    "agentUrl": "https://openagent3.xyz/skills/phemex-trade/agent",
    "manifestUrl": "https://openagent3.xyz/skills/phemex-trade/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/phemex-trade/agent.md"
  }
}