Hi
I have got tthe market streaming API working using the Betfair example code. The non steaming API I think is pretty well explained in the docs but this steam stuff in my view is not well documented and is therefore pretty hazy in my understanding.
I have been perusing some dumped Json of the passed data parameter from the Betfair code.
At the top level you get Change{} Market{} Snap {} Data structures.
Change is straightforward, I can see data for the subset of runners where some data item has changed. This can modify the local market cache I have got.
Looking inside Market{} I can See Market.Snap.MarketDefinition {} and Market.Snap.MarketRunners {}
Then if I look inside the toplevel Snap structure I also see Snap.MarketDefinition {} and Snap.MarketRunners {}
These structures contain data for all runners and are quite big, they seem to be a duplicate of what is inside the Market {} structure ?
Whats going on there, why is there apparently large data structures duplicated in what is passed to my function ?
Are they current snapshots of all market data at that current moment in time or maybe a snapshot of the market at the time of market subscription ?
I can post some Json if the above is not clear. Any overview thoughts on this would be very useful please
Thanks
I have got tthe market streaming API working using the Betfair example code. The non steaming API I think is pretty well explained in the docs but this steam stuff in my view is not well documented and is therefore pretty hazy in my understanding.
I have been perusing some dumped Json of the passed data parameter from the Betfair code.
At the top level you get Change{} Market{} Snap {} Data structures.
Change is straightforward, I can see data for the subset of runners where some data item has changed. This can modify the local market cache I have got.
Looking inside Market{} I can See Market.Snap.MarketDefinition {} and Market.Snap.MarketRunners {}
Then if I look inside the toplevel Snap structure I also see Snap.MarketDefinition {} and Snap.MarketRunners {}
These structures contain data for all runners and are quite big, they seem to be a duplicate of what is inside the Market {} structure ?
Whats going on there, why is there apparently large data structures duplicated in what is passed to my function ?
Are they current snapshots of all market data at that current moment in time or maybe a snapshot of the market at the time of market subscription ?
I can post some Json if the above is not clear. Any overview thoughts on this would be very useful please
Thanks


Comment