Token导航 LogoToken导航

Agent Skill · 研究检索

manifold(manifold 搜索)

manifold 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

manifold 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 44,750。

总安装 894周安装 38GitHub Stars 4下载 313核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:manifold(manifold 搜索)
来源仓库:https://github.com/outsharp/shipp-skills
仓库路径:skills/manifold
安装命令:
npx skills add https://github.com/outsharp/shipp-skills --skill manifold
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/outsharp/shipp-skills --skill manifold

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

manifold 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。适用于关键词搜索、任务场景匹配和来源线索筛选等研究检索场景。通过 npx skills add 命令从指定 GitHub 仓库安装,需确认权限和维护状态。

使用前应核实是否会触发联网、命令执行或文件读写操作。建议结合原始 README 和仓库路径进一步核验具体用法。

来源仓库内路径:skills/manifold

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/outsharp/shipp-skills --skill manifold;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

manifold 怎么安装?

在终端执行 npx skills add https://github.com/outsharp/shipp-skills --skill manifold。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

manifold 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

manifold 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

manifold 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

manifold 用的人多吗?

公开数据是累计安装 894 次,近一周安装 38 次,下载 313 次,GitHub 4 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

manifold 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
manifold

manifold 搜索 · 本页

8944接触敏感数据未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Manifold API

Manifold is a prediction market platform where users create and trade on questions about real-world events. It uses a combination of play-money (mana) and prize-cash, with automated market makers (CPMM) and a rich API for programmatic access.

Check this skill and the official documentation *FREQUENTLY* for updates. The API is still in alpha and may change without notice.

Community: Join the Manifold Discord for questions, bug reports, and to share what you build.
Source code: Manifold is open source. Type definitions live at common/src/api/schema.ts.

Key Concepts (Glossary)

TermDefinition
Market (Contract)A single tradeable question. Called "contract" in the codebase, "market" in the API. Has an outcome type (BINARY, MULTIPLE_CHOICE, PSEUDO_NUMERIC, BOUNTIED_QUESTION, POLL).
Mana (M$)Play-money currency used for most markets. Cannot be withdrawn for real money.
Prize Cash (CASH)Real-money currency available on select markets. Can be withdrawn. Identified by token: "CASH" on a market.
Sibling ContractThe mana or prize-cash counterpart of a market. Toggle between them via siblingContractId.
Topic (Group)A tag applied to markets for categorization. Called "group" in the codebase and API.
CPMMConstant Product Market Maker. The automated market maker used for binary (cpmm-1) and multi-answer (cpmm-multi-1) markets.
DPMDynamic Parimutuel Market — a legacy mechanism (dpm-2) used for older free-response markets.
ProbabilityA number between 0 and 1 representing the market's current implied probability of YES.
PoolThe liquidity pool of shares backing the market maker. For CPMM markets, shows YES and NO share counts.
LiquidityMana deposited into the AMM pool. More liquidity means less price impact per trade.
BetA trade on a market. Can be a market order or a limit order (when limitProb is specified).
Limit OrderA bet that only executes at a specified probability price or better. Remains open until filled, cancelled, or expired.
SharesUnits of a position. Winning YES shares pay out M$1 each; losing shares pay M$0.
ResolutionThe final outcome of a market: YES, NO, MKT (probability), or CANCEL.
AnswerA possible outcome in a MULTIPLE_CHOICE or FREE_RESPONSE market. Each answer has its own probability.
BountyA BOUNTIED_QUESTION market where the creator distributes mana rewards to the best comments/answers.
PollA non-trading market type where users simply vote on options.

Base URLs

EnvironmentREST APIWebSocket
Productionhttps://api.manifold.marketswss://api.manifold.markets/ws
Devhttps://api.dev.manifold.marketswss://api.dev.manifold.markets/ws
Important: The API was recently moved from https://manifold.markets/api to https://api.manifold.markets. The old domain will be removed in the future. Always use the new domain.

All REST endpoints are prefixed with /v0/.


Documentation & References


Authentication

Some endpoints are public (no auth required). Write endpoints and user-specific reads require authentication via an API key.

