Buy position not sending position id in response for "Indices" like NAS100 and UK100 but working for EURUSD and forex

Created at 08 Aug 2024, 10:27
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!
AM

amolch001

Joined 04.08.2024

Buy position not sending position id in response for "Indices" like NAS100 and UK100 but working for EURUSD and forex
08 Aug 2024, 10:27


Hello, 
 

When I buy an instrument, the following message is sent and the second line is response. The issue is that we dont get the position id in response and then it is very hard to find the position.
 

HK50

------

:SEND >>> 8=FIX.4.4|9=188|35=D|49=demo.pepperstone.3965339|50=TRADE|56=CSERVER|57=TRADE|34=5|52=20240808-09:45:56|11=1723110356542518618048|55=10004|54=1|60=20240808-09:45:56|38=7.0|40=1|494=EjtraderCT ClientID: 1|10=206|

:RECV <<< 8=FIX.4.4|9=143|35=W|34=9|49=CSERVER|50=QUOTE|52=20240808-09:45:56.515|56=demo.pepperstone.3965339|57=QUOTE|55=10004|268=2|269=0|270=16890.1|269=1|270=16895.1|10=063|
 

EURUSD

---

:SEND >>> 8=FIX.4.4|9=189|35=D|49=demo.pepperstone.3965339|50=TRADE|56=CSERVER|57=TRADE|34=5|52=20240808-09:50:19|11=1723110619726707938263|55=1|54=1|60=20240808-09:50:19|38=700000.0|40=1|494=EjtraderCT ClientID: 1|10=251|

:RECV <<< 8=FIX.4.4|9=140|35=W|34=32|49=CSERVER|50=QUOTE|52=20240808-09:50:19.768|56=demo.pepperstone.3965339|57=QUOTE|55=1|268=2|269=0|270=1.09281|269=1|270=1.09282|10=157|

 

 


@amolch001
Replies

PanagiotisCharalampous
09 Aug 2024, 06:09

Hi there,

When an order is executed, you should receive an ExecutionReport which contains the position ID. The responses you have pasted are not Execution Reports but Market Data Incremental Refresh. So you are probably looking at the wrong message.

Best regards,

Panagiotis


@PanagiotisCharalampous