List orders
Permissions required: Execute trades or Read trade activity
List all orders. With the permission Read trade activity all orders of the organization may be read. With the permission Execute trades only the orders created by this API key may be read.
Orders are sorted in a descending order by their timestamp, i.e. the most recent order or the order with a timestamp closest to endDate is listed first.
When filtering by subaccountId, the allocation information is included but filtered to show only the allocation for the requested subaccount.
For multi-order requests without a subaccount filter, allocation information is not included.
To get complete allocation information, use GET /v2/trading/orders/{orderId}
Filters
You may optionally supply filters for the list of orders using query parameters below
Authorizations
An API key associated with a security role
Query Parameters
The ID of the account to filter orders by. If provided, only orders for this account will be returned.
The ID of the subaccount to filter orders by. If provided, only orders for this subaccount will be returned.
One or more statuses to filter orders. If provided, only orders matching these statuses will be returned. If OPEN status is specified, the call returns all orders in [PENDING,NEW,PENDING_CANCEL,PARTIALLY_FILLED] states.
OPEN, REJECTED, CANCELED, FILLED A list of orderIds to return. Invalid orderIds will be ignored. A maximum number of unique 500 order ids are enforced per call.
1 - 500 elementsA list of clientOrderIds to return. Invalid clientOrderIds will be ignored. A maximum number of unique 500 order ids are enforced per call.
1 - 500 elementsMaximum number of results to return per query
1 <= x <= 2000One or more types to filter orders. If provided, only orders matching these types will be returned.
LIMIT, MARKET, STOP_LOSS, STOP_LIMIT, TAKE_PROFIT_LIMIT, TWAP, VWAP, PEGGED, POV, LIMIT_ALL_IN, MANUAL, OTHER 