Generating an API Key

  1. Log in to Manifold.
  2. Go to your user profile and click "edit".
  3. Scroll to the API key field at the bottom.
  4. Click the "refresh" button to generate a new key.
  5. Copy and store the key securely. Clicking refresh again will invalidate the old key and generate a new one.

Using the API Key

Include the key in the Authorization header:

Authorization: Key {your_api_key}

Alternatively, the API accepts Firebase JWTs via Authorization: Bearer {jwt}, but this is intended for the web client and not recommended for third-party use.

Example Authenticated Request

curl "https://api.manifold.markets/v0/me" \
  -H "Authorization: Key YOUR_API_KEY"

Rate Limits

There is a rate limit of 500 requests per minute per IP address. Do not use multiple IP addresses to circumvent this limit.

Implement exponential backoff on HTTP 429 responses.


Fees

  • Comments placed through the API incur a M$1 transaction fee.
  • Market creation costs mana (see the market creation endpoint for current costs per type).

Licensing

  • Permitted: Bots, automated trading, algorithmic tools, integrations.
  • Prohibited: Scraping through means other than the API; circumventing rate limits.
  • AI training data: Not permitted for commercial use without a data license. Academic and personal/non-commercial use is allowed. Contact api@manifold.markets for commercial licensing.

REST API Endpoints Overview

All endpoints are relative to https://api.manifold.markets/v0.

Users

EndpointMethodAuthDescription
/user/[username]GETNoGet a user by username. Returns User.
/user/[username]/liteGETNoGet basic display info by username. Returns DisplayUser.
/user/by-id/[id]GETNoGet a user by unique ID. Returns User.
/user/by-id/[id]/liteGETNoGet display info by ID. Returns DisplayUser.
/meGETYesGet the authenticated user. Returns User.
/usersGETNoList all users, ordered by creation date desc. Params: limit (max 1000, default 500), before (user ID for pagination).
User Type
User {
  id: string
  createdTime: number
  name: string              // display name
  username: string           // used in URLs
  url: string
  avatarUrl?: string
  bio?: string
  bannerUrl?: string
  website?: string
  twitterHandle?: string
  discordHandle?: string
  isBot?: boolean
  isAdmin?: boolean
  isTrustworthy?: boolean    // moderator
  isBannedFromPosting?: boolean
  userDeleted?: boolean
  balance: number
  totalDeposits: number
  lastBetTime?: number
  currentBettingStreak?: number
}
DisplayUser Type
DisplayUser {
  id: string
  name: string
  username: string
  avatarUrl?: string
}

Portfolio

EndpointMethodAuthDescription
/get-user-portfolioGETNoGet a user's live portfolio metrics. Param: userId.
/get-user-portfolio-historyGETNoGet portfolio history over a period. Params: userId, period (daily, weekly, monthly, allTime).
/get-user-contract-metrics-with-contractsGETNo*Get a user's positions and their contracts. Params: userId (required), limit (required), offset, order (lastBetTime or profit), perAnswer. *When authenticated, may include private market metrics visible to you.
PortfolioMetrics Type
PortfolioMetrics {
  investmentValue: number
  cashInvestmentValue: number
  balance: number
  cashBalance: number
  spiceBalance: number
  totalDeposits: number
  totalCashDeposits: number
  loanTotal: number
  timestamp: number
  profit?: number
  userId: string
}

LivePortfolioMetrics = PortfolioMetrics & {
  dailyProfit: number
}

Markets — Discovery & Listing

