moonpay-prediction-market

Trade on prediction markets (e.g., Polymarket, Kalshi): search markets, buy or sell positions, track P&L, and view trade history.

Last repository push
GitHub Stars
112
Forks
31
Issues / PRs
26

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "moonpay-prediction-market" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-113a705fef3e4fee0ea37247cc4c8e2fe5b1474416403be8475a602ebf977f84. Verify the upstream source and version against https://github.com/moonpay/skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Trade on prediction markets (e.g., Polymarket, Kalshi): search markets, buy or sell positions, track P&L, and view trade history.

0 Downloads

Introduction source: third_party · moonpay · 0.0.1 Reference

SkillPi interpretation

Tasks
Trade on prediction markets (Polymarket, Kalshi). Search markets, buy/sell positions, track PnL, and view trade history.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
1. Authenticate: `mp login --email <email>` then `mp verify --email <email> --code <code>` 2. Have a local wallet: `mp wallet list` (create with `mp wallet create --name "main"` if needed) 3. Register your wallet with the provider (one-time setup): ```bash
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: moonpay-prediction-market
description: Trade on prediction markets (Polymarket, Kalshi). Search markets, buy/sell positions, track PnL, and view trade history.
tags: [trading, prediction-market, polymarket, kalshi]

Prediction markets

Goal

Search prediction markets, buy and sell outcome shares, track positions and PnL.

Supports two providers:

  • Polymarket — runs on Polygon (USDC.e). Requires an EVM wallet.
  • Kalshi — runs on Solana (USDC). Requires a Solana wallet.

Prerequisites

  1. Authenticate: mp login --email <email> then mp verify --email <email> --code <code>
  2. Have a local wallet: mp wallet list (create with mp wallet create --name "main" if needed)
  3. Register your wallet with the provider (one-time setup):
# For Polymarket (use your EVM/Polygon address)
mp prediction-market user create --provider polymarket --wallet <evm-address>

# For Kalshi (use your Solana address)
mp prediction-market user create --provider kalshi --wallet <solana-address>
  1. Fund the wallet — Polymarket needs USDC.e on Polygon, Kalshi needs USDC on Solana. See the moonpay-fund-polymarket or moonpay-buy-crypto skills.

Browse and research markets

# Search markets by keyword
mp prediction-market market search --provider polymarket --query "bitcoin" --limit 10

# Get trending markets (sorted by 24h volume, min $150K)
mp prediction-market market trending list --provider polymarket --limit 10

# Browse market categories/tags
mp prediction-market market tag list --provider polymarket

# Filter markets by tag
mp prediction-market market search --provider polymarket --query "*" --tagIds "crypto,politics"

# Get full event details (all markets, outcomes, prices)
mp prediction-market market event retrieve --provider polymarket --slug <event-slug>

# Check current price for an outcome token
mp prediction-market market price retrieve --provider polymarket --tokenId <token-id>

# View price history for an outcome
mp prediction-market market price-history list --provider polymarket --tokenId <token-id> --interval 1w

Buy and sell positions

# Buy shares of an outcome
mp prediction-market position buy \
  --wallet main \
  --provider polymarket \
  --tokenId <outcome-token-id> \
  --price 0.65 \
  --size 100

# Sell shares
mp prediction-market position sell \
  --wallet main \
  --provider polymarket \
  --tokenId <outcome-token-id> \
  --price 0.70 \
  --size 50

Key concepts:

  • tokenId comes from outcomeTokens[].tokenId in market search results
  • price is 0-1 (e.g., 0.65 = 65 cents per share, implies 65% probability)
  • size is the number of shares
  • Cost = price x size (e.g., 0.65 x 100 = $65 USDC)
  • If the outcome resolves YES, each share pays $1. Profit = (1 - price) x size

Track positions and performance

# View open positions
mp prediction-market position list --provider polymarket --wallet <address>

# View closed positions
mp prediction-market position list --provider polymarket --wallet <address> --status closed

# Get PnL summary
mp prediction-market pnl retrieve --provider polymarket --wallet <address>

# View trade history
mp prediction-market trade list --provider polymarket --wallet <address>

# View all activity (trades, splits, merges, redemptions)
mp prediction-market activity list --provider polymarket --wallet <address>

Workflow

  1. Discover: Search or browse trending markets.
  2. Research: Get event details, check prices, review price history.
  3. Trade: Buy shares on outcomes you believe are mispriced.
  4. Monitor: Track positions and PnL.
  5. Exit: Sell positions when your thesis changes, or wait for resolution.

Example: trade a market

# 1. Find a market
mp prediction-market market search --provider polymarket --query "bitcoin 100k"

# 2. Get event details (note the outcomeTokens)
mp prediction-market market event retrieve --provider polymarket --slug <slug-from-search>

# 3. Check price history
mp prediction-market market price-history list --provider polymarket --tokenId <yes-token-id> --interval 1w

# 4. Buy 50 "Yes" shares at 40 cents
mp prediction-market position buy --wallet main --provider polymarket --tokenId <yes-token-id> --price 0.40 --size 50

# 5. Check your position
mp prediction-market position list --provider polymarket --wallet <address>

# 6. Sell later at a higher price
mp prediction-market position sell --wallet main --provider polymarket --tokenId <yes-token-id> --price 0.60 --size 50

Price history intervals

Interval Description
1hr Last hour
1d Last day
1w Last week
1m Last month
max All time

Tips

  • Use mp --json prediction-market ... for programmatic output
  • Markets with higher volume and liquidity have tighter spreads
  • Check acceptingOrders — closed markets cannot be traded
  • negRisk markets use a different settlement framework — the CLI handles this automatically
  • Polymarket uses USDC.e on Polygon; Kalshi uses USDC on Solana

Related skills

  • moonpay-fund-polymarket — Fund your Polymarket wallet with USDC.e and POL
  • moonpay-check-wallet — Check Polygon/Solana balances
  • moonpay-swap-tokens — Bridge tokens to Polygon
  • moonpay-trading-automation — Automate trading strategies

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value88/100

Highlights

  • 支持 Polymarket 和 Kalshi 两大主流预测市场平台的完整交易闭环
  • 提供从市场发现、研究、交易到持仓跟踪的全流程指导
  • 面向真实交易需求用户,解决跨平台操作和 PnL 跟踪痛点
Trigger Precision92/100

Highlights

  • description 清晰描述核心功能(交易、搜索、买卖、跟踪盈亏)
  • tags 覆盖主要关键词(trading, prediction-market, polymarket, kalshi)
  • 触发词边界清晰,无明显歧义或重叠风险
Structure and Standards85/100

Areas to improve

  • 缺少显式 When to Use 章节 Reported severity: Minor

    文档未设置显式 When to Use 章节说明适用场景

    Recommendation: 建议在 Goal 后增加 When to Use 章节,明确说明适合哪些用户群体和使用时机

Highlights

  • Phase/步骤清晰(Prerequisites -> Browse -> Buy/Sell -> Track -> Workflow)
  • 提供完整端到端交易示例
  • frontmatter 完整且单文件长度合理
Execution Reliability88/100

Highlights

  • 工具来源明确(mp CLI),参数说明清晰
  • 覆盖主要异常场景(钱包认证、资金要求、市场状态检查)
  • 不可逆操作有参数确认机制,提及 negRisk 市场自动处理
Evidence Verifiability (mean of the first four)88/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

1. Authenticate: `mp login --email <email>` then `mp verify --email <email> --code <code>` 2. Have a local wallet: `mp wallet list` (create with `mp wallet create --name "main"` if needed) 3. Register your wallet with the provider (one-time setup): ```bash

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.