Replies

svanharmelen
27 Dec 2017, 15:07

That is indeed how I do it now, but I was hoping it could be done a little cleaner.

And your last remark is also interesting. Again thanks for all your feedback!


@svanharmelen

svanharmelen
27 Dec 2017, 15:04

Yeah of course, that makes sense ;)

I came to the same conclusion after some random testing, but still thanks for the confirmation #EOL! 

 


@svanharmelen

svanharmelen
22 Dec 2017, 22:29

Hmm... I thought I should be alright, but I just noticed that the MDReqID is not send back in the W or X messages :(

So now I'm a little bit in trouble as it cannot tell which messages comes from which request. So if I do multiple requests at the same time for multiple symbols (all with their own MDReqID value), I cannot process the responses in parallel (one thread per MDReqID).

Is it possible that MDReqID is always returned? Or is there any other way for me to do this?

Thanks!


@svanharmelen

svanharmelen
21 Dec 2017, 18:02

RE:

#EOL said:

Take a look into section "6.3. Market Data Request" of the spec

It seems, you can subscribe for full refresh (type W) only for spots (top of the book)

Ah... I think I missed the part about the spots... Using 264=1 indeed makes the W messages work :)

For full book only incremental refresh is supported. With the first response message you should receive initial full book snapshot and with the next ones you should receive incremental refreshes.

Cool, my question was indeed about the initial book to start with. So if you can confirm that the initial response contains the current book (with max depth of 4 or 5 I believe, but that's fine), then I'm all good to go.

Thanks for your reaction #EOL!

 


@svanharmelen

svanharmelen
21 Dec 2017, 17:03

And if I try it with 263=0 I get this:

Request:

8=FIX.4.49=14135=V34=249=icmarkets.xxxxxxxxx=QUOTE52=20171220-16:58:44.32956=cServer57=QUOTE146=155=1262=xtdr263=0264=0265=0267=2269=0269=110=149

Response:

8=FIX.4.49=16335=Y34=249=cServer50=QUOTE52=20171220-16:58:44.34456=icmarkets.xxxxxxxxx=QUOTE58=INVALID_REQUEST: Unsupported SubscriptionRequestType(263)=0262=xxxx281=410=189

Thanks...

 


@svanharmelen

svanharmelen
21 Dec 2017, 17:00

Sure thing...

Request:

8=FIX.4.49=14135=V34=249=icmarkets.xxxxxxxxx=QUOTE52=20171221-14:26:12.16556=cServer57=QUOTE146=155=1262=xxxx263=1264=0265=0267=2269=0269=110=137

Responses:

8=FIX.4.49=41735=X34=249=cServer50=QUOTE52=20171221-14:26:12.18856=icmarkets.xxxxxxxxx=QUOTE268=6279=0269=1278=17818100655=1270=1.18603271=8000000279=0269=1278=17818100755=1270=1.18602271=1500000279=0269=1278=17818101055=1270=1.18601271=100000279=0269=0278=17818100555=1270=1.18601271=100000279=0269=0278=17818100455=1270=1.186271=4500000279=0269=0278=17818100355=1270=1.18599271=500000010=103

8=FIX.4.49=35535=X34=349=cServer50=QUOTE52=20171221-14:26:12.27056=icmarkets.xxxxxxxxx=QUOTE268=7279=0269=0278=17818224655=1270=1.18601271=4500000279=0269=0278=17818224455=1270=1.18602271=100000279=0269=1278=17818224855=1270=1.18602271=1600000279=2278=17818100555=1279=2278=17818100455=1279=2278=17818101055=1279=2278=17818100755=110=068

And of course more of these follow...

Thanks,

Sander

 


@svanharmelen

svanharmelen
21 Dec 2017, 10:39

Check, then at least I know I'm not doing anything wrong ;)

Already tried to sending multiple requests and that indeed seems to work fine...

Thanks,

Sander


@svanharmelen