EndpointMethodAuthDescription
/marketsGETNoList markets by creation date desc. Params: limit (max 1000, default 500), sort (created-time, updated-time, last-bet-time, last-comment-time), order (asc/desc), before (market ID for cursor pagination), userId, groupId. Returns LiteMarket[].
/market/[marketId]GETNoGet a single market by ID. Returns FullMarket (includes answers, but not bets/comments).
/slug/[marketSlug]GETNoGet a market by slug (URL path after username). Returns FullMarket.
/search-marketsGETNoSearch/filter markets (similar to browse page). Returns LiteMarket[]. See parameters below.
Search Markets Parameters
ParameterDescription
termSearch query string. Can be empty.
sortmost-popular (default), newest, score, daily-score, freshness-score, 24-hour-vol, liquidity, subsidy, last-updated, close-date, start-time, resolve-date, random, bounty-amount, prob-descending, prob-ascending.
filterall (default), open, closed, resolved, news, closing-90-days, closing-week, closing-month, closing-day.
contractTypeALL (default), BINARY, MULTIPLE_CHOICE, DEPENDENT_MULTIPLE_CHOICE, INDEPENDENT_MULTIPLE_CHOICE, BOUNTY, POLL.
topicSlugOnly markets tagged with this topic slug.
creatorIdOnly markets by this creator.
limit0–1000 (default 100).
offsetNumber to skip (max 1000 when sort=newest).
beforeTimeMillisecond timestamp cursor for efficient pagination with sort=newest. Pass createdTime of last result.
liquidityMinimum liquidity per contract/answer.

Markets — Probabilities

