Hi
I am using listMarketBook() to get the current prices and traded volume on a selection. I am using EX_ALL_OFFERS and EX_TRADED params to get full book depth. What I have done so far is basically working but I am a bit puzzled by the traded volume list it is returning.
Some of the entries are at the standard Betfair price increments E.g. £9.75 @ 7.0, but I am also getting lots of non standard increments E.g. £8.08 @ 7.62. After a little thought this makes sense as a Back order may have been placed at a tick where 50% got matched at the requested tick, but 50% may have got matched at the tick above, giving a price average in the middle of the tick interval. (Please correct me if this isn't the explaination)
As I am trying to make myself a Ladder type form, having traded volume return at non standard intervals is a pain. Is there a setting I can tweak to persuade the server to round the returned data to the nearest standard tick ?
At the moment I am throwing away returned traded volumes that aren't at standard ticks. This of course means that the displayed rows of traded volumes don't add up to the totalTraded volume on that selection that I am also displaying.
Thanks for any help.
Geoff
I am using listMarketBook() to get the current prices and traded volume on a selection. I am using EX_ALL_OFFERS and EX_TRADED params to get full book depth. What I have done so far is basically working but I am a bit puzzled by the traded volume list it is returning.
Some of the entries are at the standard Betfair price increments E.g. £9.75 @ 7.0, but I am also getting lots of non standard increments E.g. £8.08 @ 7.62. After a little thought this makes sense as a Back order may have been placed at a tick where 50% got matched at the requested tick, but 50% may have got matched at the tick above, giving a price average in the middle of the tick interval. (Please correct me if this isn't the explaination)
As I am trying to make myself a Ladder type form, having traded volume return at non standard intervals is a pain. Is there a setting I can tweak to persuade the server to round the returned data to the nearest standard tick ?
At the moment I am throwing away returned traded volumes that aren't at standard ticks. This of course means that the displayed rows of traded volumes don't add up to the totalTraded volume on that selection that I am also displaying.
Thanks for any help.
Geoff



Comment