waiaas_pm_get_orders
Retrieve Polymarket CLOB orders for a specific wallet, with filtering options by order status (LIVE, MATCHED, CANCELLED) to monitor trading activity.
Instructions
Get Polymarket CLOB orders for a wallet.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet_id | No | Wallet ID. Auto-resolved for single-wallet sessions. | |
| status | No | Filter by order status. |
Implementation Reference
- The tool 'waiaas_pm_get_orders' is registered and implemented within 'packages/mcp/src/tools/polymarket.ts'. The implementation uses the provided 'apiClient' to make a GET request to the Polymarket orders endpoint.
// pm_get_orders server.tool( 'waiaas_pm_get_orders', withWalletPrefix('Get Polymarket CLOB orders for a wallet.', walletContext?.walletName), { wallet_id: z.string().optional().describe('Wallet ID. Auto-resolved for single-wallet sessions.'), status: z.enum(['LIVE', 'MATCHED', 'CANCELLED']).optional().describe('Filter by order status.'), }, async (args) => { const walletId = args.wallet_id || 'default'; const params = new URLSearchParams(); if (args.status) params.set('status', args.status); const qs = params.toString(); const result = await apiClient.get(`/v1/wallets/${walletId}/polymarket/orders${qs ? '?' + qs : ''}`); return toToolResult(result); }, );