get_orders
Fetches and formats Alpaca orders with filters for status, side, symbols, timestamps, and asset classes to simplify order retrieval.
Instructions
Retrieves and formats orders with the specified filters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | Filters down to orders that have a matching side field set. | |
| after | No | The response will include only ones submitted after this timestamp (exclusive.) | |
| limit | No | The maximum number of orders in response. Defaults to 50 and max is 500. | |
| until | No | The response will include only ones submitted until this timestamp (exclusive.) | |
| nested | No | If true, the result will roll up multi-leg orders under the legs field of primary order. | |
| status | No | Order status to be queried. open, closed or all. Defaults to open. | |
| symbols | No | A comma-separated list of symbols to filter by (ex. "AAPL,TSLA,MSFT"). A currency pair is required for crypto orders (ex. "BTCUSD,BCHUSD,LTCUSD,ETCUSD"). | |
| direction | No | The chronological order of response based on the submission time. asc or desc. Defaults to desc. | |
| asset_class | No | A comma-separated list of asset classes, the response will include only orders in the specified asset classes. By specifying `us_option` as the class, you can query option orders by underlying symbol using the symbols parameter. | |
| after_order_id | No | Return orders submitted after the order with this ID (exclusive). Mutually exclusive with `before_order_id`. Do not combine with `after`/`until`. | |
| before_order_id | No | Return orders submitted before the order with this ID (exclusive). Mutually exclusive with `after_order_id`. Do not combine with `after`/`until`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||