get_tick_size
Retrieve the minimum price increment for Polymarket prediction market tokens to ensure accurate trading calculations and order placement.
Instructions
Get the minimum tick size (price increment) for a Polymarket token.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token_id | Yes | CLOB token ID |
Implementation Reference
- src/tools/clob/tick-size.ts:6-23 (registration)Registration of the get_tick_size tool.
server.tool( "get_tick_size", "Get the minimum tick size (price increment) for a Polymarket token.", { token_id: z.string().describe("CLOB token ID"), }, async (args) => { try { const data = await clob.getTickSize(args.token_id); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Error: ${(error as Error).message}` }], isError: true, }; } }, ); - src/api/clob.ts:74-78 (handler)Handler implementation for get_tick_size in the ClobApi class.
async getTickSize(tokenId: string): Promise<ClobTickSize> { return this.client.clob<ClobTickSize>("/tick-size", { token_id: tokenId, }); }