Hi, I am quite new to working with the Betfair suite of APIs. I have got the majority of it all working, however I am now working with the Stream API.
I am building this in Node.js, using the delayed API Key and request to 'stream-api-integration.betfair.com' to horse racing markets.
I am subscribing successfully to both Market and Order streams and getting an initial oc and mc responses, with SUB_IMAGE provided.
However, after the delay of 300 seconds or whatever for delayed streams, I then receive the following mcm op that does not include a SUB_IMAGE parameter, even though the response is split into multiple messages to the client:
{"op":"mcm","id":2,"clk":"AO6VAgD2tQEAgZ4B","pt ":1 574446287032,"mc":[{"id":"1.165374963","rc":[{"atb":[[9.......to much data to paste here...
So, what am I not understanding here, if the request is sent in multiple parts, but does not tell me that it is?
I have another issue relating to when the the market turns in play, the 'inplay' attribute always stays as false, and I also sometimes receive market closed long before the market has even gone in play. I assume I am just not understanding the documentation very well. Any help appreciated, thanks.
I am building this in Node.js, using the delayed API Key and request to 'stream-api-integration.betfair.com' to horse racing markets.
I am subscribing successfully to both Market and Order streams and getting an initial oc and mc responses, with SUB_IMAGE provided.
However, after the delay of 300 seconds or whatever for delayed streams, I then receive the following mcm op that does not include a SUB_IMAGE parameter, even though the response is split into multiple messages to the client:
{"op":"mcm","id":2,"clk":"AO6VAgD2tQEAgZ4B","pt ":1 574446287032,"mc":[{"id":"1.165374963","rc":[{"atb":[[9.......to much data to paste here...
So, what am I not understanding here, if the request is sent in multiple parts, but does not tell me that it is?
I have another issue relating to when the the market turns in play, the 'inplay' attribute always stays as false, and I also sometimes receive market closed long before the market has even gone in play. I assume I am just not understanding the documentation very well. Any help appreciated, thanks.


Comment