Dukascopy
 
 
Wiki JStore Search Login

Order's close time changes and getCommsion = 0
 Post subject: Order's close time changes and getCommsion = 0 Post rating: 0   New post Posted: Fri 13 Jan, 2012, 21:26 
User avatar

User rating: 7
Joined: Fri 13 Jan, 2012, 20:49
Posts: 94
Location: Poland, Warsaw
Hi,

I have noticed recently an issue with close time and commsion of orders.

Close time is different when I retrive the information thru ORDER_CLOSE_OK Message and getOrdersHistory method. The difference is around 5 miliseconds. Another issue is that in such situation commision is equal to = 0 when checking by getOrdersHistory method and >0 when using ORDER_CLOSE_OK Message.

In majority of cases it works fine but in some unfortunately not. It is really causes a lot of problems because I cannot calculate correctly amount of paid commission when checking thru getOrdersHistory method.

I am talking about demo env.

Please investigate orders with ids 32306106 and 32326535. In my DB they look like following:
Pair         OrderId      Close Price   Commsion   Close time                            Close time (long) 
EURUSD   32306106   1.27746      0.58         2012-01-13 13:13:47.639       1 326 460 427 639   
EURUSD   32306106   1.27746      0.0           2012-01-13 13:13:47.645       1 326 460 427 645   
AUDJPY   32326535   79.164        0.18         2012-01-13 19:05:25.92         1 326 481 525 92   
AUDJPY   32326535   79.164        0.0           2012-01-13 19:05:25.925       1 326 481 525 925   


best regards,
kurak


 
 Post subject: Re: JFOREX-3445 Order's close time changes and getCommsion = Post rating: 0   New post Posted: Mon 16 Jan, 2012, 14:02 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
The issue has been registered


 
 Post subject: Re: JFOREX-3445 Order's close time changes and getCommsion = 0 Post rating: 0   New post Posted: Wed 18 Jan, 2012, 17:19 
User avatar

User rating: 7
Joined: Fri 13 Jan, 2012, 20:49
Posts: 94
Location: Poland, Warsaw
Hi,

I noticed that issue appears sometimes also on LIVE system. Please consider trade id: 10138835.

Close time catched by messge.getOrder() is equal to 1326890676815 (commision 0.74), later on for the same order but by context.getOrdersHistory() I get 1326890676822 (commision 0.0).

regards,
kurak


 
 Post subject: Re: JFOREX-3445 Order's close time changes and getCommsion = 0 Post rating: 0   New post Posted: Wed 11 Apr, 2012, 20:31 
User avatar

User rating: 7
Joined: Fri 13 Jan, 2012, 20:49
Posts: 94
Location: Poland, Warsaw
Hi again,

It looks like commision is taken into account correctly now whenever I use history.getOrdersHistory() or message.getOrder().

But using close time still differes between those two methods.

Examples from real account:
Order_Id:      message.getOrder().getCloseTime()   history.getOrdersHisotry()
12393941      2012-04-09 15:41:35.480                  2012-04-09 15:41:35.565   
12324647      2012-04-05 12:22:31.515                  2012-04-05 12:22:31.523
12295582      2012-04-04 09:23:20.731                  2012-04-04 09:23:20.742

I will try to use a workaround - when the ORDER_CLOSE_OK message arrives I will call history.getOrdersHistory() to be able to store consistent data.

But still can you please try to fix it as soon as possible?

regards,
kurak


 
 Post subject: Re: JFOREX-3445 Order's close time changes and getCommsion = 0 Post rating: 0   New post Posted: Mon 24 Sep, 2012, 22:11 
User avatar

User rating: 7
Joined: Fri 13 Jan, 2012, 20:49
Posts: 94
Location: Poland, Warsaw
Hello Support,

I would like you to REOPEN this bug as it still happens that IOrder retrived from IHistory returns commision equal to 0. Please consider order id = 42378185 on demo account.

best regards,
Kurak


 

Jump to:  

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