Announcement

Collapse
No announcement yet.

error when a race has a REMOVED horse

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • error when a race has a REMOVED horse

    I'm using the code provided in the 'betfair data science for python' section, and it returns the following error when there's a REMOVED horse in the race.

    Index Error: list index out of range

    this is the line that calls the function: runners_df = process_runner_books(market_book.runners)

    if all the horses are ACTIVE there is no problem, but any status with REMOVED causes the error.

  • #2
    Probably the same reason detailed here:

    https://stackoverflow.com/questions/...airlightweight

    I don't recommend the way AUS hub uses bflw.

    Comment


    • #3
      Originally posted by LiamP View Post
      Probably the same reason detailed here:

      https://stackoverflow.com/questions/...airlightweight

      I don't recommend the way AUS hub uses bflw.
      thanks, reading his post it says it fixed the issue, so I'm hopeful. That would be fantastic!

      Comment


      • #4
        Originally posted by Testify467 View Post

        thanks, reading his post it says it fixed the issue, so I'm hopeful. That would be fantastic!
        You may find interesting my library for data scientists:

        http://bfexplorer.net/Articles/Content/505
        Betfair BOT SDK

        Comment

        Working...
        X