Invalid Message Type AN
Invalid Message Type AN
01 Oct 2019, 12:01
Hi guys.
i tried to use massage type AN to get positions but response is "Invalid Message type"
8=FIX.4.4|9=105|35=AN|49=icmarkets.3579259|56=CSERVER|57=QUOTE|50=3579259|34=2|52=20191001-08:55:55.100|710=776677667766|10=151|
i used without sucess in logon:
50=QUOTE
50=TRADE
50=account-number
i tried to repeat also on pepperstone live and demo account but nothing
Can you help me ?
Thanks in advance
Replies
85percent
01 Oct 2019, 13:33
RE:
wiktor.kisielewski said:
Try sending tags in diffrent order, like this:
8=FIX.4.4|9=100|35=AN|49=theBroker.12345|56=CSERVER|34=99|52=20170117- 10:09:54|50=any_string|57=TRADE|710=876316401|10=103|This is a sample message from documentation and it is working for me.
Thanks Wiktor but the problem remains.
I can get real time quotes ("msgType=V") but not positions (msgType=AN)
The fields order (excluding the initial three) are not important reading the standard.
Grazie e Ciao from Italy
@85percent
PanagiotisCharalampous
02 Oct 2019, 08:40
Hi 85percent,
To request positions, tag 57 needs to be TRADE. Yours is set to QUOTE.
Best Regards,
Panagiotis
@PanagiotisCharalampous
wiktor.kisielewski
01 Oct 2019, 12:46
Try sending tags in diffrent order, like this:
This is a sample message from documentation and it is working for me.
@wiktor.kisielewski