EndpointMethodAuthDescription
/market/[marketId]/probGETNoGet current probability (max 1s cache). Returns {prob} for binary or {answerProbs: {answerId: prob}} for multi.
/market-probsGETNoBatch probabilities for multiple markets (max 1s cache). Param: ids (array, up to 100). Returns `{marketId: {prob}

Markets — Positions

EndpointMethodAuthDescription
/market/[marketId]/positionsGETNoGet position data for a market. Params: order (shares/profit, default profit), top, bottom, userId, answerId. Returns ContractMetric[].
ContractMetric Type
ContractMetric {
  contractId: string
  from: {
    [period: string]: {     // day, week, month
      profit: number
      profitPercent: number
      invested: number
      prevValue: number
      value: number
    }
  } | undefined
  hasNoShares: boolean
  hasShares: boolean
  hasYesShares: boolean
  invested: number
  loan: number
  maxSharesOutcome: string | null
  payout: number
  profit: number
  profitPercent: number
  totalShares: { [outcome: string]: number }
  userId: string
  userUsername: string
  userName: string
  userAvatarUrl: string
  lastBetTime: number
}

Markets — Creation & Management

EndpointMethodAuthDescription
/marketPOSTYesCreate a new market. Returns LiteMarket. See parameters below.
/market/[marketId]/answerPOSTYesAdd an answer to a MULTIPLE_CHOICE market. Param: text.
/market/[marketId]/add-liquidityPOSTYesAdd mana to liquidity pool (does not boost). Param: amount.
/market/[marketId]/add-bountyPOSTYesAdd mana to a bounty question's reward. Param: amount.
/market/[marketId]/award-bountyPOSTYesDistribute bounty reward. Params: amount, commentId.
/market/[marketId]/closePOSTYesSet close time. Param: closeTime (ms since epoch; omit to close immediately).
/market/[marketId]/groupPOSTYesAdd/remove a topic tag. Params: groupId, remove (optional, true to untag).
/market/[marketId]/resolvePOSTYesResolve a market. See resolution format below.
Market Creation Parameters

Common parameters (all market types):

ParameterRequiredDescription
outcomeTypeYesBINARY, MULTIPLE_CHOICE, PSEUDO_NUMERIC, POLL, BOUNTIED_QUESTION.
questionYesThe headline question.
descriptionNoPlain text description. Or use descriptionHtml, descriptionMarkdown, or descriptionJson (stringified TipTap JSON).
closeTimeNoWhen the market closes (ms since epoch). Defaults to 7 days from now.
visibilityNopublic (default) or unlisted.
groupIdsNoArray of topic IDs to tag.
extraLiquidityNoAdditional liquidity to add.

Additional parameters by type:

TypeExtra Parameters
BINARYinitialProb (1–99, required)
PSEUDO_NUMERICmin, max, isLogScale, initialValue (all required)
MULTIPLE_CHOICEanswers (string[], required), addAnswersMode (DISABLED/ONLY_CREATOR/ANYONE, default DISABLED), shouldAnswersSumToOne (boolean)
BOUNTIED_QUESTIONtotalBounty (required)
POLLanswers (string[], required)

Creation costs:

TypeCost
BINARYM$50
PSEUDO_NUMERICM$250
MULTIPLE_CHOICEM$25/answer or M$25 for no preset answers
Resolution Formats

Binary markets:

  • outcome: YES, NO, MKT, or CANCEL.
  • probabilityInt: Optional, used when resolving to MKT.

Multiple Choice (shouldAnswersSumToOne = true):

{
  "outcome": "MKT",
  "resolutions": [
    { "answer": <index>, "pct": <weight> }
  ]
}

Weights must sum to 100. Or use outcome as a number for a single answer index, or CANCEL.

Multiple Choice (shouldAnswersSumToOne = false): Resolve each answer independently with separate requests:

{
  "outcome": "YES",    // or "NO"
  "answerId": "<answer_id>"
}

Numeric markets:

  • outcome: CANCEL or a numeric bucket ID.
  • value: The resolution value.
  • probabilityInt: Required if value is provided.

Trading

EndpointMethodAuthDescription
/betPOSTYesPlace a bet or limit order. Returns Bet.
/multi-betPOSTYesPlace multiple YES bets on a sums-to-one multi-choice market, targeting equal shares per answer. Returns Bet[].
/bet/cancel/[id]POSTYesCancel an open limit order.
/market/[marketId]/sellPOSTYesSell shares. Params: outcome (YES/NO, defaults to kind held), shares (optional, defaults to all), answerId (required for multi-choice).
Bet Parameters
ParameterRequiredDescription
amountYesAmount in mana to bet, before fees.
contractIdYesThe market ID.
outcomeNoYES (default) or NO.
limitProbNoMakes this a limit order. A number from 0.01 to 0.99 (whole percentage points only, e.g., 0.01 = 1%).
expiresAtNoTimestamp (ms) when the limit order auto-cancels.
expiresMillisAfterNoMilliseconds after creation for auto-cancel.
dryRunNoIf true, simulates without placing.
Multi-Bet Parameters
ParameterRequiredDescription
contractIdYesMarket ID. Must be cpmm-multi-1 with shouldAnswersSumToOne=true.
answerIdsYesArray of answer IDs (min 2).
amountYesTotal mana to spend across selected answers.
limitProbNoPer-leg limit price (0.01–0.99, two decimal places).
expiresAtNoTimestamp (ms) for auto-cancel of unfilled portions.

Comments

EndpointMethodAuthDescription
/commentPOSTYesCreate a top-level comment on a market. Params: contractId, plus one of content (TipTap JSON), html, or markdown. Fee: M$1.
/commentsGETNoList comments for a market or user. Params: contractId, contractSlug, limit (max 1000), page, userId, order (likes/newest/oldest).

Bets

EndpointMethodAuthDescription
/betsGETNoList bets. Params: userId, username, contractId (can be multiple), contractSlug, limit (max 1000), before/after (bet ID cursors), beforeTime/afterTime (timestamps), kinds (open-limit), order (asc/desc).
Bet Type
Bet {
  id: string
  contractId: string
  userId: string
  amount: number            // mana spent (filled portion for limits)
  orderAmount: number       // original order amount
  shares: number
  outcome: "YES" | "NO"
  probBefore: number
  probAfter: number
  createdTime: number
  fees: {
    creatorFee: number
    platformFee: number
    liquidityFee: number
  }
  isFilled: boolean
  isCancelled: boolean
  loanAmount: number
  limitProb?: number        // present for limit orders
  fills: Fill[]
  answerId?: string         // for multi-choice markets
}

Fill {
  matchedBetId: string | null
  amount: number
  shares: number
  timestamp: number
  fees: { creatorFee: number; platformFee: number; liquidityFee: number }
}

Topics (Groups)

EndpointMethodAuthDescription
/groupsGETNoList public topics, 500 at a time, newest first. Params: beforeTime, availableToUserId.
/group/[slug]GETNoGet a topic by slug.
/group/by-id/[id]GETNoGet a topic by ID.

Mana Transfers

EndpointMethodAuthDescription
/managramPOSTYesSend mana to other users. Params: toIds (array of user IDs), amount (>= 10, sent to each), message (optional).

Transactions

EndpointMethodAuthDescription
/txnsGETNoList transactions, newest first. Params: token (CASH/MANA), offset, limit (max 100), before/after (timestamps), toId, fromId, category.

Leagues

EndpointMethodAuthDescription
/leaguesGETNoGet league standings. Params: userId, season (number), cohort (string).

Market Types

outcomeTypemechanismDescription
BINARYcpmm-1Yes/No market with a single probability (0–1). Most common type.
MULTIPLE_CHOICEcpmm-multi-1Multiple answers, each with its own probability. Can be dependent (sum to 100%) or independent.
FREE_RESPONSEdpm-2Legacy. Anyone can add answers. Uses DPM mechanism.
PSEUDO_NUMERICcpmm-1Maps probability to a numeric range [min, max]. Can be linear or log scale.
BOUNTIED_QUESTION—No trading. Creator distributes bounty to best comments.
POLL—No trading. Users vote on options.

LiteMarket Type

LiteMarket {
  id: string
  creatorId: string
  creatorUsername: string
  creatorName: string
  creatorAvatarUrl?: string
  createdTime: number
  closeTime?: number
  question: string
  url: string                      // always points to manifold.markets
  outcomeType: string
  mechanism: string
  probability: number
  pool: { [outcome: string]: number }
  p?: number                       // CPMM probability constant
  totalLiquidity?: number          // CPMM only
  value?: number                   // PSEUDO_NUMERIC only
  min?: number                     // PSEUDO_NUMERIC only
  max?: number                     // PSEUDO_NUMERIC only
  isLogScale?: boolean             // PSEUDO_NUMERIC only
  volume: number
  volume24Hours: number
  isResolved: boolean
  resolutionTime?: number
  resolution?: string
  resolutionProbability?: number   // for MKT resolution
  uniqueBettorCount: number
  lastUpdatedTime?: number
  lastBetTime?: number
  token?: "MANA" | "CASH"
  siblingContractId?: string       // toggle between mana/cash version
}

FullMarket Type

FullMarket = LiteMarket & {
  answers?: Answer[]                          // multi markets only
  shouldAnswersSumToOne?: boolean             // multi markets only
  addAnswersMode?: "ANYONE" | "ONLY_CREATOR" | "DISABLED"
  options?: { text: string; votes: number }[] // poll only
  totalBounty?: number                        // bounty only
  bountyLeft?: number                         // bounty only
  description: JSONContent                    // TipTap rich text
  textDescription: string                     // plain text
  coverImageUrl?: string
  groupSlugs?: string[]                       // topic tags
}

WebSocket API

Manifold provides a real-time WebSocket server for subscribing to live updates.

Connection

wss://api.manifold.markets/ws         (production)
wss://api.dev.manifold.markets/ws     (dev)

No authentication is required to connect. Authentication is optional (for user-specific topics).

Message Format

All messages are JSON. Client messages must include:

  • type: identify, subscribe, unsubscribe, or ping.
  • txid: A unique number identifying the message.

The server acknowledges each message:

{ "type": "ack", "txid": 123, "success": true }

Subscribing to Topics

Send a subscribe message:

{
  "type": "subscribe",
  "txid": 1,
  "topics": ["global/new-bet", "contract/[marketId]"]
}

Available Topics

Global Topics
TopicDescription
global/new-betAll new bets across all markets.
global/new-contractAll new markets being created.
global/new-commentAll new comments across all markets.
global/new-subsidyAll new liquidity subsidies.
global/updated-contractUpdates to any public market.
Per-Market Topics (replace [marketId] with actual ID)
TopicDescription
contract/[marketId]General market updates.
contract/[marketId]/new-betNew bets on this market.
contract/[marketId]/new-commentNew comments on this market.
contract/[marketId]/new-subsidyNew liquidity subsidies.
contract/[marketId]/new-answerNew answers added (multi-choice).
contract/[marketId]/updated-answersUpdates to existing answers.
contract/[marketId]/ordersLimit order updates.
contract/[marketId]/chart-annotationChart annotations.
contract/[marketId]/user-metrics/[userId]User position updates in this market.
Other Topics
TopicDescription
user/[userId]Updates to a user's public info.
answer/[answerId]/updateUpdates to a specific answer.
tv_scheduleUpdates to the TV schedule.

Keep-Alive

Send periodic pings (every 30–60 seconds) to keep the connection alive. If no ping is received for 60 seconds, the server terminates the connection.

{ "type": "ping", "txid": 42 }

Broadcast Messages

The server sends updates as broadcast messages:

{
  "type": "broadcast",
  "topic": "global/new-bet",
  "data": { ... }
}

Common Patterns

List Recent Markets

curl -s "https://api.manifold.markets/v0/markets?limit=5" | jq '.[].question'

Get a Single Market by ID

curl -s "https://api.manifold.markets/v0/market/3zspH9sSzMlbFQLn9GKR" | jq '{question, probability, volume, isResolved}'

Get a Market by Slug

curl -s "https://api.manifold.markets/v0/slug/will-carrick-flynn-win-the-general" | jq '{question, probability}'

Search for Open Binary Markets

curl -s "https://api.manifold.markets/v0/search-markets?term=AI&sort=liquidity&filter=open&contractType=BINARY&limit=10" | jq '.[].question'

Get Current Probability

curl -s "https://api.manifold.markets/v0/market/9t61v9e7x4/prob" | jq '.'

Get Batch Probabilities

curl -s "https://api.manifold.markets/v0/market-probs?ids=9t61v9e7x4&ids=ZNlNdzz690" | jq '.'

Place a YES Bet

curl -X POST "https://api.manifold.markets/v0/bet" \
  -H "Authorization: Key YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"amount": 10, "contractId": "MARKET_ID", "outcome": "YES"}'

Place a Limit Order

curl -X POST "https://api.manifold.markets/v0/bet" \
  -H "Authorization: Key YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 100,
    "contractId": "MARKET_ID",
    "outcome": "YES",
    "limitProb": 0.40,
    "expiresMillisAfter": 86400000
  }'

Sell All Shares in a Market

curl -X POST "https://api.manifold.markets/v0/market/MARKET_ID/sell" \
  -H "Authorization: Key YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"outcome": "YES"}'

Cancel a Limit Order

curl -X POST "https://api.manifold.markets/v0/bet/cancel/BET_ID" \
  -H "Authorization: Key YOUR_API_KEY"

Create a Binary Market

curl -X POST "https://api.manifold.markets/v0/market" \
  -H "Authorization: Key YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "outcomeType": "BINARY",
    "question": "Will it rain in SF tomorrow?",
    "descriptionMarkdown": "Resolves YES if measurable rainfall is recorded at SFO weather station.",
    "initialProb": 30,
    "closeTime": 1735689600000
  }'

Create a Multiple Choice Market

curl -X POST "https://api.manifold.markets/v0/market" \
  -H "Authorization: Key YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "outcomeType": "MULTIPLE_CHOICE",
    "question": "Who will win the award?",
    "answers": ["Alice", "Bob", "Charlie"],
    "shouldAnswersSumToOne": true,
    "addAnswersMode": "ONLY_CREATOR"
  }'

Resolve a Binary Market

curl -X POST "https://api.manifold.markets/v0/market/MARKET_ID/resolve" \
  -H "Authorization: Key YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"outcome": "YES"}'

Get Your Portfolio

curl -s "https://api.manifold.markets/v0/get-user-portfolio?userId=YOUR_USER_ID" | jq '.'

Get Top Positions on a Market

curl -s "https://api.manifold.markets/v0/market/MARKET_ID/positions?top=5&order=profit" | jq '.[].userName'

Paginate Through All Markets (by newest)

# Page 1
curl -s "https://api.manifold.markets/v0/search-markets?sort=newest&limit=100" > page1.json

# Page 2: use createdTime of last result
BEFORE_TIME=$(jq '.[-1].createdTime' page1.json)
curl -s "https://api.manifold.markets/v0/search-markets?sort=newest&limit=100&beforeTime=$BEFORE_TIME" > page2.json

Paginate Through Bets

# First page
curl -s "https://api.manifold.markets/v0/bets?contractId=MARKET_ID&limit=100" > bets1.json

# Next page: use ID of last bet
BEFORE=$(jq -r '.[-1].id' bets1.json)
curl -s "https://api.manifold.markets/v0/bets?contractId=MARKET_ID&limit=100&before=$BEFORE" > bets2.json

Send Mana to Users

curl -X POST "https://api.manifold.markets/v0/managram" \
  -H "Authorization: Key YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"toIds": ["USER_ID_1", "USER_ID_2"], "amount": 100, "message": "Thanks!"}'

Post a Comment

curl -X POST "https://api.manifold.markets/v0/comment" \
  -H "Authorization: Key YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"contractId": "MARKET_ID", "markdown": "Great question! I think YES is undervalued."}'

WebSocket Subscription (Node.js)

const ws = new WebSocket("wss://api.manifold.markets/ws");
let txid = 0;

ws.onopen = () => {
  ws.send(JSON.stringify({
    type: "subscribe",
    txid: txid++,
    topics: ["global/new-bet"]
  }));
};

ws.onmessage = (event) => {
  const msg = JSON.parse(event.data);
  if (msg.type === "broadcast") {
    console.log("New bet:", msg.data);
  }
};

// Keep-alive ping every 30 seconds
setInterval(() => {
  ws.send(JSON.stringify({ type: "ping", txid: txid++ }));
}, 30000);

Usage Tips

  • All timestamps are UNIX milliseconds (JavaScript Date.now() style), not seconds.
  • Never hardcode API keys — use environment variables or secure key storage.
  • Market URLs always point to https://manifold.markets regardless of which API instance you're using. The username in the URL path doesn't need to be correct (e.g., manifold.markets/anyone/market-slug works).
  • GET parameters go in the query string. POST/PUT parameters go in the JSON body.
  • Limit orders with limitProb crossing the current market price will partially fill immediately. Any unfilled remainder stays as a resting limit order.
  • limitProb precision: Only whole percentage points (two decimal places, e.g., 0.01, 0.50, 0.99).
  • Multi-choice markets come in two flavors: dependent (shouldAnswersSumToOne=true, probabilities sum to 100%) and independent (each answer is effectively a separate binary market).
  • Combine REST + WebSocket for best results: use REST for initial state, WebSocket for real-time deltas.
  • Paginate responsibly: For /search-markets with sort=newest, use beforeTime for efficient deep pagination. For /bets and /markets, use cursor-based pagination with before/after.
  • Market token type matters: check the token field (MANA or CASH) to know if a market uses play-money or prize-cash.
  • Dry run bets by passing dryRun: true to simulate without placing.
  • Description formats: You can provide market descriptions as plain text (description), HTML (descriptionHtml), Markdown (descriptionMarkdown), or TipTap JSON (descriptionJson). Only provide one.

Error Handling

API responses are JSON. Successful requests return HTTP 200 with a JSON result. Error responses (4xx/5xx) return a JSON object with an error message.

StatusMeaning
200Success
400Bad request (invalid parameters)
401Unauthorized (missing or invalid API key)
403Forbidden (insufficient permissions)
404Not found
429Rate limited (500 req/min exceeded)
5xxServer error

Implement retry with exponential backoff for 429 and 5xx responses.


Internal API

Manifold has some internal endpoints not part of the official API. These are undocumented and subject to change without notice.

EndpointMethodAuthDescription
/unresolvePOSTYesUnresolve a market. Param: contractId.

Note: Internal endpoints are not prefixed with /v0.


Versioning

The current API version is v0 under /v0/. The API is still in alpha. Monitor the official documentation and the Discord for breaking changes.

平台分布

Codex

33.95%
按下载量换算106

Claude

32.05%
按下载量换算100

Cursor

17.1%
按下载量换算54

Gemini CLI

10.16%
按下载量换算32

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills