Dukascopy Support Board http://www.dukascopy.com/swiss/english/forex/jforex/forum/ |
|
OriginalAmount is not set at order submit, why? http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=16&t=57637 |
Page 1 of 1 |
Author: | SFXbernhard [ Sun 28 Mar, 2021, 21:30 ] |
Post subject: | OriginalAmount is not set at order submit, why? |
The API says: getOriginalAmount() Returns original constant amount of the order. The value is set on order submit and cannot be changed later. https://www.dukascopy.com/client/javado ... alAmount-- But when I test this I get the following result: 20:22:06 checking order jf1aatqo5, state = FILLED, order.getOriginalAmount() = 1.0E-6, order.getAmount() = 1.0E-6, order.getRequestedAmount() = 1.0E-6 read from bottom up. I simply added this to the onMessage function: public void onMessage(IMessage message) throws JFException { Why is getOriginalAmount set on a fill only? |
Author: | API Support [ Thu 06 May, 2021, 16:31 ] |
Post subject: | Re: OriginalAmount is not set at order submit, why? |
Greetings. Current logic for orders is the following: Original amount is set immediately only for orders that are submitted by strategy. For orders submitted from JForex platform manually, original amount is set only when order is filled. Regards. |
Page 1 of 1 |