Trade on Phemex (USDT-M futures, Coin-M futures, Spot) — place orders, manage positions, check balances, and query market data. Use when the user wants to (1...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install phemex-trade或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install phemex-trade⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/phemex-trade/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: phemex-trade description: Trade on Phemex (USDT-M futures, Coin-M futures, Spot) — place orders, manage positions, check balances, and query market data. Use when the user wants to (1) check crypto prices or market data on Phemex, (2) place, amend, or cancel orders, (3) view account balances or positions, (4) set leverage or switch position modes, (5) transfer funds between spot and futures wallets, or (6) any task involving the Phemex exchange. homepage: https://github.com/betta2moon/phemex-trade-mcp metadata: { "openclaw": { "emoji": "📈", "requires": { "bins": ["phemex-cli"], "env": ["PHEMEX_API_KEY", "PHEMEX_API_SECRET"] }, "primaryEnv": "PHEMEX_API_KEY", "install": [ { "id": "phemex-trade-mcp", "kind": "node", "package": "phemex-trade-mcp", "bins": ["phemex-cli"], "label": "Install Phemex CLI (node)", }, ], }, } ---
Trade on Phemex via the phemex-cli tool. Supports USDT-M futures, Coin-M futures, and Spot markets.
list_symbols tool — Discover all available trading pairs, filtered by contract type. No more guessing symbol names.~/.phemexrc) — Store API credentials persistently. No need to export env vars every session.--help for every tool — Run phemex-cli --help to see parameters, defaults, and usage examples inline.closeRp, fundingRateRr) are mapped to readable names (closePrice, fundingRate). Use --raw to get the original names.suggestion and tip fields with actionable guidance instead of raw API codes.Ensure you have the latest version installed:
npm install -g phemex-trade-mcp@latest
phemex-cli <tool_name> --param1 value1 --param2 value2
Or with JSON args:
phemex-cli <tool_name> '{"param1":"value1","param2":"value2"}'
Output is always JSON. Credentials are loaded from environment variables or ~/.phemexrc (see Setup).
Every tool supports --help with full parameter docs and examples:
phemex-cli place_order --help
Output:
Usage: phemex-cli place_order [options]
Place an order (Market, Limit, Stop, StopLimit)
Required Parameters:
--symbol <string> Trading pair (e.g. BTCUSDT)
--side <string> Buy or Sell
--orderQty <number> Quantity. linear: base amount (0.01 = 0.01 BTC). ...
--ordType <string> Order type: Market, Limit, Stop, StopLimit
Optional Parameters:
--price <number> Limit price (required for Limit/StopLimit)
--timeInForce <string> GoodTillCancel, PostOnly, ... [default: GoodTillCancel]
--reduceOnly <boolean> Only reduce position [default: false]
...
Examples:
phemex-cli place_order --symbol BTCUSDT --side Buy --orderQty 0.01 --ordType Market
phemex-cli place_order --symbol BTCUSDT --side Sell --orderQty 0.01 --ordType Limit --price 90000 --timeInForce PostOnly
More help examples:
phemex-cli get_ticker --help # see params for price ticker
phemex-cli get_klines --help # see resolution values for candlesticks
phemex-cli set_leverage --help # see leverage param format
phemex-cli transfer_funds --help # see direction values
phemex-cli list_symbols --help # see contractType filter
By default, output uses readable field names:
phemex-cli get_ticker --symbol BTCUSDT
{
"closePrice": "70549.9",
"openPrice": "70192.7",
"highPrice": "70750",
"lowPrice": "69160",
"markPrice": "70549.9",
"fundingRate": "-0.00003417",
"volume": "5303.525",
"turnover": "371204351.5978"
}
Use --raw to get original API field names (for scripts that depend on old format):
phemex-cli get_ticker --symbol BTCUSDT --raw
{
"closeRp": "70549.9",
"openRp": "70192.7",
"highRp": "70750",
"lowRp": "69160",
"markPriceRp": "70549.9",
"fundingRateRr": "-0.00003417",
"volumeRq": "5303.525",
"turnoverRv": "371204351.5978"
}
Field name mapping reference:
| Suffix | Meaning | Example | Mapped to | |--------|---------|---------|-----------| | Rp | Real Price | closeRp | closePrice | | Rv | Real Value | accountBalanceRv | accountBalance | | Rr | Real Rate | fundingRateRr | fundingRate | | Rq | Real Quantity | volumeRq | volume |
Every tool accepts an optional --contractType flag:
linear (default) — USDT-M perpetual futures. Symbols end in USDT (e.g. BTCUSDT).inverse — Coin-M perpetual futures. Symbols end in USD (e.g. BTCUSD).spot — Spot trading. Symbols end in USDT (e.g. BTCUSDT). The server auto-prefixes s for the API.get_ticker — 24hr price ticker. Example: phemex-cli get_ticker --symbol BTCUSDTget_orderbook — Order book (30 levels). Example: phemex-cli get_orderbook --symbol BTCUSDTget_klines — Candlestick data. Example: phemex-cli get_klines --symbol BTCUSDT --resolution 3600 --limit 100get_recent_trades — Recent trades. Example: phemex-cli get_recent_trades --symbol BTCUSDTget_funding_rate — Funding rate history. Example: phemex-cli get_funding_rate --symbol .BTCFR8H --limit 20get_account — Balance and margin info. Example: phemex-cli get_account --currency USDTget_spot_wallet — Spot wallet balances. Example: phemex-cli get_spot_walletget_positions — Current positions with PnL. Example: phemex-cli get_positions --currency USDTget_open_orders — Open orders. Example: phemex-cli get_open_orders --symbol BTCUSDTget_order_history — Closed/filled orders. Example: phemex-cli get_order_history --symbol BTCUSDT --limit 50get_trades — Trade execution history. Example: phemex-cli get_trades --symbol BTCUSDT --limit 50place_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: - linear (USDT-M): orderQty = base currency amount (e.g. 0.01 = 0.01 BTC). To buy 10 USDT worth, calculate qty = 10 / current price. - inverse (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). - spot: 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). - Example: phemex-cli place_order --symbol BTCUSDT --side Buy --orderQty 0.01 --ordType Market
amend_order — Modify an open order. Example: phemex-cli amend_order --symbol BTCUSDT --orderID xxx --price 95000cancel_order — Cancel one order. Example: phemex-cli cancel_order --symbol BTCUSDT --orderID xxxcancel_all_orders — Cancel all orders for a symbol. Example: phemex-cli cancel_all_orders --symbol BTCUSDTset_leverage — Set leverage. Example: phemex-cli set_leverage --symbol BTCUSDT --leverage 10switch_pos_mode — Switch OneWay/Hedged. Example: phemex-cli switch_pos_mode --symbol BTCUSDT --targetPosMode OneWay...
安装 Phemex Trade 后,可以对 AI 说这些话来触发它
Help me get started with Phemex Trade
Explains what Phemex Trade does, walks through the setup, and runs a quick demo based on your current project
Use Phemex Trade to trade on Phemex (USDT-M futures, Coin-M futures, Spot) — place orde...
Invokes Phemex Trade with the right parameters and returns the result directly in the conversation
What can I do with Phemex Trade in my finance & investment workflow?
Lists the top use cases for Phemex Trade, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/phemex-trade/ 目录(个人级,所有项目可用),或 .claude/skills/phemex-trade/(项目级)。重启 AI 客户端后,用 /phemex-trade 主动调用,或让 AI 根据上下文自动发现并使用。
Phemex Trade 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Phemex Trade 可免费安装使用。请查阅仓库了解许可证信息。
Trade on Phemex (USDT-M futures, Coin-M futures, Spot) — place orders, manage positions, check balances, and query market data. Use when the user wants to (1...
Phemex Trade 属于「Finance & Investment」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my finance & investment tasks using Phemex Trade
Identifies repetitive steps in your workflow and sets up Phemex Trade to handle them automatically