[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71H2G74DWRME6Y4FEA73MCJ":3,"skill-same:01M71H2G74DWRME6Y4FEA73MCJ":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":22,"publishedAt":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":6,"ownerHtmlUrl":45,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":46,"install":47,"resources":60},"01M71H2G74DWRME6Y4FEA73MCJ","trading-manifold",null,"Place bets on Manifold Markets using their REST API","JSGforever\u002Fskillguard","JSGforever","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F85541948?v=4","01M71FQD3E132VMR5F4TAYX3YS","01M71FQD4DYW0XJ4XQ4YQH75Y9",2,"GPL-3.0","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__alsk1992--trading-manifold\u002FSKILL.md",[17],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",[23,24,25,26,27,28,29,30],"manifold","trading manifold","trading","api","REST","rest api","markets","manifold markets","2026-11-10 10:12:30",false,"---\nname: trading-manifold\ndescription: \"Place bets on Manifold Markets using their REST API\"\nemoji: \"🎲\"\ngates:\n  envs:\n    - MANIFOLD_API_KEY\n---\n\n# Manifold Markets Trading Skill\n\nReal, working methods to bet on Manifold Markets using Mana (play money that can be donated to charity).\n\n## Setup\n\nGet your API key from: https:\u002F\u002Fmanifold.markets\u002Fprofile (API key section)\n\n```python\nimport os\nimport requests\n\nAPI_URL = \"https:\u002F\u002Fapi.manifold.markets\u002Fv0\"\nAPI_KEY = os.getenv(\"MANIFOLD_API_KEY\")\n\ndef headers():\n    return {\n        \"Authorization\": f\"Key {API_KEY}\",\n        \"Content-Type\": \"application\u002Fjson\"\n    }\n```\n\n## Search Markets\n\n```python\ndef search_markets(query: str, limit: int = 10):\n    \"\"\"Search for markets\"\"\"\n    r = requests.get(f\"{API_URL}\u002Fsearch-markets\", params={\n        \"term\": query,\n        \"limit\": limit,\n        \"filter\": \"open\",\n        \"sort\": \"liquidity\"\n    })\n    r.raise_for_status()\n    markets = r.json()\n\n    for m in markets[:5]:\n        prob = m.get(\"probability\", 0.5)\n        print(f\"\\nMarket: {m['question']}\")\n        print(f\"ID: {m['id']}\")\n        print(f\"Probability: {prob*100:.1f}%\")\n        print(f\"URL: {m.get('url', '')}\")\n\n    return markets\n\nmarkets = search_markets(\"AI\")\n```\n\n## Get Market by ID or Slug\n\n```python\ndef get_market(id_or_slug: str):\n    \"\"\"Get market details\"\"\"\n    # Try by ID first\n    r = requests.get(f\"{API_URL}\u002Fmarket\u002F{id_or_slug}\")\n    if r.status_code == 404:\n        # Try by slug\n        r = requests.get(f\"{API_URL}\u002Fslug\u002F{id_or_slug}\")\n\n    r.raise_for_status()\n    return r.json()\n\nmarket = get_market(\"will-gpt5-be-released-before-2025\")\nprint(f\"Question: {market['question']}\")\nprint(f\"Probability: {market.get('probability', 0.5)*100:.1f}%\")\n```\n\n## Place a Bet\n\n```python\ndef place_bet(\n    market_id: str,\n    amount: int,           # Mana amount to bet\n    outcome: str = \"YES\",  # \"YES\" or \"NO\"\n    limit_prob: float = None  # Optional limit order probability\n):\n    \"\"\"\n    Place a bet on Manifold\n\n    Args:\n        market_id: The market ID (not slug!)\n        amount: Amount of Mana to bet\n        outcome: \"YES\" or \"NO\"\n        limit_prob: Optional - if set, creates a limit order at this probability\n    \"\"\"\n    payload = {\n        \"contractId\": market_id,\n        \"amount\": amount,\n        \"outcome\": outcome\n    }\n\n    if limit_prob is not None:\n        payload[\"limitProb\"] = limit_prob\n\n    r = requests.post(f\"{API_URL}\u002Fbet\", headers=headers(), json=payload)\n    r.raise_for_status()\n    result = r.json()\n\n    print(f\"Bet placed!\")\n    print(f\"Shares: {result.get('shares', 0):.2f}\")\n    print(f\"Probability after: {result.get('probAfter', 0)*100:.1f}%\")\n\n    return result\n\n# Market bet - buys at current price\nresult = place_bet(\n    market_id=\"abc123\",\n    amount=100,  # 100 Mana\n    outcome=\"YES\"\n)\n\n# Limit order - only fills at 40% or below\nresult = place_bet(\n    market_id=\"abc123\",\n    amount=100,\n    outcome=\"YES\",\n    limit_prob=0.40\n)\n```\n\n## Cancel Bet (Limit Orders Only)\n\n```python\ndef cancel_bet(bet_id: str):\n    \"\"\"Cancel a limit order\"\"\"\n    r = requests.post(f\"{API_URL}\u002Fbet\u002Fcancel\u002F{bet_id}\", headers=headers())\n    r.raise_for_status()\n    return True\n\ncancel_bet(\"bet123\")\n```\n\n## Sell Shares\n\n```python\ndef sell_shares(\n    market_id: str,\n    outcome: str = \"YES\",\n    shares: float = None  # None = sell all\n):\n    \"\"\"\n    Sell shares in a market\n\n    Args:\n        market_id: The market ID\n        outcome: \"YES\" or \"NO\" - which shares to sell\n        shares: Number of shares to sell (None = all)\n    \"\"\"\n    payload = {\n        \"contractId\": market_id,\n        \"outcome\": outcome\n    }\n\n    if shares is not None:\n        payload[\"shares\"] = shares\n\n    r = requests.post(f\"{API_URL}\u002Fmarket\u002F{market_id}\u002Fsell\", headers=headers(), json=payload)\n    r.raise_for_status()\n    return r.json()\n\n# Sell all YES shares\nsell_shares(\"abc123\", \"YES\")\n\n# Sell specific amount\nsell_shares(\"abc123\", \"YES\", shares=50.0)\n```\n\n## Get Your Bets\n\n```python\ndef get_my_bets(market_id: str = None):\n    \"\"\"Get your bets\"\"\"\n    params = {}\n    if market_id:\n        params[\"contractId\"] = market_id\n\n    r = requests.get(f\"{API_URL}\u002Fbets\", headers=headers(), params=params)\n    r.raise_for_status()\n    bets = r.json()\n\n    for b in bets[:10]:\n        print(f\"Bet: {b['outcome']} {b['amount']}M @ {b.get('probBefore', 0)*100:.0f}%\")\n\n    return bets\n\nbets = get_my_bets()\n```\n\n## Get Your Positions\n\n```python\ndef get_positions():\n    \"\"\"Get current positions across all markets\"\"\"\n    # Get user info first\n    r = requests.get(f\"{API_URL}\u002Fme\", headers=headers())\n    r.raise_for_status()\n    user = r.json()\n\n    # Get bets to calculate positions\n    r = requests.get(f\"{API_URL}\u002Fbets\", headers=headers(), params={\"limit\": 1000})\n    bets = r.json()\n\n    # Aggregate by market\n    positions = {}\n    for bet in bets:\n        mid = bet[\"contractId\"]\n        if mid not in positions:\n            positions[mid] = {\"yes\": 0, \"no\": 0, \"invested\": 0}\n\n        if bet[\"outcome\"] == \"YES\":\n            positions[mid][\"yes\"] += bet.get(\"shares\", 0)\n        else:\n            positions[mid][\"no\"] += bet.get(\"shares\", 0)\n\n        if not bet.get(\"isSold\", False):\n            positions[mid][\"invested\"] += bet[\"amount\"]\n\n    return positions, user.get(\"balance\", 0)\n\npositions, balance = get_positions()\nprint(f\"Balance: {balance} Mana\")\nfor mid, pos in positions.items():\n    if pos[\"yes\"] > 0 or pos[\"no\"] > 0:\n        print(f\"Market {mid}: YES={pos['yes']:.1f}, NO={pos['no']:.1f}\")\n```\n\n## Get Balance\n\n```python\ndef get_balance():\n    \"\"\"Get your Mana balance\"\"\"\n    r = requests.get(f\"{API_URL}\u002Fme\", headers=headers())\n    r.raise_for_status()\n    user = r.json()\n    return user.get(\"balance\", 0)\n\nbalance = get_balance()\nprint(f\"Balance: {balance} Mana\")\n```\n\n## Complete Trading Bot Example\n\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"\nManifold arbitrage bot - finds mispriced markets\n\"\"\"\n\nimport os\nimport time\nimport requests\n\nAPI_URL = \"https:\u002F\u002Fapi.manifold.markets\u002Fv0\"\nAPI_KEY = os.getenv(\"MANIFOLD_API_KEY\")\n\ndef h():\n    return {\"Authorization\": f\"Key {API_KEY}\", \"Content-Type\": \"application\u002Fjson\"}\n\ndef search(query):\n    r = requests.get(f\"{API_URL}\u002Fsearch-markets\",\n                    params={\"term\": query, \"limit\": 20, \"filter\": \"open\"})\n    return r.json()\n\ndef bet(market_id, amount, outcome, limit_prob=None):\n    payload = {\"contractId\": market_id, \"amount\": amount, \"outcome\": outcome}\n    if limit_prob:\n        payload[\"limitProb\"] = limit_prob\n    r = requests.post(f\"{API_URL}\u002Fbet\", headers=h(), json=payload)\n    return r.json()\n\ndef get_balance():\n    r = requests.get(f\"{API_URL}\u002Fme\", headers=h())\n    return r.json().get(\"balance\", 0)\n\n# Strategy: Buy extreme probabilities (likely to revert)\nMIN_LIQUIDITY = 1000  # Only trade liquid markets\n\nwhile True:\n    try:\n        balance = get_balance()\n        print(f\"\\nBalance: {balance} Mana\")\n\n        # Search trending markets\n        markets = search(\"2024\")\n\n        for m in markets:\n            prob = m.get(\"probability\", 0.5)\n            liquidity = m.get(\"totalLiquidity\", 0)\n\n            if liquidity \u003C MIN_LIQUIDITY:\n                continue\n\n            # Buy YES on very low probability (\u003C 10%)\n            if prob \u003C 0.10:\n                print(f\"LOW: {m['question'][:50]} at {prob*100:.1f}%\")\n                if balance > 50:\n                    bet(m[\"id\"], 50, \"YES\", limit_prob=0.15)\n\n            # Buy NO on very high probability (> 90%)\n            elif prob > 0.90:\n                print(f\"HIGH: {m['question'][:50]} at {prob*100:.1f}%\")\n                if balance > 50:\n                    bet(m[\"id\"], 50, \"NO\", limit_prob=0.85)\n\n        time.sleep(300)  # Check every 5 minutes\n\n    except Exception as e:\n        print(f\"Error: {e}\")\n        time.sleep(60)\n```\n\n## Multiple Choice Markets\n\n```python\ndef bet_multiple_choice(market_id: str, answer_id: str, amount: int):\n    \"\"\"Bet on a multiple choice market\"\"\"\n    payload = {\n        \"contractId\": market_id,\n        \"amount\": amount,\n        \"answerId\": answer_id\n    }\n\n    r = requests.post(f\"{API_URL}\u002Fbet\", headers=headers(), json=payload)\n    r.raise_for_status()\n    return r.json()\n\n# Get market with answers\nmarket = get_market(\"who-will-win-2024-election\")\nfor answer in market.get(\"answers\", []):\n    print(f\"{answer['text']}: {answer['probability']*100:.1f}% (ID: {answer['id']})\")\n\n# Bet on specific answer\nbet_multiple_choice(\"market123\", \"answer456\", 100)\n```\n\n## Create a Market\n\n```python\ndef create_market(\n    question: str,\n    description: str = \"\",\n    close_time: int = None,  # Unix timestamp\n    initial_prob: float = 0.5,\n    ante: int = 100  # Initial liquidity\n):\n    \"\"\"Create a new binary market\"\"\"\n    payload = {\n        \"outcomeType\": \"BINARY\",\n        \"question\": question,\n        \"description\": description,\n        \"initialProb\": int(initial_prob * 100),\n        \"ante\": ante\n    }\n\n    if close_time:\n        payload[\"closeTime\"] = close_time * 1000  # Milliseconds\n\n    r = requests.post(f\"{API_URL}\u002Fmarket\", headers=headers(), json=payload)\n    r.raise_for_status()\n    return r.json()\n\n# Create market\nnew_market = create_market(\n    question=\"Will it rain tomorrow in NYC?\",\n    initial_prob=0.3,\n    ante=100\n)\nprint(f\"Created: {new_market['url']}\")\n```\n\n## Important Notes\n\n1. **Mana is play money** - Can be donated to charity\n2. **No limit on bets** - Unlike real money markets\n3. **Market maker AMM** - Prices move based on bets\n4. **Limit orders** - Use `limitProb` for better prices\n5. **API rate limits** - Be gentle, ~60 requests\u002Fminute\n6. **Shares ≠ Mana** - Shares vary based on probability\n","# Manifold Markets Trading Skill\n\nReal, working methods to bet on Manifold Markets using Mana (play money that can be donated to charity).\n\n## Setup\n\nGet your API key from: https:\u002F\u002Fmanifold.markets\u002Fprofile (API key section)\n\n```python\nimport os\nimport requests\n\nAPI_URL = \"https:\u002F\u002Fapi.manifold.markets\u002Fv0\"\nAPI_KEY = os.getenv(\"MANIFOLD_API_KEY\")\n\ndef headers():\n    return {\n        \"Authorization\": f\"Key {API_KEY}\",\n        \"Content-Type\": \"application\u002Fjson\"\n    }\n```\n\n## Search Markets\n\n```python\ndef search_markets(query: str, limit: int = 10):\n    \"\"\"Search for markets\"\"\"\n    r = requests.get(f\"{API_URL}\u002Fsearch-markets\", params={\n        \"term\": query,\n        \"limit\": limit,\n        \"filter\": \"open\",\n        \"sort\": \"liquidity\"\n    })\n    r.raise_for_status()\n    markets = r.json()\n\n    for m in markets[:5]:\n        prob = m.get(\"probability\", 0.5)\n        print(f\"\\nMarket: {m['question']}\")\n        print(f\"ID: {m['id']}\")\n        print(f\"Probability: {prob*100:.1f}%\")\n        print(f\"URL: {m.get('url', '')}\")\n\n    return markets\n\nmarkets = search_markets(\"AI\")\n```\n\n## Get Market by ID or Slug\n\n```python\ndef get_market(id_or_slug: str):\n    \"\"\"Get market details\"\"\"\n    # Try by ID first\n    r = requests.get(f\"{API_URL}\u002Fmarket\u002F{id_or_slug}\")\n    if r.status_code == 404:\n        # Try by slug\n        r = requests.get(f\"{API_URL}\u002Fslug\u002F{id_or_slug}\")\n\n    r.raise_for_status()\n    return r.json()\n\nmarket = get_market(\"will-gpt5-be-released-before-2025\")\nprint(f\"Question: {market['question']}\")\nprint(f\"Probability: {market.get('probability', 0.5)*100:.1f}%\")\n```\n\n## Place a Bet\n\n```python\ndef place_bet(\n    market_id: str,\n    amount: int,           # Mana amount to bet\n    outcome: str = \"YES\",  # \"YES\" or \"NO\"\n    limit_prob: float = None  # Optional limit order probability\n):\n    \"\"\"\n    Place a bet on Manifold\n\n    Args:\n        market_id: The market ID (not slug!)\n        amount: Amount of Mana to bet\n        outcome: \"YES\" or \"NO\"\n        limit_prob: Optional - if set, creates a limit order at this probability\n    \"\"\"\n    payload = {\n        \"contractId\": market_id,\n        \"amount\": amount,\n        \"outcome\": outcome\n    }\n\n    if limit_prob is not None:\n        payload[\"limitProb\"] = limit_prob\n\n    r = requests.post(f\"{API_URL}\u002Fbet\", headers=headers(), json=payload)\n    r.raise_for_status()\n    result = r.json()\n\n    print(f\"Bet placed!\")\n    print(f\"Shares: {result.get('shares', 0):.2f}\")\n    print(f\"Probability after: {result.get('probAfter', 0)*100:.1f}%\")\n\n    return result\n\n# Market bet - buys at current price\nresult = place_bet(\n    market_id=\"abc123\",\n    amount=100,  # 100 Mana\n    outcome=\"YES\"\n)\n\n# Limit order - only fills at 40% or below\nresult = place_bet(\n    market_id=\"abc123\",\n    amount=100,\n    outcome=\"YES\",\n    limit_prob=0.40\n)\n```\n\n## Cancel Bet (Limit Orders Only)\n\n```python\ndef cancel_bet(bet_id: str):\n    \"\"\"Cancel a limit order\"\"\"\n    r = requests.post(f\"{API_URL}\u002Fbet\u002Fcancel\u002F{bet_id}\", headers=headers())\n    r.raise_for_status()\n    return True\n\ncancel_bet(\"bet123\")\n```\n\n## Sell Shares\n\n```python\ndef sell_shares(\n    market_id: str,\n    outcome: str = \"YES\",\n    shares: float = None  # None = sell all\n):\n    \"\"\"\n    Sell shares in a market\n\n    Args:\n        market_id: The market ID\n        outcome: \"YES\" or \"NO\" - which shares to sell\n        shares: Number of shares to sell (None = all)\n    \"\"\"\n    payload = {\n        \"contractId\": market_id,\n        \"outcome\": outcome\n    }\n\n    if shares is not None:\n        payload[\"shares\"] = shares\n\n    r = requests.post(f\"{API_URL}\u002Fmarket\u002F{market_id}\u002Fsell\", headers=headers(), json=payload)\n    r.raise_for_status()\n    return r.json()\n\n# Sell all YES shares\nsell_shares(\"abc123\", \"YES\")\n\n# Sell specific amount\nsell_shares(\"abc123\", \"YES\", shares=50.0)\n```\n\n## Get Your Bets\n\n```python\ndef get_my_bets(market_id: str = None):\n    \"\"\"Get your bets\"\"\"\n    params = {}\n    if market_id:\n        params[\"contractId\"] = market_id\n\n    r = requests.get(f\"{API_URL}\u002Fbets\", headers=headers(), params=params)\n    r.raise_for_status()\n    bets = r.json()\n\n    for b in bets[:10]:\n        print(f\"Bet: {b['outcome']} {b['amount']}M @ {b.get('probBefore', 0)*100:.0f}%\")\n\n    return bets\n\nbets = get_my_bets()\n```\n\n## Get Your Positions\n\n```python\ndef get_positions():\n    \"\"\"Get current positions across all markets\"\"\"\n    # Get user info first\n    r = requests.get(f\"{API_URL}\u002Fme\", headers=headers())\n    r.raise_for_status()\n    user = r.json()\n\n    # Get bets to calculate positions\n    r = requests.get(f\"{API_URL}\u002Fbets\", headers=headers(), params={\"limit\": 1000})\n    bets = r.json()\n\n    # Aggregate by market\n    positions = {}\n    for bet in bets:\n        mid = bet[\"contractId\"]\n        if mid not in positions:\n            positions[mid] = {\"yes\": 0, \"no\": 0, \"invested\": 0}\n\n        if bet[\"outcome\"] == \"YES\":\n            positions[mid][\"yes\"] += bet.get(\"shares\", 0)\n        else:\n            positions[mid][\"no\"] += bet.get(\"shares\", 0)\n\n        if not bet.get(\"isSold\", False):\n            positions[mid][\"invested\"] += bet[\"amount\"]\n\n    return positions, user.get(\"balance\", 0)\n\npositions, balance = get_positions()\nprint(f\"Balance: {balance} Mana\")\nfor mid, pos in positions.items():\n    if pos[\"yes\"] > 0 or pos[\"no\"] > 0:\n        print(f\"Market {mid}: YES={pos['yes']:.1f}, NO={pos['no']:.1f}\")\n```\n\n## Get Balance\n\n```python\ndef get_balance():\n    \"\"\"Get your Mana balance\"\"\"\n    r = requests.get(f\"{API_URL}\u002Fme\", headers=headers())\n    r.raise_for_status()\n    user = r.json()\n    return user.get(\"balance\", 0)\n\nbalance = get_balance()\nprint(f\"Balance: {balance} Mana\")\n```\n\n## Complete Trading Bot Example\n\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"\nManifold arbitrage bot - finds mispriced markets\n\"\"\"\n\nimport os\nimport time\nimport requests\n\nAPI_URL = \"https:\u002F\u002Fapi.manifold.markets\u002Fv0\"\nAPI_KEY = os.getenv(\"MANIFOLD_API_KEY\")\n\ndef h():\n    return {\"Authorization\": f\"Key {API_KEY}\", \"Content-Type\": \"application\u002Fjson\"}\n\ndef search(query):\n    r = requests.get(f\"{API_URL}\u002Fsearch-markets\",\n                    params={\"term\": query, \"limit\": 20, \"filter\": \"open\"})\n    return r.json()\n\ndef bet(market_id, amount, outcome, limit_prob=None):\n    payload = {\"contractId\": market_id, \"amount\": amount, \"outcome\": outcome}\n    if limit_prob:\n        payload[\"limitProb\"] = limit_prob\n    r = requests.post(f\"{API_URL}\u002Fbet\", headers=h(), json=payload)\n    return r.json()\n\ndef get_balance():\n    r = requests.get(f\"{API_URL}\u002Fme\", headers=h())\n    return r.json().get(\"balance\", 0)\n\n# Strategy: Buy extreme probabilities (likely to revert)\nMIN_LIQUIDITY = 1000  # Only trade liquid markets\n\nwhile True:\n    try:\n        balance = get_balance()\n        print(f\"\\nBalance: {balance} Mana\")\n\n        # Search trending markets\n        markets = search(\"2024\")\n\n        for m in markets:\n            prob = m.get(\"probability\", 0.5)\n            liquidity = m.get(\"totalLiquidity\", 0)\n\n            if liquidity \u003C MIN_LIQUIDITY:\n                continue\n\n            # Buy YES on very low probability (\u003C 10%)\n            if prob \u003C 0.10:\n                print(f\"LOW: {m['question'][:50]} at {prob*100:.1f}%\")\n                if balance > 50:\n                    bet(m[\"id\"], 50, \"YES\", limit_prob=0.15)\n\n            # Buy NO on very high probability (> 90%)\n            elif prob > 0.90:\n                print(f\"HIGH: {m['question'][:50]} at {prob*100:.1f}%\")\n                if balance > 50:\n                    bet(m[\"id\"], 50, \"NO\", limit_prob=0.85)\n\n        time.sleep(300)  # Check every 5 minutes\n\n    except Exception as e:\n        print(f\"Error: {e}\")\n        time.sleep(60)\n```\n\n## Multiple Choice Markets\n\n```python\ndef bet_multiple_choice(market_id: str, answer_id: str, amount: int):\n    \"\"\"Bet on a multiple choice market\"\"\"\n    payload = {\n        \"contractId\": market_id,\n        \"amount\": amount,\n        \"answerId\": answer_id\n    }\n\n    r = requests.post(f\"{API_URL}\u002Fbet\", headers=headers(), json=payload)\n    r.raise_for_status()\n    return r.json()\n\n# Get market with answers\nmarket = get_market(\"who-will-win-2024-election\")\nfor answer in market.get(\"answers\", []):\n    print(f\"{answer['text']}: {answer['probability']*100:.1f}% (ID: {answer['id']})\")\n\n# Bet on specific answer\nbet_multiple_choice(\"market123\", \"answer456\", 100)\n```\n\n## Create a Market\n\n```python\ndef create_market(\n    question: str,\n    description: str = \"\",\n    close_time: int = None,  # Unix timestamp\n    initial_prob: float = 0.5,\n    ante: int = 100  # Initial liquidity\n):\n    \"\"\"Create a new binary market\"\"\"\n    payload = {\n        \"outcomeType\": \"BINARY\",\n        \"question\": question,\n        \"description\": description,\n        \"initialProb\": int(initial_prob * 100),\n        \"ante\": ante\n    }\n\n    if close_time:\n        payload[\"closeTime\"] = close_time * 1000  # Milliseconds\n\n    r = requests.post(f\"{API_URL}\u002Fmarket\", headers=headers(), json=payload)\n    r.raise_for_status()\n    return r.json()\n\n# Create market\nnew_market = create_market(\n    question=\"Will it rain tomorrow in NYC?\",\n    initial_prob=0.3,\n    ante=100\n)\nprint(f\"Created: {new_market['url']}\")\n```\n\n## Important Notes\n\n1. **Mana is play money** - Can be donated to charity\n2. **No limit on bets** - Unlike real money markets\n3. **Market maker AMM** - Prices move based on bets\n4. **Limit orders** - Use `limitProb` for better prices\n5. **API rate limits** - Be gentle, ~60 requests\u002Fminute\n6. **Shares ≠ Mana** - Shares vary based on probability\n",{"name":5,"emoji":36,"gates":37,"description":7},"🎲",{"envs":38},[39],"MANIFOLD_API_KEY","main","f2ec4b3b9133d34eeaf9b38e4b0a97e8e5705a7f","benchmarks\u002Ffinal\u002Fskills\u002Fasset1__alsk1992--trading-manifold",0,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard","https:\u002F\u002Fgithub.com\u002FJSGforever","2026-08-29 18:27:56",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add JSGforever\u002Fskillguard --skill trading-manifold",{"tool":53,"command":54},"bunx","bunx skills add JSGforever\u002Fskillguard --skill trading-manifold",{"tool":56,"command":57},"pnpm","pnpm dlx skills add JSGforever\u002Fskillguard --skill trading-manifold","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__alsk1992--trading-manifold\u002FSKILL.md",true,[61],{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"index.ts","SCRIPT","脚本",13922,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__alsk1992--trading-manifold\u002Findex.ts",[68,98,114,141,163,184],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":77,"publishedAt":31},"01M71HY2SNXBA9Q00WZDTZQ31Z","skillguard-codex-scanner","Hybrid deterministic+LLM agent-skill security scanner. Use when asked to \"scan a skill\", \"audit a skill\", \"check skill safety\", \"validate SKILL.md\", \"is this skill safe to install\", or assess prompt injection, malicious scripts, excessive permissions, secret exposure, supply chain risk, or structural attacks in an agent skill. Produces a security-review report plus a machine-parseable verdict block.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fsrc\u002Fskillguard\u002Fstatic_scanner\u002Fskillguard-codex-scanner\u002FSKILL.md",[74],{"categoryNo":75,"categoryName":76,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发",[78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97],"scanner","skillguard codex scanner","skillguard","codex","chain","skill security","security-review","review report","structural","secret","prompt injection","security scanner","when","review","malicious","permissions","exposure","audit","scripts","safe",{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":102,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":110,"publishedAt":31},"01M71HY0SPKTT3S27BC2HPAC5M","data-exfiltrator","Analyzes data files","MIT","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Fsmoke-one-skill\u002Fasset1__cisco-ai-defense--data-exfiltrator\u002FSKILL.md",[105],{"categoryNo":106,"categoryName":107,"taxonomyType":108,"taxonomyTypeDesc":109},"01JBSEEDCAT000000000000033","数据分析师","PROFESSION","适用职业",[111,112,113],"data","data exfiltrator","files",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":31},"01M71HXVS9EMN44BGDW215FZ72","real-time-collaboration-engine","Build real-time collaborative editing with WebSockets, OT\u002FCRDT conflict resolution, and presence awareness. Implements cursor tracking, optimistic updates, and offline sync. Use for collaborative editors, whiteboards, video editing. Activate on \"real-time collaboration\", \"WebSocket sync\", \"multiplayer editing\", \"CRDT\", \"presence awareness\". NOT for simple chat, request-response APIs, or single-user apps.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__curiositech--real-time-collaboration-engine\u002FSKILL.md",[],[121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140],"time","real time collaboration engine","real time collaboration","collaboration","engine","real time","Video","reliability","video editing","performance","conflict resolution","presence","access","apps","updates","Bash","activate","optimizer","react","streaming",{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":150,"publishedAt":31},"01M71HXP6CTY4KFN0QVMMN0V7J","react-performance-optimizer","Optimize React apps for 60fps performance. Implements memoization, virtualization, code splitting, bundle optimization. Use for slow renders, large lists, bundle bloat. Activate on \"React performance\", \"slow render\", \"useMemo\", \"bundle size\", \"virtualization\". NOT for backend optimization, non-React frameworks, or premature optimization.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__curiositech--react-performance-optimizer\u002FSKILL.md",[147],{"categoryNo":148,"categoryName":149,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000009","前端开发",[130,151,138,139,152,153,154,155,156,157,121,158,159,134,136,160,137,140,161,162],"react performance optimizer","react performance","performance optimizer","app","nextjs","expert","re","render","2025","code","router","strategies",{"skillNo":164,"name":165,"nameZh":6,"description":166,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":167,"categories":168,"keywords":170,"publishedAt":31},"01M71HXH7QXSQB4QTDZ7SP7YXQ","llm-streaming-response-handler","Build production LLM streaming UIs with Server-Sent Events, real-time token display, cancellation, error recovery. Handles OpenAI\u002FAnthropic\u002FClaude streaming APIs. Use for chatbots, AI assistants, real-time text generation. Activate on \"LLM streaming\", \"SSE\", \"token stream\", \"chat UI\", \"real-time AI\". NOT for batch processing, non-streaming APIs, or WebSocket bidirectional chat.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__curiositech--llm-streaming-response-handler\u002FSKILL.md",[169],{"categoryNo":148,"categoryName":149,"taxonomyType":20,"taxonomyTypeDesc":21},[171,140,172,173,174,175,130,121,176,177,178,136,137,138,179,139,180,181,182,183],"llm streaming response handler","handler","error","processing","retry","chat ui","error recovery","critical","batch","display","text","server","read",{"skillNo":185,"name":186,"nameZh":6,"description":187,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":188,"categories":189,"keywords":197,"publishedAt":31},"01M71HXCB0E1YRKYW1Y8T0Y106","github-actions-pipeline-builder","Build production CI\u002FCD pipelines with GitHub Actions. Implements matrix builds, caching, deployments, testing, security scanning. Use for automated testing, deployments, release workflows. Activate on \"GitHub Actions\", \"CI\u002FCD\", \"workflow\", \"deployment pipeline\", \"automated testing\". NOT for Jenkins\u002FCircleCI, manual deployments, or non-GitHub repositories.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__curiositech--github-actions-pipeline-builder\u002FSKILL.md",[190,193,196],{"categoryNo":191,"categoryName":192,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":194,"categoryName":195,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000011","运维与部署",{"categoryNo":75,"categoryName":76,"taxonomyType":20,"taxonomyTypeDesc":21},[198,199,200,201,202,203,204,128,156,205,206,207,137,162,208,183,209,210,211,212],"github actions pipeline builder","actions","github actions","pipeline builder","github","builder","pipeline","testing","ci","workflows","run","release","write","edit","git"]