Topics
Replies
jam584St1
08 Jan 2019, 22:59
Hello. I've tested Request For Positions by your sample application. It's worked fine, but I'm not getting the same result from my script.
Examples:
------------------
Sample application messages:
Message:
8=FIX.4.49=10935=AN49=icmarkets.341327656=cServer57=TRADE50=341327634=252=20190108-20:38:20710=1408471721=5308327310=174
Result:
8=FIX.4.49=16335=AP34=249=cServer50=TRADE52=20190108-20:38:20.78156=icmarkets.341327657=341327655=1710=1408471721=53083273727=1728=0730=1.14437702=1704=0705=100010=091
------------------
My messages:
Message:
8=FIX.4.49=8935=AN49=icmarkets.341327656=cServer57=TRADE50=341327634=252=20190108-20:39:36.990710=711796383721=5308327310=222
Then after 10-20 seconds
Result:
8=FIX.4.49=9635=234=249=cServer50=TRADE52=20190108-20:46:33.34256=icmarkets.341327657=34132767=216=010=182
------------------
Why server send me ResendRequest? What could be the problem? I use port 5202 for trade to connect server. Could this be the cause?
@jam584St1
jam584St1
03 Jan 2019, 09:52
Can you check Request For Positions from your side? I want to know it does not work only for me or not.
@jam584St1
jam584St1
02 Jan 2019, 12:52
Yes I'm sure. I have 3 opened positions by FIX and one by cTrader. I've tried with PosMaintRptID, but still I get nothing. At least there must be an answer that "no open positions found that match criteria" by Position Report, but it is not. I don't understand why there is no answer at all.
@jam584St1
jam584St1
07 Dec 2018, 18:06
Thanks a lot! The problem was in script. I fixed it and everything is fine.
@jam584St1
jam584St1
07 Dec 2018, 13:40
Could you help me with this problem? Or someone else who has a similar issue? Because I can't continue to work with the fix api until I get the right prices.
@jam584St1
jam584St1
07 Dec 2018, 13:40
Could you help me with this problem? Or someone else who has a similar issue? Because I can't continue to work with the fix api until I get the right prices.
@jam584St1
jam584St1
06 Dec 2018, 12:36
Yes I get full depth. I check which orders are removed from the price book and leave only those that are not deleted. But i've noticed that max bid can be higher than min ask or vice versa and the spread is negative. When I compare fix market data with cTrader current market data, I get different prices. Why it happens?
@jam584St1
jam584St1
09 Jan 2019, 17:23
I've solved the issue. The problem was that BodyLength and CheckSum in my script have been incorrectly calculating for only this type of message. Thank you for your support.
@jam584St1