|
From: Yoandy P. V. <yoa...@gm...> - 2019-04-24 13:20:04
|
I'm implementing a FIX program as initiator that connect to market and send
& receive fix messages. In one step I need send MarketDataRequest message
to market, but something happened that the message is rejected by market.
I have tried add Fields Currency.FIELD and SettlType.FIELD, but in final
message in the final message they do not appear.
I need send message like:
8=FIXT.1.1 9=222 35=V 34=1013 49=**** 52=20190117-17:23:48.670 56=****
128=FGW 262=MD1 263=0 264=5 265=1 266=Y 146=1 55=GGAL 48=GGAL-0002-C-CT-ARS
167=GO 207=XMEV 15=ARS 63=2 267=9 269=0 269=1 269=2 269=4 269=5 269=7 269=8
269=B 269=3 10=215
But I can not put the tag 15 and 63 before the tag 267.
My code now:
InstrmtMDReqGrp instrmtMDReqGrp = new InstrmtMDReqGrp();
NoRelatedSym noRelatedSym = new NoRelatedSym(1); //146
instrmtMDReqGrp.set(noRelatedSym);
SettlType settlType = new SettlType(); // 63
settlType.setValue("2");
Currency currency = new Currency(); // 15
currency.setValue("ARS");
instrmtMDReqGrp.setField(Currency.FIELD, currency);
instrmtMDReqGrp.setField(SettlType.FIELD, settlType);
In the final message these fields do not appear.
I'm using quickfixj with quickfixj-spring-boot-starter 2.2.1.
--
*Yoandy Pérez Villazón, Ing, MSc.*
Desarrollador Java / Mobile
|