refresh market

Please post any questions regarding the program here.

Moderator: 2020vision

refresh market

Postby dgs2001 » Wed Jul 14, 2010 9:18 am

Hi All

Is there a q2 trigger that refreshes the current market?

Duncan
User avatar
dgs2001
 
Posts: 334
Joined: Thu Apr 05, 2007 4:53 pm
Location: The Home Of National Hunt

Postby GaryRussell » Wed Jul 14, 2010 9:21 am

Sorry, there isn't. It's down to the design. The Q2 trigger is read on each refresh so if it's not refreshing then it can't be read and trigger a refresh.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby dgs2001 » Wed Jul 14, 2010 5:01 pm

Hmm Okay Thanks Gary

It caused a minor problem for me when a market had a non runner but my unrefreshed worksheet tried to place a bet and got stuck with "SELECTION_REMOVED".

Serves me right :oops: I shall make an adjustment to my worksheet code. :D

Duncan
User avatar
dgs2001
 
Posts: 334
Joined: Thu Apr 05, 2007 4:53 pm
Location: The Home Of National Hunt

Postby GaryRussell » Wed Jul 14, 2010 5:07 pm

Oh, you mean reload the market. I thought you meant force a refresh of prices. This is something I can consider.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby dgs2001 » Wed Jul 14, 2010 6:34 pm

Yes sorry Gary

I did indeed mean Reload the market.

Useful when changing from a long refresh back to a shorter one.

Duncan :)
User avatar
dgs2001
 
Posts: 334
Joined: Thu Apr 05, 2007 4:53 pm
Location: The Home Of National Hunt

Postby Spike » Thu Jul 15, 2010 8:56 am

Gary,

Would it be possible to force a refresh of prices via the COM?

Because that would be great....
Spike
 
Posts: 223
Joined: Tue Feb 24, 2009 8:42 pm

Postby GaryRussell » Thu Jul 15, 2010 9:07 am

Spike wrote:Gary,

Would it be possible to force a refresh of prices via the COM?

Because that would be great....

Not currently. I agree it would be useful and will try to include it in a future release.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Refresh current market?

Postby jrvoice » Mon Apr 22, 2013 11:57 am

Hi,

I've got the same issue - detecting NR's and refreshing the current market... is there any Q2 trigger which can do this?

Thanks,
Jon
jrvoice
 
Posts: 13
Joined: Thu Jan 13, 2011 11:57 am

Re: Refresh current market?

Postby GaryRussell » Mon Apr 22, 2013 1:36 pm

jrvoice wrote:Hi,

I've got the same issue - detecting NR's and refreshing the current market... is there any Q2 trigger which can do this?

Thanks,
Jon

Not exactly sure whether your issue is the same. Can you describe exactly what you are trying to achieve?
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby jrvoice » Mon Apr 22, 2013 2:22 pm

Apologies... Basically I'm looking to do a refresh of the same market if I detect a (NR) string in the runner name.

I've got a flag to detect the (NR) bit, at which point I want to reload the same, currently selected market.

If there is no existing Q2 "reload current market" trigger, can I use:
[Q2] = "GO:" & Worksheets("Gruss").Range("N3").Value or would it be ignored?

Many thanks
jrvoice
 
Posts: 13
Joined: Thu Jan 13, 2011 11:57 am

Postby KESIMKESIM » Tue Apr 23, 2013 10:12 pm

Hi, I think this Sub may help you. As I reload the market when I detect (NR) just as you are wanting to do by simply running the below.

Sub Reload()

Dim ba As BettingAssistantCom.ComClass

Application.EnableEvents = False
Application.ScreenUpdating = False

If ba Is Nothing Then Set ba = New BettingAssistantCom.ComClass
ba.TabIndex = 0
ID = Range("N3").Value
result = ba.openMarket(ID, 1)

Set ba = Nothing

Application.ScreenUpdating = True
Application.EnableEvents = True

End Sub


The ba.TabIndex =0 line is because this is to reload the first tab in BA, you need to increment this if you are using multiple tabs.

Best Regards.
KESIMKESIM
 
Posts: 74
Joined: Thu Nov 26, 2009 3:55 pm
Location: East Yorkshire

Postby jrvoice » Wed Apr 24, 2013 9:48 am

Thats excellent - thank you very much... I suspect my life would be easier if I used more COM classes, there are only so many hoops you can have VBA jump through :)

Thanks again...
jrvoice
 
Posts: 13
Joined: Thu Jan 13, 2011 11:57 am


Return to Help

Who is online

Users browsing this forum: Google [Bot] and 57 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.