Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

IEngine.getOrders
 Post subject: IEngine.getOrders Post rating: 0   New post Posted: Tue 20 Dec, 2011, 10:32 

User rating: 0
Joined: Tue 22 Nov, 2011, 12:47
Posts: 130
Location: United States,
hi,

Is it OK to keep reference to my open orders instead of calling IEngine.getOrders?

Does getOrders calls the server side for fetching all orders related to the active account?


 
 Post subject: Re: IEngine.getOrders Post rating: 0   New post Posted: Tue 20 Dec, 2011, 12:34 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Quote:
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


 
 Post subject: Re: IEngine.getOrders Post rating: 0   New post 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?


 
 Post subject: Re: IEngine.getOrders Post rating: 0   New post Posted: Wed 21 Dec, 2011, 08:23 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
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.


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com