58=Required tag missing, field=372 372=j

Created at 31 Jan 2020, 01:34
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
AX

axsa

Joined 31.01.2020

58=Required tag missing, field=372 372=j
31 Jan 2020, 01:34


I wrote the code for 2 sessions in a DEMO account.

"Quote" and "Trade"

on the "Quote" session I receive market Quote incremental correctly, but I`m in trouble to "create a new order".

I`m trying to create a new order as the (cTraderFixApi_v2.16) description:
 - 5.4.4. New Order Single (MsgType(35)=D)

I follow the rules exctly as docs(cTraderFixApi_v2.16) and it`s not working.

I tried several configs from cTraderFixApi_v2.16.pdf and some others I`ve found on the internet,

here are some response examples:

8=FIX.4.49=14635=D34=249=pepperstone.MYACOUTNUMBER50=Trade52=20200128-10:34:04.99256=CSERVER57=TRADE11=87631639738=1040=P54=155=160=20200128-10:34:04.99110=055
8=FIX.4.49=14635=D34=249=pepperstone.MYACOUTNUMBER50=Trade52=20200128-10:37:05.42356=CSERVER57=TRADE11=87631639738=1040=154=155=160=20200128-10:37:05.42210=010
8=FIX.4.49=16235=D34=249=pepperstone.MYACOUTNUMBER50=Trade52=20200128-11:20:49.18656=CSERVER57=TRADE11=87631639738=1040=144=1.1015554=155=159=660=20200128-11:20:49.18510=249

I always receiving:

58=Required tag missing, field=372 372=j

complete response:
8=FIX.4.49=14735=334=349=pepperstone.MYACOUTNUMBER50=Trade52=20200130-23:06:30.89856=CSERVER57=TRADE45=258=Required tag missing, field=372371=372372=j373=110=081

I`ve test this the session TRADE it looks ok, like:
 - 5.4.15. Security List Request (MsgType(35)=x)

Response
8=FIX.4.49=339635=y34=249=CSERVER50=TRADE52=20200130-22:19:20.77156=pepperstone.MYACOUTNUMBER57=Trade320=SEC-REC-ID-111111111322=responce:SEC-REC-ID-111111111560=0146=12455=11007=EURUSD1008=555=21007=GBPUSD1008=555=31007=EURJPY1008=355=41007=USDJPY1008=355=51007=AUDUSD1008=555=61007=USDCHF1008=555=71007=GBPJPY1008=355=81007=USDCAD1008=555=9 ... and so on.

It is working.


I need some help, please?


@axsa
Replies

axsa
31 Jan 2020, 02:20

RE:

axsa said:

I wrote the code for 2 sessions in a DEMO account.

"Quote" and "Trade"

on the "Quote" session I receive market Quote incremental correctly, but I`m in trouble to "create a new order".

I`m trying to create a new order as the (cTraderFixApi_v2.16) description:
 - 5.4.4. New Order Single (MsgType(35)=D)

I follow the rules exctly as docs(cTraderFixApi_v2.16) and it`s not working.

I tried several configs from cTraderFixApi_v2.16.pdf and some others I`ve found on the internet,

here are some response examples:

8=FIX.4.49=14635=D34=249=pepperstone.MYACOUTNUMBER50=Trade52=20200128-10:34:04.99256=CSERVER57=TRADE11=87631639738=1040=P54=155=160=20200128-10:34:04.99110=055
8=FIX.4.49=14635=D34=249=pepperstone.MYACOUTNUMBER50=Trade52=20200128-10:37:05.42356=CSERVER57=TRADE11=87631639738=1040=154=155=160=20200128-10:37:05.42210=010
8=FIX.4.49=16235=D34=249=pepperstone.MYACOUTNUMBER50=Trade52=20200128-11:20:49.18656=CSERVER57=TRADE11=87631639738=1040=144=1.1015554=155=159=660=20200128-11:20:49.18510=249

I always receiving:

58=Required tag missing, field=372 372=j

complete response:
8=FIX.4.49=14735=334=349=pepperstone.MYACOUTNUMBER50=Trade52=20200130-23:06:30.89856=CSERVER57=TRADE45=258=Required tag missing, field=372371=372372=j373=110=081

I`ve test this the session TRADE it looks ok, like:
 - 5.4.15. Security List Request (MsgType(35)=x)

Response
8=FIX.4.49=339635=y34=249=CSERVER50=TRADE52=20200130-22:19:20.77156=pepperstone.MYACOUTNUMBER57=Trade320=SEC-REC-ID-111111111322=responce:SEC-REC-ID-111111111560=0146=12455=11007=EURUSD1008=555=21007=GBPUSD1008=555=31007=EURJPY1008=355=41007=USDJPY1008=355=51007=AUDUSD1008=555=61007=USDCHF1008=555=71007=GBPJPY1008=355=81007=USDCAD1008=555=9 ... and so on.

It is working.


I need some help, please?

Its working now.. thanks.
sorry :)


@axsa