get_account_orders
Retrieve order details for a specific account on Paper's trading platform. Specify account ID, page number, and results limit to fetch tailored data for analysis or management.
Instructions
Get orders for an account
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | Account ID | |
| limit | No | Results per page (default: 10) | |
| page | No | Page number (default: 1) |
Implementation Reference
- src/index.ts:469-476 (handler)Handler implementation for the 'get_account_orders' tool. Makes an authenticated API GET request to fetch orders for the specified account ID with optional pagination parameters.case 'get_account_orders': response = await api.get(`/orders/account/${args.accountId}`, { params: { page: args.page || 1, limit: args.limit || 10 } }); break;
- src/index.ts:258-270 (registration)Tool registration object defining name, description, and input schema for 'get_account_orders'. This object is included in the tools list returned by ListToolsRequest handler.{ name: 'get_account_orders', description: 'Get orders for an account', inputSchema: { type: 'object', properties: { accountId: { type: 'string', description: 'Account ID' }, page: { type: 'number', description: 'Page number (default: 1)' }, limit: { type: 'number', description: 'Results per page (default: 10)' } }, required: ['accountId'] } },
- src/index.ts:261-269 (schema)Input schema validation for the 'get_account_orders' tool parameters.inputSchema: { type: 'object', properties: { accountId: { type: 'string', description: 'Account ID' }, page: { type: 'number', description: 'Page number (default: 1)' }, limit: { type: 'number', description: 'Results per page (default: 10)' } }, required: ['accountId'] }