1. #1
    playz
    playz's Avatar Become A Pro!
    Join Date: 01-31-09
    Posts: 494

    Excel Question

    Is it possible to import lines from 2 different books into excel and then have excel identify when they hit deserved odds? Odds would have to be refreshed often. Is there a way to do this? I would want the lines to refresh within Excel.

  2. #2
    Data
    Data's Avatar Become A Pro!
    Join Date: 11-27-07
    Posts: 2,236

    Yes, it is possible. See Excel help to find out how to refresh a web query. That can be done at timed intervals.

  3. #3
    playz
    playz's Avatar Become A Pro!
    Join Date: 01-31-09
    Posts: 494

    Here are the problems I am running into.. When I log into a sportsbook and try and import the data Excel says that I need to edit my query. If I don't login and go to their "public" lines which are not accurate and import that it works. I need to be logged in though to see the lines. Number 2.... I cant seem to be able to import matchbook lines. Any help would be appreciated.

  4. #4
    Data
    Data's Avatar Become A Pro!
    Join Date: 11-27-07
    Posts: 2,236

    Quote Originally Posted by playz View Post
    Here are the problems I am running into.. When I log into a sportsbook and try and import the data Excel says that I need to edit my query. If I don't login and go to their "public" lines which are not accurate and import that it works. I need to be logged in though to see the lines. Number 2.... I cant seem to be able to import matchbook lines. Any help would be appreciated.
    You are going to need to set up an XML feed.

    http://office.microsoft.com/en-us/excelHA011895301033.aspx?pid=CL100570551 033

    http://www.sportsbookreview.com/forum/handicappe...matchbook.html
    Last edited by Data; 05-02-09 at 09:17 AM.

  5. #5
    Data
    Data's Avatar Become A Pro!
    Join Date: 11-27-07
    Posts: 2,236

    http://www.sportsbookreview.com/forum/handicappe...matchbook.html

    The link above get screwed up, trying again.

  6. #6
    playz
    playz's Avatar Become A Pro!
    Join Date: 01-31-09
    Posts: 494

    I would like the lines to update faster than every 30 secs. From what I see from the post I would need the API from matchbook but do other books offer this. Just say I want up to the sec. lines from thegreek how would I do this? I do not even fully understand what the API is.

  7. #7
    Data
    Data's Avatar Become A Pro!
    Join Date: 11-27-07
    Posts: 2,236

    Quote Originally Posted by playz View Post
    I want up to the sec. lines
    That you cannot have in Excel.

  8. #8
    playz
    playz's Avatar Become A Pro!
    Join Date: 01-31-09
    Posts: 494

    I would like the lines to refresh like every 15 secs. Is that possible?

  9. #9
    TomG
    TomG's Avatar Become A Pro!
    Join Date: 10-29-07
    Posts: 500

    You can setup an XML data source in Excel and you can manually refresh it as often as you like. Some caveats though. If you refresh too often you draw the ire of the bookmaker for the burden you're putting on their servers. It will also take a few moments to refresh in Excel. It's not practical to use Excel for anything near real-time odds. It's best for using Excel's formulas for post-processing analysis on non-moving lines.

  10. #10
    MonkeyF0cker
    Update your status
    MonkeyF0cker's Avatar Become A Pro!
    Join Date: 06-12-07
    Posts: 12,144
    Betpoints: 1127

    The best way to go about this would be to code a scraper/XML reader that scrapes the data from certain bookmakers' web pages and imports the line feeds from the various books that offer them into a database. From there you can run queries against your database and draw the latest line info. I honestly wouldn't be too concerned about getting updates every 15 seconds. Pinnacle, for example, will cut off your access to their XML feed if you update more than every 60 seconds. It rarely makes a difference anyway. You won't miss that many moves in this timespan.

  11. #11
    Pancho sanza
    Pancho sanza's Avatar Become A Pro!
    Join Date: 10-18-07
    Posts: 386

    if you've set auto refresh every hour, do you need to open the file in order for the refreshed values to feed to other spreadsheets?

  12. #12
    Data
    Data's Avatar Become A Pro!
    Join Date: 11-27-07
    Posts: 2,236

    Quote Originally Posted by Pancho sanza View Post
    if you've set auto refresh every hour, do you need to open the file in order for the refreshed values to feed to other spreadsheets?
    yes, an unopened file does not get updated

  13. #13
    Pancho sanza
    Pancho sanza's Avatar Become A Pro!
    Join Date: 10-18-07
    Posts: 386

    thanks data

  14. #14
    Pancho sanza
    Pancho sanza's Avatar Become A Pro!
    Join Date: 10-18-07
    Posts: 386

    nt

  15. #15
    Pancho sanza
    Pancho sanza's Avatar Become A Pro!
    Join Date: 10-18-07
    Posts: 386

    This table is pass attempts in chronological order by a QB, for three different games, the #'s represent outcomes, 2 = complete, 5 = incomplete, 6 = interception etc.

    Date result

    20070910 2
    20070910 5
    20070910 2
    20070917 5
    20070917 2
    20070917 6
    20070924 1
    20070924 2
    20070924 3

    Theres more than 40 rows (attempts per game) but i've shortened things to illustrate.

    How do i organize the attempts so i can arrange them horizantally into another file, I want it to look like this, cells would be A1 through D5

    date pass att 1 pass att 2 pass att 3

    20070910 2 5 2
    20070917 5 2 6
    20070924 1 2 3

    thanks

  16. #16
    TomG
    TomG's Avatar Become A Pro!
    Join Date: 10-29-07
    Posts: 500

    Highlight. Copy. Paste Special. Transpose.

  17. #17
    Data
    Data's Avatar Become A Pro!
    Join Date: 11-27-07
    Posts: 2,236

    C2=IF($A2=$A3,B3,"")
    Copy and paste C2 to fill the whole sheet to the bottom and as much as needed to the right.
    Insert a new column B.
    B2=IF(A2=A1,0,1)
    Fill the new column B with that formula. You will get 1s for the first records of every day.
    Select all, copy, paste special, values. Sort by column B and remove block of lines where B equals 0 leaving only 1s. Delete column B. That's all.
    Last edited by Data; 05-08-09 at 10:41 AM. Reason: correcting steps to produce more transparent results

  18. #18
    MilfDriller
    MilfDriller's Avatar Become A Pro!
    Join Date: 11-23-08
    Posts: 10,186
    Betpoints: 60

    Data always doing good work.

  19. #19
    Data
    Data's Avatar Become A Pro!
    Join Date: 11-27-07
    Posts: 2,236

    Quote Originally Posted by MilfDriller View Post
    Data always doing good work.
    Thanks, I am trying.

    Please note, doing good work includes making mistakes. Putting in an effort to correct those mistakes and getting it right is an everlasting process. Thanks to all participating in that quest by asking and answering questions in this forum.

Top