Dukascopy Support Board http://www.dukascopy.com/swiss/english/forex/jforex/forum/ |
|
Order per second max limit is exceeded http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=16&t=58527 |
Page 1 of 1 |
Author: | mtnfx [ Fri 31 Mar, 2023, 21:37 ] |
Post subject: | Order per second max limit is exceeded |
Hello, I'm trying to batch-change take profit for multiple positions. Operation fails on 3+ position (first two changes are processed OK). The symptoms are: - IOrder.setTakeProfitPrice() succeeds - After that I do not receive expected notification ORDER_CHANGED_OK - Order is silently NOT changed - take profit stays the same - In the log I see message “Order per second max limit is exceeded” - I can't catch that notification in my code The JavaDoc for IOrder.setTakeProfitPrice() says “By default, may not be called on the same order more often than once per second” I remember API was working as stated some time ago - i.e. limit was applied only “on the same order” and I was able to change multiple different positions at once (actually – with a regular network latency of around 50+ms per request = 20 reqs/second). Now batch-change works only if I make a delay of around 1 second per each invocation of setTakeProfitPrice() even if this invoked on different orders. Can this be fixed to work according to JavaDoc? |
Author: | API Support [ Wed 24 May, 2023, 11:27 ] |
Post subject: | Re: Order per second max limit is exceeded |
Hello! You can only update one order per second per sub-account. Any adjustments are impossible because updating orders more often may negatively impact execution of other traders. If these are unidirectional/multidirectional positions on one instrument, you can use Merge of these positions and later change the take profit of one position. Sincerely, Dukascopy Bank |
Page 1 of 1 |