get_sampling_markets
Retrieve Polymarket markets currently eligible for liquidity rewards sampling to identify opportunities for participation.
Instructions
Get currently sampled Polymarket markets that are eligible for liquidity rewards.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/api/clob.ts:58-64 (handler)The actual implementation of the getSamplingMarkets method in the ClobApi class.
async getSamplingMarkets(): Promise<ClobMarket[]> { return this.client.clob<ClobMarket[]>( "/sampling-markets", undefined, CACHE_TTLS.samplingMarkets, ); } - src/tools/clob/markets.ts:25-40 (registration)Registration and tool handler wrapper for get_sampling_markets in the MCP server.
server.tool( "get_sampling_markets", "Get currently sampled Polymarket markets that are eligible for liquidity rewards.", {}, async () => { try { const data = await clob.getSamplingMarkets(); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Error: ${(error as Error).message}` }], isError: true, }; } }, );