get_today_filled_orders
Fetch all orders filled today on Paper's trading platform, with options to specify page number and results per page for efficient data retrieval.
Instructions
Get all orders filled today
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_today_filled_orders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Results per page (default: 10) | |
| page | No | Page number (default: 1) |
Implementation Reference
- src/index.ts:482-489 (handler)Handler implementation that fetches today's filled orders via API GET request to '/orders/filled/today' endpoint with pagination parameters.
case 'get_today_filled_orders': response = await api.get('/orders/filled/today', { params: { page: args.page || 1, limit: args.limit || 10 } }); break; - src/index.ts:282-292 (schema)Tool schema definition with name, description, and input schema for optional pagination (page and limit).
{ name: 'get_today_filled_orders', description: 'Get all orders filled today', inputSchema: { type: 'object', properties: { page: { type: 'number', description: 'Page number (default: 1)' }, limit: { type: 'number', description: 'Results per page (default: 10)' } } } },