Hi,
I am working with the projected SP (near) price.
I've noticed that it seems that the near price is calculated by betfair once, and then cached and returned without recalculation for a certain length of time (a minute perhaps?)
I am working on something where I would like to know the near price based on the current market, and not with a potentially outdated value. A lot of markets don't move all that quickly, but the last minute on greyhound Win markets do.
I know there are some details given here: https://promo.betfair.com/betfairsp/...dWorkings.html but I'm looking at calculating the exact near price myself.
I will be calling `listMarketBook` with Project Projections of SP_TRADED and EX_ALL_OFFERS - I expect to be able to recreate the near price from this?
Has anyone done something similar before with any success? My thought is to first match the SP_TRADED values for backing at 1.01 and laying at 1000, then to include more cash on whichever side of the SP has offers available at limited prices (so say the highest BACK limit offer is 6.0 but the initial SP value was 5.0, we would add more to the back side).
Then after this, consider matching existing money from the exchange at the given price and see where that pushes the SP. Do we then cycle back to see if even more SP limit orders can be matched?
I know we can get the NEAR price from the API passing in SP_AVAILABLE as the price projection, but its largely not that useful, as its constantly out of date.
I am working with the projected SP (near) price.
I've noticed that it seems that the near price is calculated by betfair once, and then cached and returned without recalculation for a certain length of time (a minute perhaps?)
I am working on something where I would like to know the near price based on the current market, and not with a potentially outdated value. A lot of markets don't move all that quickly, but the last minute on greyhound Win markets do.
I know there are some details given here: https://promo.betfair.com/betfairsp/...dWorkings.html but I'm looking at calculating the exact near price myself.
I will be calling `listMarketBook` with Project Projections of SP_TRADED and EX_ALL_OFFERS - I expect to be able to recreate the near price from this?
Has anyone done something similar before with any success? My thought is to first match the SP_TRADED values for backing at 1.01 and laying at 1000, then to include more cash on whichever side of the SP has offers available at limited prices (so say the highest BACK limit offer is 6.0 but the initial SP value was 5.0, we would add more to the back side).
Then after this, consider matching existing money from the exchange at the given price and see where that pushes the SP. Do we then cycle back to see if even more SP limit orders can be matched?
I know we can get the NEAR price from the API passing in SP_AVAILABLE as the price projection, but its largely not that useful, as its constantly out of date.


Comment