"accepted" orders

When querying the alpaca rest API (ython3 client provided by alpacahq) with list_orders, orders which are of status “accepted” are not in the response. How to I get a list of order which includes “accepted” status?

Bump for answer. This is important!

AFAIU the “accepted” state is not treated as “open” by the server because it can be rejected later on the exchange side. Unfortunately, the order status filter in this API endpoint is not very flexible - you can request open orders (default), closed (opposite to default) orders, and all orders. So you have only one option - request all orders and filter them on the client-side.

Read more about possible order statuses here: Understand Orders | Alpaca Docs

1 Like

Sounds reasonable, thanks!