AGENT SKILL

myriad-prediction-markets

AI trading agent for Myriad prediction markets on BNB Chain. Discover live markets, execute buy/sell trades, monitor portfolio exposure, claim winnings, and run as an MCP server for multi-agent workflows. Use when the user wants to trade prediction markets on BNB Chain, find market opportunities by keyword, or automate a trading + claims loop.

License 许可
MIT
最近更新
2026-10-08
Stars
★ 0
Forks
0

01 前言 Front Matter

name
myriad-prediction-markets
tags
[ "prediction-markets", "trading", "bnb-chain", "mcp", "defi" ]
description
AI trading agent for Myriad prediction markets on BNB Chain. Discover live markets, execute buy/sell trades, monitor portfolio exposure, claim winnings, and run as an MCP server for multi-agent workflows. Use when the user wants to trade prediction markets on BNB Chain, find market opportunities by keyword, or automate a trading + claims loop.

02 资源文件 2

03 SKILL.md 正文

Myriad — AI Prediction Market Trading Agent

Overview

Myriad CLI gives AI agents a full trading loop on Myriad prediction markets running on BNB Chain: discover markets, make decisions, execute trades, and claim winnings. Supports MCP server mode for multi-agent orchestration.

Chain: BNB Chain (chainId=56) Settlement token: USDT / USD1 Default slippage: 0.05 (trades), 0.005 (swaps)

Installation

npm i -g @myriadmarkets/cli

Setup

# 1. Create and fund a MoonPay wallet (see Wallet section below)
# 2. Configure Myriad with your private key
myriad wallet setup        # interactive — encrypts key to file + OS keychain
# OR
export MYRIAD_PRIVATE_KEY="0x..."   # env var

# 3. Deposit funds
myriad wallet deposit

Config resolves in order: CLI flags → env vars / .env → ~/.config/myriad/config.json → built-in defaults.

Key Commands

Markets

# List open markets sorted by volume
myriad markets list --state open --order volume --sort desc

# Filter by keyword
myriad markets list --keyword "bitcoin" --state open --limit 10

# JSON output for agent pipelines
myriad markets list --state open --json

Trading

# Buy a position (dry-run first)
myriad trade buy --market-id 164 --outcome-id 0 --value 25 --dry-run
myriad trade buy --market-id 164 --outcome-id 0 --value 25

# Sell a position
myriad trade sell --market-id 164 --outcome-id 0 --value 25 --dry-run
myriad trade sell --market-id 164 --outcome-id 0 --value 25

Always use --dry-run before write operations — preview the transaction without execution.

Portfolio & Wallet

# View open positions and exposure
myriad portfolio

# Check balances
myriad wallet balances

# Swap tokens (auto-runs when USDT balance is insufficient)
myriad swap

Claims

# Sweep all resolved winning positions
myriad claim all

MCP Server

# Run as MCP server for Claude Code / multi-agent orchestration
myriad mcp

MCP config for Claude Code (~/.claude/settings.json):

{
  "mcpServers": {
    "myriad": {
      "command": "myriad",
      "args": ["mcp"]
    }
  }
}

Skills (Claude / OpenClaw)

# Install Myriad skills into Claude Code
myriad skills install --target claude

Key Flags

Flag Description
--dry-run Preview transaction without executing
--json Machine-readable output for agent pipelines
--keyword <term> Filter markets by topic
--state <state> Filter by market status: open, resolved, etc.
--order <field> Sort field (e.g. volume)
--sort <dir> asc or desc
--limit <n> Cap result count

Agent Patterns

Event-Driven Trader

Spot a news catalyst → scan markets → stage trade:

myriad markets list --keyword "fed rate" --state open --json
# → review markets and odds
myriad trade buy --market-id <id> --outcome-id <id> --value 50 --dry-run
# → confirm looks right
myriad trade buy --market-id <id> --outcome-id <id> --value 50

Portfolio Monitor

Check exposure before each trading cycle:

myriad portfolio
myriad wallet balances

Winnings Sweeper

Automate claims on resolved markets:

myriad claim all

Multi-Agent Desk

Run scout + execution agents via MCP:

myriad mcp   # Claude Code connects via MCP tools

Wallet Management with MoonPay

Myriad trades on BNB Chain and settles in USDT. Use MoonPay to create a BNB Chain wallet, fund it, and export the key for Myriad.

