get_order
Retrieve detailed order information by entering the order ID, enabling users to track and manage trades on Paper's trading platform efficiently.
Instructions
Get order details by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orderId | Yes | Order ID |
Implementation Reference
- src/index.ts:461-463 (handler)Handler implementation for the 'get_order' tool. It performs an API GET request to retrieve order details using the provided orderId.case 'get_order': response = await api.get(`/orders/${args.orderId}`); break;
- src/index.ts:239-245 (schema)Input schema definition for the 'get_order' tool, specifying that an 'orderId' string is required.inputSchema: { type: 'object', properties: { orderId: { type: 'string', description: 'Order ID' } }, required: ['orderId'] }
- src/index.ts:236-246 (registration)Registration of the 'get_order' tool in the tools array, which is returned by the ListTools handler.{ name: 'get_order', description: 'Get order details by ID', inputSchema: { type: 'object', properties: { orderId: { type: 'string', description: 'Order ID' } }, required: ['orderId'] } },