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.

Get pending and related orders
 Post subject: Get pending and related orders Post rating: 0   New post Posted: Wed 12 Jan, 2011, 17:55 

User rating: 0
Joined: Wed 18 May, 2011, 23:26
Posts: 40
Location: Switzerland,
IEngine.getOrders() returns IOrders of IOrder.State CREATED, FILLED, or OPENED.

Is there a way to get all related orders for a position (given the "label" or "position id")?

Is it possible to get pending orders (for example, related BUYSTOP/SELLSTOP orders) associated with the position?

Is it possible to get closed or cancelled orders related to a position?


 
 Post subject: Re: Get pending and related orders Post rating: 0   New post Posted: Mon 07 Feb, 2011, 10:52 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
There are no special methods in the API for these purposes. To get SL and TP orders for a position you can check if the position SL or TP price is great then 0.


 

Jump to:  

cron
  © 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