OZmium Sports Betting and Horse Racing Forums

OZmium Sports Betting and Horse Racing Forums (http://forums.ozmium.com.au/index.php)
-   General Topics (http://forums.ozmium.com.au/forumdisplay.php?f=59)
-   -   Question On Betfair Prices (http://forums.ozmium.com.au/showthread.php?t=31031)

Shaun 25th March 2016 04:13 PM

Question On Betfair Prices
 
I am just looking for the price structure of betfair in relation to prices increments.

For example.
from 1.01 to 1.99 i think is 1 cent
from 2.00 to 3.00 is 2 cents
and so on

Shaun 25th March 2016 04:15 PM

Never mind i found it :)

Odds Markets

Price
Increment
1.01 → 2 0.01
2→ 3 0.02
3 → 4 0.05
4 → 6 0.1
6 → 10 0.2
10 → 20 0.5
20 → 30 1
30 → 50 2
50 → 100 5
100 → 1000 10

UselessBettor 25th March 2016 04:38 PM

Shaun,

There is standard code out there which will check the next price increment. ie. when your at $3 and you ask for the next increment it gives back 3.05 but if your at $100 then it gives back $110.

Its on the bdp forum somewhere.

Shaun 25th March 2016 07:38 PM

Thanks, i will check it out.

UselessBettor 25th March 2016 08:25 PM

Java version:

public static double convertPrice(double price, int change)****
double priceNew = price;
if (price >= 1.01 && price <= 1.9999)****
priceNew = roundTwoDecimals(price+((0.005*change)+(change*0.0 00001)));
****
if(price >= 2.00 && price <= 2.9999)****
priceNew = (roundTwoDecimals((price/2)+((0.005*change)+(change*0.000001)))) * 2 ;
****
if (price >= 3.00 && price<= 3.9999)****
priceNew = (roundTwoDecimals((price/5)+((0.005*change)+(change*0.000001)))) * 5;
****

if (price >= 4.00 && price<= 5.9999)****
priceNew = (roundTwoDecimals((price/10)+((0.005*change)+(change*0.000001)))) * 10; //0.1
****
if (price >= 6.00 && price<= 9.9999)****
priceNew = (roundTwoDecimals((price/20)+((0.005*change)+(change*0.000001)))) * 20; //0.2
****
if (price >= 10.00 && price<= 20.000)****
priceNew = (roundTwoDecimals((price/50)+((0.005*change)+(change*0.000001)))) * 50; //0.5
****
if (price >= 20.00 && price<= 29.9999)****
priceNew = (roundTwoDecimals((price/100)+((0.005*change)+(change*0.000001))) ) * 100; //1
****
if (price >= 30.00 && price<= 49.9999)****
priceNew = (roundTwoDecimals((price/200)+((0.005*change)+(change*0.000001))) ) * 200; //2
****
if (price >= 50.00 && price<= 99.9999)****
priceNew = (roundTwoDecimals((price/500)+((0.005*change)+(change*0.000001))) ) * 500; //5
****
if (price >= 100.00 && price<= 1000)****
priceNew = (roundTwoDecimals((price/1000)+((0.005*change)+(change*0.000001)) )) * 1000; //10
****


return priceNew;
****


All times are GMT +10. The time now is 07:28 AM.

Powered by: vBulletin Version 3.0.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.