Stop order to new position - FIX 4.4

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Stop order to new position - FIX 4.4

Vinicius Maciel
QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/


Hi everyone,

I'm trying to send a 'Stop order to new position', but the broker is requesting a tag that apparently does not supported by quickfix, which is tag 99 (Stopx - Price per unit of quantity). Below is quickfix client and broker server reply.

Client = 8=FIX.4.4 | 9=143 | 35=D | 34=5 | 49=fxpro.9924411 | 50=Trader | 52=20170313-01:27:55.718 | 56=CSERVER | 57=TRADE | 11=45753509 | 38=1000 | 40=3 | 54=1 | 55=1 | 59=3 | 60=20170313-01:27:55 | 10=068 

Server = 8=FIX.4.4 | 9=152 | 35=j | 34=4 | 49=CSERVER | 50=TRADE | 52=20170313-01:27:49.836 | 56=fxpro.9924411 | 57=Trader | 58=INVALID_REQUEST:Order should contain stop price | 379=45753509 | 380=0 | 10=034

Thanks,
Vinicius

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Quickfix-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfix-developers
Reply | Threaded
Open this post in threaded view
|

Re: Stop order to new position - FIX 4.4

Viktor Pogrebnyak
Hi, Vinicius.

What's stopping you from setting the tag 99 explicitly?

FIX44::NewOrderSingle msg;
....
msg.setField( FIX::StopPx( *your_stop_price* ) );
...

Regards,
Viktor