Invalid Message Type AN

Created at 01 Oct 2019, 12:01
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!
85

85percent

Joined 09.12.2018

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


@85percent
Replies

wiktor.kisielewski
01 Oct 2019, 12:46

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.


@wiktor.kisielewski

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

85percent
02 Oct 2019, 14:47

Thank you very match.

Resolved.

Bye


@85percent