Hello.
I wrote function which calculates virtual bets long time ago and most of the time it works correctly but sometimes it doesn't show some prices (best prices) and some amounts.
I tried to solve the problem, but now I'm not sure that the problem is with my program but not with Betfair API.
I attached picture where there are response line from GetMarketPricesCompressed function, data from it in excel(for the sake of simplicity) and market on Betfair website.
As you can see second selection doesn't have prices to Lay among real prices. There are just two selections on this market so due to
1 / (N –∑ 1/(best to lay price of other runners))
formula 1.34 price for the first selection should not be there.
Some people told me about possible delays between web interface and API calls. If this is true could someone tell me about at least approximate quantity of this delay because from what I see it is at least several hours. Not so good for high frequency trading.
I was logged in both on website and in my program.
I wrote function which calculates virtual bets long time ago and most of the time it works correctly but sometimes it doesn't show some prices (best prices) and some amounts.
I tried to solve the problem, but now I'm not sure that the problem is with my program but not with Betfair API.
I attached picture where there are response line from GetMarketPricesCompressed function, data from it in excel(for the sake of simplicity) and market on Betfair website.
As you can see second selection doesn't have prices to Lay among real prices. There are just two selections on this market so due to
1 / (N –∑ 1/(best to lay price of other runners))
formula 1.34 price for the first selection should not be there.
Some people told me about possible delays between web interface and API calls. If this is true could someone tell me about at least approximate quantity of this delay because from what I see it is at least several hours. Not so good for high frequency trading.
I was logged in both on website and in my program.




Comment