npm install -g @moonpay/cli
mp login

# Create a dedicated trading wallet
mp wallet create --name "myriad-agent"
mp wallet retrieve --wallet "myriad-agent"   # note your BNB Chain address

Fund with USDT on BNB Chain

# Buy USDT directly on BNB Chain
mp buy --token usdt_bsc --amount 100 --wallet <bnb-address> --email <email>

# Or bridge USDT from another chain
mp token bridge \
  --from-wallet myriad-agent --from-chain ethereum \
  --from-token 0xdac17f958d2ee523a2206206994597c13d831ec7 \
  --from-amount 100 \
  --to-chain bsc \
  --to-token 0x55d398326f99059ff775485246999027b3197955

Export Key for Myriad

# ⚠️ Your private key gives full access to your wallet.
# Never share it, commit it to version control, or reuse it across services.
mp wallet export --wallet "myriad-agent"
# Copy EVM private key → use in myriad wallet setup or MYRIAD_PRIVATE_KEY

Check Balance

mp token balance list --wallet <bnb-address> --chain bsc

Withdraw Winnings to Bank

mp virtual-account offramp create \
  --name "Offramp" \
  --bankAccountId <bank-account-id> \
  --stablecoin usdc \
  --chain bsc

End-to-End Workflow

  1. npm i -g @myriadmarkets/cli
  2. mp wallet create --name "myriad-agent"
  3. mp buy --token usdt_bsc --amount 100 --wallet <address> --email <email>
  4. mp wallet export --wallet "myriad-agent" → copy private key
  5. myriad wallet setup → paste key (stored encrypted)
  6. myriad markets list --state open --order volume --sort desc
  7. myriad trade buy --market-id <id> --outcome-id <id> --value 25 --dry-run
  8. myriad trade buy --market-id <id> --outcome-id <id> --value 25
  9. myriad claim all — sweep resolved positions
  10. mp virtual-account offramp create — withdraw winnings

Resources

Related Skills

  • moonpay-prediction-market — Polymarket and Kalshi trading (alternative platforms)
  • moonpay-check-wallet — Verify BNB Chain balances before trading
  • moonpay-swap-tokens — Swap tokens to USDT for Myriad trades

04 同仓库更多 Skills

Solizardking
Solizardking/skillhub-main

zkrouter

Self-hosted OpenAI-compatible LLM router — smart tier-based routing, ZK-stamped routing decisions, mode overrides, free OpenRouter at install via the Birth bot. Save 60-80% on inference costs by routing to the cheapest capable model across 12+ OpenRouter models.

★ 0
Solizardking
Solizardking/skillhub-main

zk

For custom ZK Solana programs and privacy-preserving applications to prevent double spending. Guide to integrate rent-free nullifier PDAs for double-spend prevention.

★ 0
Solizardking
Solizardking/skillhub-main

zk-omni-messaging

Zero-knowledge omnichain messaging between Robinhood Chain and Solana using CheshireZkOmniMessenger (msgType 4) with nullifier anti-replay and the zk-omni-relayer service.

★ 0
Solizardking
Solizardking/skillhub-main

zerion-wallet-data

Use when the user asks to check a wallet's portfolio, token balances, DeFi positions, PnL, transaction history, or NFTs. Provides interpreted on-chain data across 40+ EVM chains and Solana via x402 pay-per-request or API key — no raw RPC decoding needed.

★ 0
Solizardking
Solizardking/skillhub-main

youtube-clipper

YouTube 视频智能剪辑工具。下载视频和字幕,AI 分析生成精细章节(几分钟级别), 用户选择片段后自动剪辑、翻译字幕为中英双语、烧录字幕到视频,并生成总结文案。 使用场景:当用户需要剪辑 YouTube 视频、生成短视频片段、制作双语字幕版本时。 关键词:视频剪辑、YouTube、字幕翻译、双语字幕、视频下载、clip video

★ 0
Solizardking
Solizardking/skillhub-main

yield-optimization

Multi-chain yield optimization via yield.xyz (StakeKit). Discover 2,988+ yield opportunities across 75+ blockchains, build deposit/withdrawal transactions with shell scripts, and sign them with a MoonPay wallet. Use when the user wants to earn yield, find the best lending or staking rate, enter/exit a position, or check portfolio balances.

★ 0