tool-polymarket-book
Original:🇺🇸 English
Translated
Use the polymarket_book tool to fetch Polymarket CLOB order book depth (YES/NO) via Gamma + CLOB and expose best bid/ask/mid.
95installs
Added on
NPX Install
npx skill4agent add captaindpt/truth-terminal tool-polymarket-bookTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →polymarket_book (Polymarket CLOB book)
When to use
- Liquidity check before sizing into a market.
- Spread + depth + mid estimation.
Parameters
- (string, required): Gamma numeric id (e.g.
marketId) or conditionId hex ("516710")."0x..." - (
outcome, optional): Defaults to"YES" | "NO"."YES" - (int, optional, 1–200): Levels per side; default 20.
depth
Examples
json
{ "name": "polymarket_book", "params": { "marketId": "0xabc...def", "outcome": "YES", "depth": 50 } }Output
- Returns:
{ marketId, conditionId, question, slug, endDate, outcome, tokenId, bookAvailable, bestBid, bestAsk, mid, bids[], asks[], ts } - Rendered:
- Emits a JSON output with title (used by the UI to open/focus a book window when available).
orderbook - (text with mid/bid/ask and “no CLOB orderbook” when missing)
Market - +
Asks(tables)Bids
- Emits a JSON output with title
Notes
- Some markets have no CLOB orderbook; the tool returns and empty bids/asks.
bookAvailable=false - :
targetWindowbook