pulse_trader_token_stats
Analyze a trader's performance per token, showing PnL, win rate, and volume for each coin. Identify which assets contribute to profit or loss.
Instructions
Get token-by-token P&L breakdown for any trader. Shows which coins they trade, their PnL per coin, win rate per coin, and volume per coin. Use to understand a trader's edge — e.g. 'this trader only makes money on ETH and loses on everything else.'
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| useToonFormat | No | Return data in compact toon format (default: true). Set to false for standard JSON. | |
| address | Yes | Ethereum wallet address (0x...) |
Implementation Reference
- src/index.ts:802-814 (registration)Registration and handler for the 'pulse_trader_token_stats' tool. Registered via shouldRegister check, defines input schema (useToonFormat + ethAddress), and handler calls the API at `/pulse/trader/${address}/tokens`.
// TOOL 21: Trader Token Stats // ══════════════════════════════════════════════════════════ if (shouldRegister("pulse_trader_token_stats")) server.registerTool( "pulse_trader_token_stats", { description: "Get token-by-token P&L breakdown for any trader. Shows which coins they trade, their PnL per coin, win rate per coin, and volume per coin. Use to understand a trader's edge — e.g. 'this trader only makes money on ETH and loses on everything else.'", inputSchema: { useToonFormat: useToonFormatSchema, address: ethAddressSchema, }, }, async ({ useToonFormat, address }) => toolResult(await callAPI(useToonFormat, `/pulse/trader/${address}/tokens`)) ); - src/index.ts:813-813 (handler)Handler function: async ({ useToonFormat, address }) => toolResult(await callAPI(useToonFormat, `/pulse/trader/${address}/tokens`)). Calls the backend API to get token-by-token P&L breakdown for the given wallet address.
async ({ useToonFormat, address }) => toolResult(await callAPI(useToonFormat, `/pulse/trader/${address}/tokens`)) - src/index.ts:806-812 (schema)Input schema for pulse_trader_token_stats: accepts useToonFormat (boolean, default true) and address (Ethereum wallet address validated by ethAddressSchema regex).
{ description: "Get token-by-token P&L breakdown for any trader. Shows which coins they trade, their PnL per coin, win rate per coin, and volume per coin. Use to understand a trader's edge — e.g. 'this trader only makes money on ETH and loses on everything else.'", inputSchema: { useToonFormat: useToonFormatSchema, address: ethAddressSchema, }, },