get_day_trades
Retrieve day trade activity for a specific portfolio using portfolio ID, with options to paginate results for efficient data access through the Paper MCP Server.
Instructions
Get day trade activity for a portfolio
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Results per page (default: 50) | |
| page | No | Page number (default: 1) | |
| portfolioId | Yes | Portfolio ID |
Implementation Reference
- src/index.ts:526-533 (handler)Handler for the 'get_day_trades' tool. Makes an authenticated API call to retrieve day trade activities for the specified portfolio with optional pagination parameters.case 'get_day_trades': response = await api.get(`/accounts/portfolios/${args.portfolioId}/day-trades`, { params: { page: args.page || 1, limit: args.limit || 50 } }); break;
- src/index.ts:358-370 (schema)Tool definition including name, description, and input schema for 'get_day_trades'. Used for tool listing and validation.{ name: 'get_day_trades', description: 'Get day trade activity for a portfolio', inputSchema: { type: 'object', properties: { portfolioId: { type: 'string', description: 'Portfolio ID' }, page: { type: 'number', description: 'Page number (default: 1)' }, limit: { type: 'number', description: 'Results per page (default: 50)' } }, required: ['portfolioId'] } },
- src/index.ts:388-392 (registration)Registers the list tools handler which returns the array of all tools including 'get_day_trades'.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });