一键导入
pmxt
Prediction market integration -- search, compare, and trade across pmxt-supported prediction market exchanges.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Prediction market integration -- search, compare, and trade across pmxt-supported prediction market exchanges.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | pmxt |
| description | Prediction market integration -- search, compare, and trade across pmxt-supported prediction market exchanges. |
| version | 0.3.0 |
| author | hermes-pmxt |
| license | MIT |
| metadata | {"hermes":{"tags":["prediction-markets","polymarket","kalshi","trading","finance","arbitrage"],"category":"research","requires_tools":["execute_code"]}} |
Real-time access to prediction markets for fact-checking, probability analysis, arbitrage detection, execution planning, and portfolio inspection.
Install from PyPI. This brings in pmxt>=2.50.0; do not instruct users to clone
the repo unless they are developing the integration.
pip install hermes-pmxt
# Check runtime status
python3 -c "from hermes_pmxt import pmxt_runtime_status; print(pmxt_runtime_status())"
Hosted mode (recommended): set PMXT_API_KEY env var. Local sidecar mode works
without an API key but requires pmxt-core running on localhost:3847.
If Hermes needs an explicit skill install, install this file to
~/.hermes/skills/pmxt/SKILL.md or use your Hermes skill/plugin installer with the
GitHub URL https://github.com/0xharryriddle/hermes-pmxt. Upgrade with
pip install --upgrade hermes-pmxt.
All tools are in the hermes_pmxt package. Import and call from execute_code:
from hermes_pmxt import pmxt_search, pmxt_quote, pmxt_order_book, pmxt_call
| Function | Auth | Description |
|---|---|---|
pmxt_search(query, exchange?, limit?, sort?, search_in?, slug?) | Mode-dep | Search markets |
pmxt_events(query, exchange?, limit?, sort?, search_in?, slug?) | Mode-dep | Search event groups |
pmxt_quote(keyword, exchange) | Mode-dep | Get YES/NO probabilities |
pmxt_order_book(outcome_id, exchange, limit?) | Mode-dep | Order book depth |
pmxt_ohlcv(outcome_id, exchange, res?, limit?) | Mode-dep | Price candles |
pmxt_trades(outcome_id, exchange, limit?) | Mode-dep | Recent trades |
pmxt_execution_price(outcome_id, exchange, side, amount) | Mode-dep | Slippage estimate |
pmxt_compare_market(query, exchanges?, limit?) | Mode-dep | Cross-exchange comparison |
pmxt_arbitrage_scan(query, exchanges?, threshold?) | Mode-dep | Cross-exchange spreads |
pmxt_balance(exchange) | Yes | Account balance |
pmxt_positions(exchange) | Yes | Open positions |
pmxt_portfolio(exchanges?) | Yes | Unified balances and positions |
pmxt_build_order(...) | Yes | Build/sign order (SAFE, does NOT submit) |
pmxt_submit_order(built, exchange, confirmed=True) | Yes | Submit a pre-built order |
pmxt_cancel_order(order_id, exchange, confirmed=True) | Yes | Cancel an open order |
pmxt_call(method, exchange, ...) | Varies | Generic PMXT API call |
pmxt_runtime_status() | No | Runtime diagnostics |
pmxt_list_exchanges() | No | Known/available exchanges |
When user asks about a broad topic or probability:
pmxt_events("topic_keyword", exchange="polymarket") -- discover event groupspmxt_quote("distinctive phrase", exchange="polymarket") for exact pricesSearch tips: Use broad keywords, not full sentences.
pmxt_search("Who will win the next presidential election?")pmxt_events("election", exchange="polymarket")Quote tips: Use a distinctive phrase from the market title.
pmxt_quote("bitcoin reach", "polymarket")Synthesize, don't dump raw numbers:
When comparing quotes across exchanges, check if YES(a) + NO(b) < 1.00. Use native router methods when available:
pmxt_call("compareMarketPrices", "router", params={"marketId": "...", "slug": "..."})
pmxt_call("fetchArbitrage", "router", params={"query": "..."})
NEVER place orders without explicit user confirmation.
Safer workflow:
pmxt_build_order(...) -- preview without submittingpmxt_submit_order(built, exchange, confirmed=True) -- only after approvalDirect pmxt_order() requires outcome IDs. Prefer pmxt_build_order() which
resolves friendly yes/no labels from previously searched markets.
All prices are 0.0-1.0 (probabilities). Always show as percentages to users.
When user asks whether exchanges disagree, run pmxt_compare_market(...) or
pmxt_call("compareMarketPrices", "router", ...) before describing spreads.
pmxt_portfolio() aggregates across exchanges. Partial errors are expected
when credentials are missing; summarize successful exchanges clearly.
When troubleshooting, run pmxt_runtime_status() to see mode, base URL,
pmxt version, and sidecar health.
pmxt_list_exchanges().from hermes_pmxt import pmxt_events, pmxt_search, pmxt_quote, pmxt_order_book
# 1. Discover events (broad topics)
events = pmxt_events("election", exchange="polymarket", limit=3)
# => each event has title, market_count, top_markets
# 2. Search specific markets
result = pmxt_search("bitcoin", exchange="polymarket", limit=5)
markets = result["data"]
# 3. Quote using a keyword from the title
quote = pmxt_quote("bitcoin reach", "polymarket")
# => {"yes_pct": "4.3%", "no_pct": "95.7%", ...}
# 4. Order book for an outcome
if markets and markets[0].get("outcomes"):
book = pmxt_order_book(markets[0]["outcomes"][0]["outcome_id"], "polymarket")
# => {"best_bid": 0.043, "best_ask": 0.044, "spread": 0.001}