ListOrders error OrderExecutionStatus

Hello, I’m trying to his the ListOrders endpoint but I keep getting an error for a OrderExecutionStatus and it doesn’t seem to be defined in the docs. What are the available values?

400: Bad Request Returns JSON with the error message :{"error":"unknown","error_details":" is not a valid retail_brokerage_api.OrderExecutionStatus","message":" is not a valid retail_brokerage_api.OrderExecutionStatus"}

uri := “/api/v3/brokerage/orders/historical/batch”

Hi @Segfault! Thank you for bringing this to our attention. We understand that you are receiving an error message when trying to query the ListOders endpoint using the order_status parameter. This issue has already been raised to our team of specialists and they are working on a resolution. Until then, we ask for your patience as we resolve this.
We apologize for the inconvenience. Thanks!

Hello @Segfault! According to the concerned team, you are receiving the " is not a valid retail_brokerage_api.OrderExecutionStatus" because you are including the query parameter order_status in your API request and inputting an empty value or invalid order status. If you do want to filter the result by order status, you should specify any of the following statuses: OPEN, FILLED, CANCELLED, EXPIRED, FAILED, PENDING.

Please note they will also include this information in the documentation. Once again, thank you for reporting this issue.