BetDetail COM getting partially matched stakes after UPDATE

Please post any questions regarding the program here.

Moderator: 2020vision

BetDetail COM getting partially matched stakes after UPDATE

Postby laffo16 » Mon Oct 13, 2008 2:51 am

basicly whats writen in the title. if i place a bet, then UPDATE it a few times and it is matched at different prices with different bet ref's, if i call the COM function BetDetails using the last given betref, will the

requestedSize:double Requested stake
matchedSize:double Matched stake

stay true to the original bet, or will this information ajust for each betref. eg, will the requeststake be less if a portion of the stake was matched by a previous betref before an UPDATE.

i'm under the assumption that for each partially matched betref i will also get seperate entries in the results log. if an unmatched betref is UPDATE, does this count as a CANCELLED on the bet log also? thanks
User avatar
laffo16
 
Posts: 172
Joined: Sun Jan 27, 2008 6:52 pm

Postby laffo16 » Mon Oct 13, 2008 3:03 am

i'm really looking for a single betref which i could COM call which would contain the over results of a bet including all UPDATE's?

also a single result posted in the results log with either the first or last given betref. but as trigger offsets are fired individualy on PM's, i think this may already be handled with seperate betref results?
User avatar
laffo16
 
Posts: 172
Joined: Sun Jan 27, 2008 6:52 pm

Re: BetDetail COM getting partially matched stakes after UPD

Postby GaryRussell » Tue Oct 14, 2008 9:45 am

laffo16 wrote:basicly whats writen in the title. if i place a bet, then UPDATE it a few times and it is matched at different prices with different bet ref's, if i call the COM function BetDetails using the last given betref, will the

requestedSize:double Requested stake
matchedSize:double Matched stake

stay true to the original bet, or will this information ajust for each betref. eg, will the requeststake be less if a portion of the stake was matched by a previous betref before an UPDATE.

i'm under the assumption that for each partially matched betref i will also get seperate entries in the results log. if an unmatched betref is UPDATE, does this count as a CANCELLED on the bet log also? thanks


The bet refs are not linked, each subsequent bet ref will have a lesser portion of the stake. You need to keep track of the bet refs and total them to get the overall position.

Yes, when you update a bet the old bet ref will appear as cancelled in the results.
User avatar
GaryRussell
Site Admin
 
Posts: 9871
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby GaryRussell » Tue Oct 14, 2008 10:04 am

laffo16 wrote:i'm really looking for a single betref which i could COM call which would contain the over results of a bet including all UPDATE's?

also a single result posted in the results log with either the first or last given betref. but as trigger offsets are fired individualy on PM's, i think this may already be handled with seperate betref results?


I would need to introduce the concept of a master bet ref which the program does not currently support.

The bet results sheet will only show the result from the original bet, not the offset bet, but you can work one out from the other.
User avatar
GaryRussell
Site Admin
 
Posts: 9871
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby laffo16 » Tue Oct 14, 2008 4:31 pm

thanks for the reply gary, on 2nd thought, i'm not sure wether having a master bet ref would be any more useful then having the seperate bet ref's, although it would be simplier to call and perhaps a little quicker to determin any unmatched stake from the master bet ref, it would not provide all the information which can be obtained from each individual ref.

if a master bet ref was made however, which bet ref would it use, would the individual (UPDATE) bet refs be ignored from the results log with the replacement of the master bet ref.
User avatar
laffo16
 
Posts: 172
Joined: Sun Jan 27, 2008 6:52 pm

Postby GaryRussell » Tue Oct 14, 2008 4:41 pm

laffo16 wrote:thanks for the reply gary, on 2nd thought, i'm not sure wether having a master bet ref would be any more useful then having the seperate bet ref's, although it would be simplier to call and perhaps a little quicker to determin any unmatched stake from the master bet ref, it would not provide all the information which can be obtained from each individual ref.

if a master bet ref was made however, which bet ref would it use, would the individual (UPDATE) bet refs be ignored from the results log with the replacement of the master bet ref.


If I was to create a master bet ref, it would have to be different from the Betfair references otherwise it could cause confusion and yes it would replace all the other references.
User avatar
GaryRussell
Site Admin
 
Posts: 9871
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby laffo16 » Tue Oct 14, 2008 4:47 pm

i think it would be nice a feature on 3rd thoughts lol ^^, perhaps just an additional condition to the getBet(ref:string, master_ref:boolean): BetDetail function which totals the linked bet refs, and leave the excel results log as it is. i suppose the 1st given bet ref would be considered the master ref, but i think it would be nice if the master_ref (when set) operated accordingly if any of the of the linked bet refs are used.
User avatar
laffo16
 
Posts: 172
Joined: Sun Jan 27, 2008 6:52 pm

Postby laffo16 » Tue Oct 14, 2008 4:50 pm

i guess this way, using the master bet just as a COM call, it would be more of a temporary calculation without the need of its own bet ref address.
User avatar
laffo16
 
Posts: 172
Joined: Sun Jan 27, 2008 6:52 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 53 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.