waiaas_pm_get_pnl
Retrieve Polymarket profit and loss summary for a wallet to track trading performance and financial outcomes.
Instructions
Get Polymarket profit and loss summary for a wallet.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet_id | No | Wallet ID. Auto-resolved for single-wallet sessions. |
Implementation Reference
- The handler for 'waiaas_pm_get_pnl' which fetches PnL data from the API.
// pm_get_pnl server.tool( 'waiaas_pm_get_pnl', withWalletPrefix('Get Polymarket profit and loss summary for a wallet.', walletContext?.walletName), { wallet_id: z.string().optional().describe('Wallet ID. Auto-resolved for single-wallet sessions.'), }, async (args) => { const walletId = args.wallet_id || 'default'; const result = await apiClient.get(`/v1/wallets/${walletId}/polymarket/pnl`); return toToolResult(result); }, );