# "accepted" orders

**URL:** <https://forum.alpaca.markets/t/accepted-orders/8988>\
**Category:** Feature Requests\
**Created:** [March 30, 2022, 2:23am UTC](https://forum.alpaca.markets/t/accepted-orders/8988 "2022-03-30T02:23:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthew1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/matthew1/32/3688_2.png) [@Matthew1](https://forum.alpaca.markets/u/Matthew1)\
**Post date:** [March 30, 2022, 2:23am UTC](https://forum.alpaca.markets/t/accepted-orders/8988/1 "2022-03-30T02:23:46Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Matthew1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/matthew1/32/3688_2.png) [@Matthew1](https://forum.alpaca.markets/u/Matthew1)\
**Post date:** [April 29, 2022, 9:35pm UTC](https://forum.alpaca.markets/t/accepted-orders/8988/2 "2022-04-29T21:35:35Z")

</div>

Bump for answer. This is important!

---

<div class="post-metadata">

**Author:** ![oleg.rakhmatulin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/oleg.rakhmatulin/32/559_2.png) [@oleg.rakhmatulin](https://forum.alpaca.markets/u/oleg.rakhmatulin)\
**Post date:** [May 2, 2022, 7:42am UTC](https://forum.alpaca.markets/t/accepted-orders/8988/3 "2022-05-02T07:42:30Z")

</div>

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](https://alpaca.markets/docs/trading/orders/#order-lifecycle)

---

<div class="post-metadata">

**Author:** ![Matthew1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/matthew1/32/3688_2.png) [@Matthew1](https://forum.alpaca.markets/u/Matthew1)\
**Post date:** [May 10, 2022, 12:17pm UTC](https://forum.alpaca.markets/t/accepted-orders/8988/4 "2022-05-10T12:17:51Z")

</div>

Sounds reasonable, thanks!
