Open Orders
get_open_orders(
timeout: Integer. A default value of 3 seconds is supplied.
)
All orders from the current day’s trading session are returned in a dictionary, using the orderId as the key to discover the specific order.
Response Object
{
{Order ID}: Dictionary. Returns the [Contract](/tws-api/doc/contracts-financial-instruments/the-contract-object), [Order](/tws-api/doc/orders/the-order-and-contract-objects), and [OrderState] objects of the affiliated orderId.
{
orderId: Integer. The identifier for the order. Relevant for order tracking, modification, and cancellation.
contract: [Contract Object](/tws-api/doc/contracts-financial-instruments/the-contract-object). Contract to trade.
order: [Order Object](/tws-api/doc/orders/the-order-and-contract-objects). Parameters for the given order to execute.
orderState: [OrderState Object]. Current state of the order. Contains margin impact and status details.
}

