|
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 |
buyandhold
|
Post subject: Get pending and related orders |
Post rating: 0
|
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?
|
|
|
|
 |
API Support
|
Post subject: Re: Get pending and related orders |
Post rating: 0
|
Posted: Mon 07 Feb, 2011, 10:52
|
|
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.
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|