get_market
Get market
Full details of one market, including its rules and the ids of its up and down outcome tokens.
market必填trade.lucyd由 lucyd.trade 發布官方發布者v0.1.4更新於 Oct 26, 2026
Trade Bitcoin Up/Down prediction markets on Lucyd: markets, order books, orders, positions.
Lucyd 讓助理連接比特幣漲跌預測市場交易所,可瀏覽市場、讀取訂單簿,並用錢包下單交易。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/trade.lucyd%2Fmcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"lucyd": {
"type": "http",
"url": "https://mcp.lucyd.trade/mcp"
}
}
}Connect an AI agent (Claude, Cursor or any MCP client) to Lucyd, a prediction markets exchange. Ask in plain language to browse markets, read the order book, trade, close positions and collect winnings.
Lucyd currently runs on the Ethereum Sepolia testnet with test USDC.
Example requests:
Without a wallet key the server works read-only: markets, books, trades and any wallet's public stats.
For market data only, nothing to install: add https://mcp.lucyd.trade/mcp as a custom connector (remote MCP server, no authentication) in Claude, ChatGPT or any client that supports Streamable HTTP. It has the market data tools: markets, order books, trades, and positions and stats of any wallet address. Trading needs your own wallet key, so it works only with the local server below.
To run your own hosted copy, set LUCYD_HTTP_ADDR (for example 0.0.0.0:3006) and LUCYD_HTTP_HOSTS (the host names it answers to); the server then serves MCP at /mcp and refuses to start with a wallet key.
The easiest way needs only Node.js 18 or newer: the client runs npx -y @lucyd/mcp, which downloads the binary for your system on first run and checks its SHA-256. Nothing else to install, see the configs below.
Without Node.js, download the binary for your system from data.testnet.lucyd.trade/mcp (open the latest version folder; SHA256SUMS there lists the checksums) and put it anywhere, for example ~/bin/lucyd-mcp (lucyd-mcp.exe on Windows). On macOS and Linux make it executable with chmod +x lucyd-mcp. Then use its path instead of npx in the configs below.
Or build from source with Rust:
Replace the key with your trading wallet key. Restart the client afterwards.
Claude Code
Claude Desktop: edit claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\).
Cursor: edit ~/.cursor/mcp.json.
Both use the same format:
If the client on Windows cannot start npx, use "command": "cmd" with "args": ["/c", "npx", "-y", "@lucyd/mcp"].
The wallet needs USDC to buy and a little Sepolia ETH to pay gas for one-time approvals and redemptions. Then ask the agent to check your wallet and approve trading, or call approve_trading directly. Trading itself costs no gas: the exchange settles fills on chain.
LUCYD_MAX_ORDER_USD low, or LUCYD_READ_ONLY=true if you only want data.The server runs locally and talks to the agent over stdio. Market data comes from the public API. Orders are signed with EIP-712 and sent to the order book over WebSocket (protocol in the API docs). Approvals and redemptions are plain transactions on Sepolia.
MIT
來源:README.md,提交 0176d14
Get market
Full details of one market, including its rules and the ids of its up and down outcome tokens.
market必填Get order book
Order book of a market outcome: bids (best first) and asks with prices in USDC per token and sizes in tokens, plus best bid, best ask and mid. Buying down at p is the same book as selling up at 1 - p.
market必填outcomeGet P&L history
Profit and loss over time of a wallet, as a series of points. Defaults to the configured wallet.
rangeaddressGet positions
Positions of a wallet: tokens held per market and outcome, average price, current value and profit. Settled markets show the payout. Defaults to the configured wallet.
limitstatemarkettraderService status
Health of the Lucyd service: API and database, settlement of ended markets on time, live trade stream. Use it when something looks stuck, e.g. a market is not resolving.
無需輸入參數。
Get trader stats
Stats of a wallet: total and realized profit, volume, markets traded, win rate. Defaults to the configured wallet.
addressList markets
List prediction markets on Lucyd. Each market asks whether the BTC price will be Up or Down at its end date versus the strike (strike is the price times 1e8). Returns address (the market id), state, period, start and end dates, strike, winner and volume.
limitorderstateoffsetperiodList trades
Recent trades, newest first. Filter by market and/or trader. Amounts are in USDC and tokens.
tofromlimitmarkettraderTop traders
Leaderboard of traders, best first.
sortlimit已滿足適用檢查項的 100%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
cargo install --git https://github.com/lucyd-trade/mcp-serverclaude mcp add lucyd -e LUCYD_PRIVATE_KEY=0xYOUR_KEY -- npx -y @lucyd/mcp{ "mcpServers": { "lucyd": { "command": "npx", "args": ["-y", "@lucyd/mcp"], "env": { "LUCYD_PRIVATE_KEY": "0xYOUR_KEY" } } }}