Dukascopy
 
 
Wiki JStore Search Login

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.

Identify PLACE_OFFER or PLACE_BID in onMessage
 Post subject: change in OrderCommand BUYXXX.../SELLXXX... of a conditional order at ORDER_FILL_OK to BUY or SELL - bug or feature ? Post rating: 0   New post Posted: Sun 19 Aug, 2012, 21:17 
User avatar

User rating: 94
Joined: Mon 06 Feb, 2012, 12:22
Posts: 357
Location: Portugal, Castelo Branco
Hi Dukascopy Support:

When i submit a conditional order, at the moment of receiving the correspondent Imessage with ORDER_SUBMIT_OK, the OrderCommand is the original one, but at the moment the order is filled and ORDER_FILL_OK is received in IMessage, the OrderCommand is changed to BUY or SELL. It's a bug or a intended way ? If is the way how to filter if the ORDER_FILL_OK cames from a conditional order ?

I hope to be clear in explanation, if not, just ask.
Image

Best regards

JL


Attachments:
ordercommandbug.png [4.99 KiB]
Downloaded 471 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: change in OrderCommand BUYXXX.../SELLXXX... of a conditional order at ORDER_FILL_OK to BUY or SELL - bug or feature ? Post rating: 0   New post Posted: Wed 29 Aug, 2012, 14:22 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
This is as designed.


 
 Post subject: Re: change in OrderCommand BUYXXX.../SELLXXX... of a conditional order at ORDER_FILL_OK to BUY or SELL - bug or feature ? Post rating: 0   New post Posted: Wed 29 Aug, 2012, 15:17 
User avatar

User rating: 94
Joined: Mon 06 Feb, 2012, 12:22
Posts: 357
Location: Portugal, Castelo Branco
Hi Support:

Thank you for your answer. There is any way to filter if the fill of the order cames from a conditional order ? Or the only way is maintaining a implemented set or similar with the conditional orders at order creation to verify this ?

Best regards

JL


 
The Best Answer  Post subject: Re: change in OrderCommand BUYXXX.../SELLXXX... of a conditional order at ORDER_FILL_OK to BUY or SELL - bug or feature ? Post rating: 0   New post Posted: Wed 29 Aug, 2012, 15:35 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
jlongo wrote:
Or the only way is maintaining a implemented set or similar with the conditional orders at order creation to verify this ?
In the current API implementation this is the case.


 
 Post subject: Identify PLACE_OFFER or PLACE_BID in onMessage Post rating: 0   New post Posted: Thu 11 Oct, 2012, 20:18 
User avatar

User rating: 98
Joined: Mon 23 Jul, 2012, 02:02
Posts: 656
Location: United States, Durham, NC
It appears to me that PLACE_OFFER order, when it fills in onMessage, through IOrder.getCommand() returns OrderCommand "SELL" and I was hoping it would be more specific to tell me it was something similar to, e.g., SELLOFFER. Is there a way to make that distinction? If I create the order, I could put something in a label, but if it's created by some other facility, then I'd like to be able to distinguish.
Thanks !! HyperScalper


 
 Post subject: Re: Identify PLACE_OFFER or PLACE_BID in onMessage Post rating: 0   New post Posted: Fri 12 Oct, 2012, 00:07 
User avatar

User rating: 94
Joined: Mon 06 Feb, 2012, 12:22
Posts: 357
Location: Portugal, Castelo Branco
Hi Hiperscalper:

I faced same beavior trying to determine the OrderCommand after the order is submited... At fill the OrderCommand is set to SELL ou BUY... the only way i see at the moment is generating a set at each order placement with the data we want to mantain, or as you suggested, by the order label. I asked to Support about this beavior here -> viewtopic.php?f=65&t=47875.

Best regards

JL


 

Jump to:  

  © 1998-2025 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