Forums

General Betting

Welcome to Live View – Take the tour to learn more
Start Tour
There is currently 1 person viewing this thread.
Contrarian
14 Dec 11 20:05
Joined:
Date Joined: 19 May 03
| Topic/replies: 1,028 | Blogger: Contrarian's blog
I've just started to see delayed data being returned by some API calls.
Pause Switch to Standard View API just started playing up
Show More
Loading...
Report rivered December 14, 2011 8:08 PM GMT
Same here, this is happening far too often.
Report TheVis December 14, 2011 8:11 PM GMT
Yep same as was happening on Sat for me.  Too often indeed.
Report modk December 14, 2011 8:13 PM GMT
One of the cache is not being updated
Report Contrarian December 14, 2011 8:21 PM GMT
This is dire. Much worse than Saturday.
Report FINE AS FROG HAIR December 14, 2011 8:26 PM GMT
This is when us manual dinosaurs sit back and read with glee.
No not really Contrarian.
But it must give you botters some sleepless nights worrying about these sorts of problems I would presume.
Report modk December 14, 2011 8:29 PM GMT
Its causing some chaos on certain Soccer markets. Bots reacting to old data.
Report henok December 14, 2011 8:30 PM GMT
i thought it was my pc  Cool
Report Trevh December 14, 2011 8:33 PM GMT
Bets flashing all over the place.

Frog, you don't have to be a botter to use the API, it's a much more easy and efficient way of manual betting.
Report FINE AS FROG HAIR December 14, 2011 8:34 PM GMT
Opportunitie to profit abounding then ?
For those with quick fingers and nimble minds.
Too late in the day for me though alas. Slowing down time for me.
Report modk December 14, 2011 8:35 PM GMT
Fleece the sharks
Report FINE AS FROG HAIR December 14, 2011 8:37 PM GMT
Yeah I know trevh.
But it was primarily established for botters who like to trade automatically ? . Was it I don't know ?
But I agree high volume manual bettors, particularly in play, presumably also make necessary and valuable use of the API.
Report FINE AS FROG HAIR December 14, 2011 8:44 PM GMT
Did it in fact migrate over to sports betting from x-games in the first place ?
I mean how would have the original non BF mkt. makers on Xgames proceeded with an API ?
Impossible I would say, with a new game every couple of minutes.
Report Fred! December 15, 2011 1:46 PM GMT
Persistent intermittent issue for days now. Maybe it's just one dicky server in the farm or a network issue but I keep getting slow responses, around 1 in 20 requests take 100ms or more longer than expected.
Report bf_fananatic December 15, 2011 6:40 PM GMT
Perhaps the lesson here for all auto-bot users is make sure your software has good error trapping and can litigate correctly all possible retun calls to get better position outcomes.

There are a number of apps that can fall over when bet-placing when not fore-filling the bet objective through implicit procedure structure in relation to retuned information.
Report FINE AS FROG HAIR December 15, 2011 8:41 PM GMT
"--- fore-filling "
Wtf is that ?
Report FINE AS FROG HAIR December 15, 2011 8:59 PM GMT
And also I don't like the sound of " retuned information ".
Report DivideByZeroError December 16, 2011 1:44 PM GMT
BFF - if anyone knew what you were on about you'd be dangerous.

I just received a reply from Betfair to confirm that the lousy data on Saturday 10th was due to a "single server failures" and of course they are "working to ensure any such future failures are identified and rectified as quickly as possible so that they have minimal impact".

Apart from the "implicit procedure structure" approach of BFF, does anyone have any ways to catch a server problem? I haven't seen any updates on http://service.betfair.info/.
Report Fred! December 16, 2011 2:02 PM GMT
Simple way is to keep track of total matched volume, if it goes down and a non-runner hasn't just been declared then you are probably looking at old data from a wonky server.
Report bf_fananatic December 16, 2011 6:06 PM GMT
If you program the API yourself you can easily tell the returned data is incorrect if it does not comply to what you expect to get,then you take appropriate action to normalize your betting activities,
trying to do this via a third party app on the fly would cause many problems, the good news is that
server problems are rare but to assume servers done ever go wrong would be bad planning.
Report Contrarian December 16, 2011 6:42 PM GMT
Fred,

