Recording of Betfair Data

Discuss anything related to using the program (eg. triggered betting tactics)

Moderator: 2020vision

Recording of Betfair Data

Postby AndrewP » Sat May 09, 2009 1:59 pm

I know it's probably covered elsewhere on the forum but can anyone tell me the legal position with regard to recording Betfair market data for personal use. Is this permitted?

Also, is it possible using VBA and BA/Excel to create a csv file having the same name as the event being monitored and write data from certain cells to it as triggers fire? A sort of 'test' trading record if you like where not all data is recorded, only that relating to the triggered bets.

If it is possible can anyone help me with setting this up?

regards,

Andrew
AndrewP
 
Posts: 39
Joined: Sat Nov 03, 2007 10:52 am

Postby AndrewP » Thu May 28, 2009 11:12 pm

Mmmmm.

Can anyone recommend a good web site then where I might find help on saving ranges from Excel to text files. Failing that, a pointer to saving ranges to a separate worksheet (and incrementing the rows) will do.

Thanks,

Andrew
AndrewP
 
Posts: 39
Joined: Sat Nov 03, 2007 10:52 am

Postby GaryRussell » Fri May 29, 2009 7:43 am

I don't think there is a problem recording data for personal use, but we are certainly not allowed to provide software to allow you to do this unfortunately.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby AndrewP » Fri May 29, 2009 2:09 pm

Thanks Gary, the legal position is as I thought.

Now I just need to learn enough VBA to enable me to record data as bets are triggered. It's not just the betfair data such as price (I can get this from Betfair by placing very small bets) but I also need the data from my spreadsheet calculations that trigger the bets so I can analyse it. In this case it's an 'extent of value' that is calculated dynamically as prices fluctuate.

I'll get the books out.

Many thanks

Andrew
AndrewP
 
Posts: 39
Joined: Sat Nov 03, 2007 10:52 am

Postby alrodopial » Fri May 29, 2009 3:15 pm

alrodopial
 
Posts: 1384
Joined: Wed Dec 06, 2006 9:59 pm

Postby AndrewP » Sat Jun 06, 2009 8:38 pm

Alrodopial

Many thanks for the links. I've now managed to achieve what I set out to do and I've found lots of useful stuff on the MrExcel message board.

I'm not sure I've fully worked out the code in your 'soccer odds' sheet though. Is there any chance you (or anyone else for that matter) could put comments against each line or section of code to explain what it is doing?

Regards,

Andrew
AndrewP
 
Posts: 39
Joined: Sat Nov 03, 2007 10:52 am

Postby alrodopial » Tue Jun 09, 2009 8:54 pm

Code: Select all
Private Sub Worksheet_Change(ByVal Target As Range)
    ' Run the below code  only if there is a full update from BA (16 columns chance)
    If Target.Columns.Count = 16 Then
       
        Application.EnableEvents = False
        ' HT = extract the name of home team
        HT = Trim(Left(Range("A1"), InStr(Range("A1"), "v") - 1))
        ' If there is a new game (home team diff than previous games' home team) clear old data
        If HT <> Range("C21").Value Then Range("A21:IV65536").ClearContents
        'Find last row with data at column A
        LR = Range("A65536").End(xlUp).Row
        ' AT = extract the name of away team
        AT = Trim(Mid(Range("A1"), InStr(Range("A1"), "v") + 1, InStr(Range("A1"), "-") - InStr(Range("A1"), "v") - 1))
        ' ST = extract the starting time of game
        ST = Trim(Mid(Range("A1"), InStr(Range("A1"), ":") - 2, 5))
        ' CT = place current time
        CT = Time

        ' AM_H = Amount matched for home win
        ' AM_A = Amount matched for away win
        ' AM_D = Amount matched for draw

        If LR = 20 Then
            ""
            AM_A = ""
            AM_D = ""
        Else
            AM_H = Range("P5").Value - Range("R" & LR).Value
            AM_A = Range("P6").Value - Range("AJ" & LR).Value
            AM_D = Range("P7").Value - Range("BB" & LR).Value
        End If
        ' Create an array (range) with the below info and copy it at range A?:S?
        MyArray = Array(CT, ST, HT, "", Range("B5"), Range("C5"), Range("D5"), Range("E5"), Range("F5"), Range("G5"), Range("H5"), Range("I5"), Range("J5"), Range("K5"), Range("L5"), Range("M5"), Range("O5"), Range("P5"), AM_H)
        Range("A" & (LR + 1) & ":S" & (LR + 1)).Value = MyArray
        ' Create an array (range) with the below info and copy it at range U?:AK?
        MyArray = Array(AT, "", Range("B6"), Range("C6"), Range("D6"), Range("E6"), Range("F6"), Range("G6"), Range("H6"), Range("I6"), Range("J6"), Range("K6"), Range("L6"), Range("M6"), Range("O6"), Range("P6"), AM_A)
        Range("U" & (LR + 1) & ":AK" & (LR + 1)).Value = MyArray
        ' Create an array (range) with the below info and copy it at range AM?:BC?
        MyArray = Array("Draw", "", Range("B7"), Range("C7"), Range("D7"), Range("E7"), Range("F7"), Range("G7"), Range("H7"), Range("I7"), Range("J7"), Range("K7"), Range("L7"), Range("M7"), Range("O7"), Range("P7"), AM_D)
        Range("AM" & (LR + 1) & ":BC" & (LR + 1)).Value = MyArray
       
        Application.EnableEvents = True
       
    End If
   
End Sub
alrodopial
 
Posts: 1384
Joined: Wed Dec 06, 2006 9:59 pm

Postby AndrewP » Wed Jun 10, 2009 12:36 pm

That's excellent, it will help my learning considerably.

Many thanks,

Andrew
AndrewP
 
Posts: 39
Joined: Sat Nov 03, 2007 10:52 am

Postby thunderfoot » Mon Jul 06, 2009 8:13 pm

GaryRussell wrote:I don't think there is a problem recording data for personal use, but we are certainly not allowed to provide software to allow you to do this unfortunately.


Ummmm!! I use BA/BT and EXCEL to record data, so is using BA/BT as a tool linked to EXCEL breaking the rules!!?? :shock:
User avatar
thunderfoot
 
Posts: 270
Joined: Sat Nov 19, 2005 2:52 pm
Location: West Country

Postby GaryRussell » Mon Jul 06, 2009 8:16 pm

thunderfoot wrote:
GaryRussell wrote:I don't think there is a problem recording data for personal use, but we are certainly not allowed to provide software to allow you to do this unfortunately.


Ummmm!! I use BA/BT and EXCEL to record data, so is using BA/BT as a tool linked to EXCEL breaking the rules!!?? :shock:


Not for the purpose of triggering bets based on current odds. Betfair are ok with this. What else you do with this capability is up to you :wink:
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby Lynx pardina » Fri Jul 31, 2009 3:23 pm

Please, could anyone help me step by step in the use of the excel file for recording match odds?
I can't record, it did nothing when i log the market.
Thank you.
Lynx pardina
 
Posts: 1
Joined: Fri Jul 31, 2009 3:13 pm


Return to Discussion

Who is online

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