Return 494 (a custom order tag) in 35=AP when requested 35=AN in fix api

Created at 04 Apr 2024, 23:02
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!
FA

fabiofontes720

Joined 07.09.2023

Return 494 (a custom order tag) in 35=AP when requested 35=AN in fix api
04 Apr 2024, 23:02


Sorry about my English.

The personalized order label known on some platforms as a magic number facilitates the management of multiple strategies.

When the request "New Order Single (MsgType(35)=D)" is made, it returns 494 ("Designation", "A custom order label") but it does not return when "Request for Positions (MsgType(35)=AN)".


cTrader
@fabiofontes720
Replies

PanagiotisCharalampous
05 Apr 2024, 09:12

Hi there,

Can you share the FIX messages being exchanged?

Best regards,

Panagiotis


@PanagiotisCharalampous

fabiofontes720
05 Apr 2024, 18:56 ( Updated at: 07 Apr 2024, 05:23 )

RE: Return 494 (a custom order tag) in 35=AP when requested 35=AN in fix api

PanagiotisCharalampous said: 

Hi there,

Can you share the FIX messages being exchanged?

Best regards,

Panagiotis

Sure here are the fix api messages.

 

Here, when sending 35=D, it returns the magic number in 494= and 11=.

 

buy: 8=FIX.4.4|9=164|35=D|49=demo.fusionmarkets.10007833|56=CSERVER|34=3|52=20240405-18:43:32.589|57=TRADE|50=TRADE|11=95000|55=1|54=1|60=20240405-18:43:32.589|40=1|38=1000.0|494=95000|10=056|

 

recv: 8=FIX.4.4|9=214|35=8|34=3|49=CSERVER|50=TRADE|52=20240405-18:43:33.822|56=demo.fusionmarkets.10007833|57=TRADE|11=95000|14=0|37=1287417|38=1000|39=0|40=1|54=1|55=1|59=3|60=20240405-18:43:33.812|150=0|151=1000|494=95000|721=676817|10=014|8=FIX.4.4|9=232|35=8|34=4|49=CSERVER|50=TRADE|52=20240405-18:43:33.823|56=demo.fusionmarkets.10007833|57=TRADE|6=1.08368|11=95000|14=1000|32=1000|37=1287417|38=1000|39=2|40=1|54=1|55=1|59=3|60=20240405-18:43:33.813|150=F|151=0|494=95000|721=676817|10=105|

 

Here, when sending 35=AN, the personalized order label is not returned.

 

positions: 8=FIX.4.4|9=102|35=AN|49=demo.fusionmarkets.10007833|56=CSERVER|34=4|52=20240405-18:43:37.590|57=TRADE|50=TRADE|710=1|10=218|

 

recv: 8=FIX.4.4|9=163|35=AP|34=5|49=CSERVER|50=TRADE|52=20240405-18:43:38.513|56=demo.fusionmarkets.10007833|57=TRADE|55=1|710=1|721=676817|727=1|728=0|730=1.08368|702=1|704=1000|705=0|10=222|


@fabiofontes720

PanagiotisCharalampous
07 Apr 2024, 05:44

Hi there,

As per the specs, 494 is not a part of the position report. It is only applicable to orders.

Best regards,

Panagiotis


@PanagiotisCharalampous

fabiofontes720
07 Apr 2024, 16:35 ( Updated at: 08 Apr 2024, 05:23 )

RE: Return 494 (a custom order tag) in 35=AP when requested 35=AN in fix api

PanagiotisCharalampous said: 

Hi there,

As per the specs, 494 is not a part of the position report. It is only applicable to orders.

Best regards,

Panagiotis

I understand, is there any other way you would recommend to manage multiple strategies through the fix api?  Because without the magic number I don't see how I could do this.


Thanks


@fabiofontes720

PanagiotisCharalampous
08 Apr 2024, 06:20

RE: RE: Return 494 (a custom order tag) in 35=AP when requested 35=AN in fix api

fabiofontes720 said: 

PanagiotisCharalampous said: 

Hi there,

As per the specs, 494 is not a part of the position report. It is only applicable to orders.

Best regards,

Panagiotis

I understand, is there any other way you would recommend to manage multiple strategies through the fix api?  Because without the magic number I don't see how I could do this.


Thanks

Hi there,

One way would be to save this information on the client side. However FIX API is not recommended for complicated scenarios. You should consider Open API instead.

Best regards,


@PanagiotisCharalampous