That will work for GetMarketPrices, but what about the other calls. I can't see that there is a simple way of distinguishing an outdated call from, say, GetMUBets. The only way, I think, of doing this is to have the program retain data over a period of time, so that it can know, for instance, that a bet that was previously recorded as matched is no longer showing in the return from GetMUBets, and therefore the data must be outdated.
Report bf_fananatic December 16, 2011 6:48 PM GMT
a lot can stray out of range when engaging in SOAP operations as you are ultimately relying on a second party to function the data beyond your control.
Report bf_fananatic December 16, 2011 6:50 PM GMT
am not knocking betfairs API as its servers are some of the best and busiest on the planet.
Report Contrarian December 16, 2011 6:57 PM GMT
BFF,

Do you have any concrete suggestions for failsafe ways of detecting outdated returned data?
Report bf_fananatic December 16, 2011 7:03 PM GMT
My comments are only from a programmers knowledgs, not up to that stage yet in my programming of the api and your comments about sometimes not knowing if the return call is outdate4d has been notedHappy
Report bf_fananatic December 16, 2011 7:05 PM GMT
a logical observation though of the problem is how do users know that the returned call is out-dated as if a human can tell this, then a computer would be able to do the same if programmed.
Report bf_fananatic December 16, 2011 7:06 PM GMT
after all a spade is a spade.
Report Contrarian December 16, 2011 7:15 PM GMT
Well, as I said before, it is quite easy to set up the program to distinguish outdated calls if one provides it with a memory of previously returned data. And that is obviously how we, as human observers, can see immediately that old data is being returned. The point is, though, that this is a pain. For lots of applications, you don't ordinarily want/need to be collecting the data as the program receives it. You just act on it and then move on.
Report frog2 December 16, 2011 8:56 PM GMT
Lots of extra checks and balances on code have had to be added these week for API progs. Mine have been failing all over the place. Website been running like clockwork though.
Report Bridgeboy December 16, 2011 8:59 PM GMT
On the phone to them now, my acc showing 0.00. . . .
Report DivideByZeroError December 17, 2011 2:09 AM GMT
Good tip from Fred!, thanks.

I think I would have to add a call to GetMarketTradedVolume to the cycle and look out for a decrease (not accompanied by a non-runner being declared). Contrarian, that would also work for you if you spot a problem with the traded volume you can guess that your GetMUBets data is unreliable. Tracking a change in the matched bets is tricky because something could become void or settled.

Maybe Betfair will decide to refund commission on markets where their servers send inaccurate information?
Report Fred! December 17, 2011 2:12 AM GMT
Personally I just mainly count errors when I place bets, if I receive too many ominous responses such as UNKNOWN_ERROR, INTERNAL_ERROR, or BET_IN_PROGRESS it's time to stop. I don't actually bet enough on each individual bet to be too concerned about having to know my exact position.
Report DivideByZeroError December 17, 2011 2:19 AM GMT
That's a conservative approach, trouble for me is that I generally leave the bot running during the day or overnight and so don't want a five minute server wobble to mean an early bath. And my margins are pretty tight so I do care about whether I got matched or not.
Report Fred! December 17, 2011 2:30 AM GMT
It's awkward. You take an early bath or expose yourself to risk. Another option if you see a wobble is to take a 5 minute nap. If you've taken 6 naps in the last half hour then it's time for bed!
Report Feck N. Eejit December 17, 2011 11:34 AM GMT
Never have so few required so much to supply so little while fleecing so many. An ugly superfluous monster  created by city half-wits.
Report bf_fananatic December 17, 2011 5:25 PM GMT
I suppose in trading terms a wonky server can be as problematic as a wonkey donkey in the backing
leagues.
Post Your Reply
<CTRL+Enter> to submit
Please login to post a reply.

Wonder

Instance ID: 13539
www.betfair.com