|
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.
Open few orders simultaneously |
BogdanIvaniuk
|
Post subject: Open few orders simultaneously |
Post rating: 0
|
Posted: Fri 28 Oct, 2011, 00:20
|
|
User rating: 0
Joined: Sun 23 Oct, 2011, 22:41 Posts: 24 Location: Ukraine,
|
Hello, dear support!
Is it possible to open few orders simultaneously? For example, add two orders to specific buffer/queue and send it to server for execution.
Thank you!
|
|
|
|
 |
API Support
|
Post subject: Re: Open few orders simultaneously |
Post rating: 0
|
Posted: Fri 28 Oct, 2011, 08:44
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
IEngine.submitOrder just sends a request to server, which means: 1) You don't have to wait for the order to get created to call IEngine.submitOrder once again (i.e. create another order). 2) If you call order1 = IEngine.submitOrder(...) and subsequently order2 = IEngine.submitOrder(...), it just might as well be that order2 opens earlier than order1 (depending on market and order conditions). Thus submitting multiple orders after one another from the execution standpoint is just about as good as if they were submitted in a buffer.
|
|
|
|
 |
BogdanIvaniuk
|
Post subject: Re: Open few orders simultaneously |
Post rating: 0
|
Posted: Fri 28 Oct, 2011, 08:50
|
|
User rating: 0
Joined: Sun 23 Oct, 2011, 22:41 Posts: 24 Location: Ukraine,
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|