COM Interface and Market Closed

Please post any questions regarding the program here.

Moderator: 2020vision

COM Interface and Market Closed

Postby HiArt99 » Mon Aug 12, 2013 1:35 pm

Using the COM Interface, is there a way to detect that a Market is now Closed?

At the moment I am using prices().suspended for 5 seconds, but it feels a bit imprecise. Does the inPlay flag become False once the Market closes? If so, that'd make a better test I feel.

Basically I want to know when I can stop monitoring the odds on a footy match, which'll be after the full time whistle has blown. Then I can concentrate on the remaining matches.

Advice gratefully welcomed.

Ta

Art
If I get lost in thought it is because it is unfamiliar territory.
HiArt99
 
Posts: 68
Joined: Tue Aug 25, 2009 7:28 am

Postby osknows » Mon Aug 12, 2013 8:07 pm

The price object of the getPrices function contains

inPlay:boolean Indicates if market is in play
suspended:boolean Indicates if market is suspended

This doesn't exactly tell you if the market is closed but may be good enough?

An alternative (I haven't tested) is the function getMarketTradedVolume will return an enum in the errorCode value, one of which is MARKET_CLOSED
User avatar
osknows
 
Posts: 946
Joined: Wed Jul 29, 2009 12:01 am

Postby MarkRussell » Mon Aug 12, 2013 11:25 pm

Hi,

Gary added "closed" property to the price object.
It is a Boolean type field to indicate if the market is closed.
You need to be using Beta version greater than x58.

Regards,
Mark
User avatar
MarkRussell
Site Admin
 
Posts: 1793
Joined: Tue Feb 20, 2007 6:38 pm
Location: Birmingham


Return to Help

Who is online

Users browsing this forum: No registered users and 45 guests

Sports betting software from Gruss Software


The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.

Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.

Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.

He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.

We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.