Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Submit JForex API bug reports in this forum only.
    Submit Converter issues in Converter Issues.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Strange openPrice value for order
 Post subject: Strange openPrice value for order Post rating: 0   New post Posted: Mon 08 Nov, 2021, 18:40 

User rating: 3
Joined: Fri 15 Nov, 2019, 12:54
Posts: 16
Location: Poland,
Hi,

I'm tracking messages on orders and I get weird output.

I've got LONG position on EUR/USD at price 1.15903

17:16:50 ## order: 210295905 EUR/USD LONG FILLED (1000.0) OPEN: 1.15903 SL: 1.15832 TP: 1.15975

Next, on the platform, I'm changing the TP for the position to 1.15964. I get:

17:17:10 ### ID: 210295905 msgType: ORDER_CHANGED_OK msgReasons: [ORDER_CHANGED_TP, ORDER_CHANGED_PRICE] state: FILLED
17:17:10 ## order: 210295905 EUR/USD LONG FILLED (1000.0) OPEN: 1.1592 SL: 1.15832 TP: 1.15964

(why the open price changed???)

17:17:10 ### ID: 210295905 msgType: ORDER_CHANGED_OK msgReasons: [ORDER_CHANGED_PRICE] state: FILLED
17:17:10 ## order: 210295905 EUR/USD LONG FILLED (1000.0) OPEN: 1.15903 SL: 1.15832 TP: 1.15964

(open price returned to valid value)


Again, I'm changing TP to 1.15982. I get:

17:19:53 ### ID: 210295905 msgType: ORDER_CHANGED_OK msgReasons: [ORDER_CHANGED_TP, ORDER_CHANGED_PRICE] state: FILLED
17:19:53 ## order: 210295905 EUR/USD LONG FILLED (1000.0) OPEN: 1.15906 SL: 1.15832 TP: 1.15982

(the open price changed)

17:19:53 ### ID: 210295905 msgType: ORDER_CHANGED_OK msgReasons: [ORDER_CHANGED_PRICE] state: FILLED
17:19:53 ## order: 210295905 EUR/USD LONG FILLED (1000.0) OPEN: 1.15903 SL: 1.15832 TP: 1.15982

(open price returned to valid value).



Is that correct behaviour?
How to filter messages properly to skip this invalid ones?


 
 Post subject: Re: Strange openPrice value for order Post rating: 0   New post Posted: Tue 09 Nov, 2021, 11:50 

User rating: 3
Joined: Fri 15 Nov, 2019, 12:54
Posts: 16
Location: Poland,
I suppose this is side effect which has something to do with commission, nevertheless it is weird and it makes some problems in my code (calculating current exposure).


 
 Post subject: Re: Strange openPrice value for order Post rating: 0   New post Posted: Wed 01 Dec, 2021, 16:32 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
Greetings.

For proper issue investigation please send the details, orders date and account ID to [email protected]

Regards.


 

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