Betfair API-NG

Post Reply
PeterLe
Posts: 3724
Joined: Wed Apr 15, 2009 3:19 pm

I would have thought Betangel would have been right up there on the list; cant think of a bigger developer than betangel!
Ah well; not doubt they will get around to it when they are ready!
xitian
Posts: 457
Joined: Fri Jul 08, 2011 2:08 pm

PeterLe wrote:It would be interesting to know if anyone has access yet?
Regards
Peter
Yes, I've recently been invited to have a go. I don't know if that's just because I'm a direct API user, or if it's because they can see me hammering their servers and want me to start using streaming rather than polling :lol: ! Perhaps they are slowly adding more and more people to increase the load in stages, or perhaps I'm just a random guinea pig!

Obviously because of the concept of streaming, the API is very different to how API-NG works. It means you need to maintain the state of the market prices and volume since you'll only receive changes after receiving an initial full snapshot. There will be a little extra complexity around making sure you're in a consistent state after any disconnection too. All in all, it's likely to be as much work moving from API-NG to streaming as it was from the old API to API-NG.

The benefit will obviously be that there will no longer be such a thing as a "refresh time". I heard from someone that even receiving real-time data from every market on Betfair isn't a huge amount of data. I imagine this will be a big boon for people who automate things in Guardian (no more switching to current market). At the same time I don't expect it to be a trivial update to BetAngel.
PeterLe
Posts: 3724
Joined: Wed Apr 15, 2009 3:19 pm

That's interesting James!
I remember reading somewhere that it was due for release 25th march? Does that tie in with your expectations too?
Regards
Peter
xitian
Posts: 457
Joined: Fri Jul 08, 2011 2:08 pm

Yes, it was last week sometime that I was contacted. I'm still not sure if that means it's opened / available for everyone or not. But if not, I'm sure it will be soon.

Actually I was told that order streaming isn't available yet. So perhaps they are waiting until that's completed (next few weeks) before they bring everyone on board.

I'm not actually using it myself yet. Need to find time to do the conversion, plus I'd rather wait until they release a sample application so I make sure I use the API as intended.
LinusP
Posts: 1917
Joined: Mon Jul 02, 2012 10:45 pm

I am surprised you see it as such a major change xitian, I use an event driven framework and see it involving minimal work in order to use it. I use a similar framework on Oanda which uses streaming with no issue.

Do you stream at a market level and receive an update if there are any changes or can you pick the priceProjection?
xitian
Posts: 457
Joined: Fri Jul 08, 2011 2:08 pm

You subscribe to one or more markets either based on a filter or by marketIds you specify. Then you'll receive changes to the market data. You can optionally limit the amount of data you receive for the markets by specifying things like BEST_OFFERS (which I assume will only send you the front of the book) or TRADED_VOL, etc..

My code isn't written in an event driven way. My strategies aren't really based on triggers, but are more market-maker-y type things. So I have stuff in more of a program loop which updates bets (if necessary) after each cycle. I suppose now I just consider a cycle whenever anything changes, however that might amount to a lot of order updates unless I implement some code to prevent that.
User avatar
Euler
Posts: 26249
Joined: Wed Nov 10, 2010 1:39 pm

We got our invite this morning so can begin work.
PeterLe
Posts: 3724
Joined: Wed Apr 15, 2009 3:19 pm

Good News!
regards
Peter
PeterLe
Posts: 3724
Joined: Wed Apr 15, 2009 3:19 pm

Just wonder if the support guys had any initial thoughts/observations yet?
Regards
Peter
LinusP
Posts: 1917
Joined: Mon Jul 02, 2012 10:45 pm

£299 for any new users wanting aping access:

http://forum.bdp.betfair.com/showthread.php?t=3174
New customers who create a new Application Key are able to use the API with a Delayed Key (which by default now allows betting operations for new API customers) but need to apply and be approved for Live App Key API access before paying the £299 one off fee.
P45 for someone please.
PeterLe
Posts: 3724
Joined: Wed Apr 15, 2009 3:19 pm

I'm lucky that I got mine beforehand (seems a lot 299) I would have thouht they would want to encourage access via the API..
User avatar
jimibt
Posts: 4193
Joined: Mon Nov 30, 2015 6:42 pm

I funnily enough just saw this new £299 charge mentioned today as well elsewhere and was cursing as my *wife* was going to be opening a new BF account soon as she's developed some neat strategies that require a mix of BA and direct api access - grrr ;)

[edit] james (butler) mentions this change in an article here: http://www.betfairprotrader.co.uk/2016/ ... mptor.html
spreadbetting
Posts: 3140
Joined: Sun Jan 31, 2010 8:06 pm

Yep hard to see the mentality behind charging as any unauthorised commercial use could be closed down in seconds just by blocking that live key and they're tied to an account.
JayBee
Posts: 46
Joined: Wed Nov 10, 2010 11:26 am

Betfair's new policy...

Anyone attempting to create AppKeys after May 10th 2016 will have to pay £299 to activate the live key regardless of when they opened their account. In other words, "cough it up."

Full details...

http://www.betfairprotrader.co.uk/2016/ ... mptor.html

PS - I find it amusing that entering API-NG on this forum's search returns no results. :D
spreadbetting
Posts: 3140
Joined: Sun Jan 31, 2010 8:06 pm

I think it's only for accounts opened after 10 May 2016 not retrospectively charged.

Most internet and forum searches use the minus sign to exclude terms so I'd guess typing in "API-NG" would probably translate to search for "API" but not NG in the post, plus forums don't like to search for short terms under a certain amount of letters so API is probably overlooked too :)
Post Reply

Return to “Betfair Exchange API”