# List Orders Maximum or Symbol Support

**URL:** <https://forum.alpaca.markets/t/list-orders-maximum-or-symbol-support/2902>\
**Category:** Feature Requests\
**Created:** [October 6, 2020, 8:39am UTC](https://forum.alpaca.markets/t/list-orders-maximum-or-symbol-support/2902 "2020-10-06T08:39:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![blissweb](https://avatars.discourse-cdn.com/v4/letter/b/ba9def/32.png) [@blissweb](https://forum.alpaca.markets/u/blissweb)\
**Post date:** [October 6, 2020, 8:39am UTC](https://forum.alpaca.markets/t/list-orders-maximum-or-symbol-support/2902/1 "2020-10-06T08:39:58Z")

</div>

Running into the limit of 500 orders on list orders.

Some of my buy orders for a Symbol are more than 500 orders behind.

If we could add a Symbol(s) parameter to list orders it would be more useful.

Sometimes I just wanna see ALL orders for a particular symbol, or list of symbols,  
no matter how far in history they may be.

Thanks

---

<div class="post-metadata">

**Author:** ![gilbenherut](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@gilbenherut](https://forum.alpaca.markets/u/gilbenherut)\
**Post date:** [October 8, 2020, 2:11pm UTC](https://forum.alpaca.markets/t/list-orders-maximum-or-symbol-support/2902/2 "2020-10-08T14:11:09Z")

</div>

I am also having this problem. Adding a filter for order status (‘cancelled’ or ‘filled’ etc) would help in my case.

I think list\_orders has to have these filters ASAP.

With thanks,  
Gil

---

<div class="post-metadata">

**Author:** ![mwdoran8](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/mwdoran8/32/1529_2.png) [@mwdoran8](https://forum.alpaca.markets/u/mwdoran8)\
**Post date:** [February 28, 2021, 4:33pm UTC](https://forum.alpaca.markets/t/list-orders-maximum-or-symbol-support/2902/3 "2021-02-28T16:33:42Z")

</div>

From what I can tell on the documentation for Orders, at [Orders - Documentation | Alpaca](https://alpaca.markets/docs/api-documentation/api-v2/orders/#get-a-list-of-orders), it looks like “get a list of orders” has the parameter for “symbols”. But when checking in the API library, [alpaca-trade-api-python/rest.py at master · alpacahq/alpaca-trade-api-python · GitHub](https://github.com/alpacahq/alpaca-trade-api-python/blob/master/alpaca_trade_api/rest.py), the function “list\_orders()” does not have “symbols” as a parameter. For more info, it directs you to the API documentation link above where like I said, “symbols” is a parameter.

Any clarity on this from the Alpaca API team would be great.

Thank you

---

<div class="post-metadata">

**Author:** ![mwdoran8](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/mwdoran8/32/1529_2.png) [@mwdoran8](https://forum.alpaca.markets/u/mwdoran8)\
**Post date:** [February 28, 2021, 6:56pm UTC](https://forum.alpaca.markets/t/list-orders-maximum-or-symbol-support/2902/4 "2021-02-28T18:56:13Z")

</div>

This is an answer I got from the Community Slack.

The current python SDK `alpaca-trade-api-python` version 0.53.0 doesn’t directly support the new(ish) symbol parameter. However, there is trick. Well actually not really a trick. Built into the API method is a parameter called `params` . This is a dictionary of ‘parameter\_name:parameter\_value’ pairs which are appended to the actual API call. In this case, the API parameter is called `symbols` . So, to append the `symbols` parameter do something like this

spy\_orders = api.list\_orders(params={‘symbols’:‘SPY’})

This actually may be a good place to mention two useful methods `get` and `put` . These can be used to send arbitrary API requests. These are useful if a new API call is added or changed but the SDK hasn’t been updated yet. So, another way to list orders would be like this

open\_spy\_orders = api.get(’/orders’, {‘status’:‘open’, ‘symbols’:‘SPY’})

Simply include the API endpoint, and then a dict of parameter:value pairs for any parameters you want to add for the API.
