Is it OK to keep reference to my open orders instead of calling IEngine.getOrders?
yes, that is fine
Quote:
Does getOrders calls the server side for fetching all orders related to the active account?
getorders returns list of all orders for current account in IOrder.State.CREATED, IOrder.State.OPENED and IOrder.State.FILLED state
cb888trader
Post subject: Re: IEngine.getOrders
Post rating: 0
Posted: Tue 20 Dec, 2011, 14:58
User rating: 0
Joined: Tue 22 Nov, 2011, 12:47 Posts: 130 Location: United States,
Quote:
getorders returns list of all orders for current account in IOrder.State.CREATED, IOrder.State.OPENED and IOrder.State.FILLED state
Let me rephrase: does calling the engine's getOrders method results in a network roundtrip to the DK server to get an updated list? or is it a local operation with engine getting updated via another [polling] thread?
getOrders retrieves all active orders. It does not matter in which client an order is created. In other words, getOrders returns the same result in all clients if called simultaneously.