Coder Social home page Coder Social logo

pysbr's Issues

Sportbook Names

Is there a reverse look up for Sportsbook Names being used? From the documentation, the examples are Bovada and Pinnacle. Using BestLines, the SportBook Ids can be obtained. How can one obtain the Sports Book names?

Thanks.

UConn Huskies missing?

Small thing:

ncaab = NCAAB()
ncaab.team_id("uconn") # Not there
ncaab.team_id("huskies") # Not there
ncaab._team_ids

Can't find UConn Huskies for the life of me... is it just missing?? If not, what pattern can I use to find their id?

Great job with this by the way!!

OpeningLines for MLB require indexing sb.ids()

Grabbed the CurrentLines for Pinnacle (MLB, sometime in June 2019) and it worked fine with sb.ids('Pinnacle'):
closemoneylines = CurrentLines(e.ids(),mlb.market_ids(['moneyline']),sb.ids('Pinnacle'))

Tried the same thing with 'OpeningLines' instead of 'CurrentLines' and I got the following error:
TypeError: Expected <class 'int'>, got [20]

I checked and saw Pinnacle's ID was 20, so I just indexed sb.ids('Pinnacle') as shown below:
openmoneylines = OpeningLines(e.ids(),mlb.market_ids(['moneyline']),sb.ids('Pinnacle')[0])

Not a big deal but just wanted to point it out in case anyone runs into this issue! Maybe I'm doing something wrong too haha

Dataframe scores

In Events queries, period / quarter scores are out of order. NaN where there should be scores has also been observed.

SBR Service is no longer working

Hello,

As of today, SBR odds service appears to no longer be working. Is anyone else having issues?

Thanks for all the work you have done on this project! It is much appreciated.

Filter by bookie functionality not working?(We found just bookie name field incorrect due to sister sites/old names)

Based on this snippit of code:

   # Example options found here: https://github.com/JeMorriso/PySBR/blob/main/pysbr/config/sportsbooks.yaml
    bookie_list = ['BetOnline', 'Bovada']
    game_type = ['moneyline']

    ### END OF Configurable variables ###

    dt = datetime.strptime(datetime.today().strftime('%Y-%m-%d'), '%Y-%m-%d')
    nfl = NFL()
    nba = NBA()
    sb = Sportsbook()
    e_nfl = EventsByDate(nfl.league_id, dt)
    e_nba = EventsByDate(nba.league_id, dt)
    cl_nfl = CurrentLines(e_nfl.ids(), nfl.market_ids(game_type), sb.ids(bookie_list))
    cl_nba = CurrentLines(e_nba.ids(), nba.market_ids(game_type), sb.ids(bookie_list))

I should not get getting match results like so from NBA:

        elif game.league == "NBA":
            print("NBA LEAGUE GAME PROCESSING")
            for match in cl_nba.list(e_nba):
                if match['event'].lower().find(str(game.team_chosen).lower()):  # match found
                    if match['american odds'] >= int(game.american_odds):
                        if isinstance(game.bookie_odds, int):  # If another bookie has better value replace again
                            if match['american odds'] > game.bookie_odds:
                                game.bookie = match['sportsbook']
                                game.bookie_odds = match['american odds']
                        else:
                            game.bookie = match['sportsbook']
                            game.bookie_odds = match['american odds']

image

Where SportsBetting is still in the list when I specifically filter for only ['BetOnline', 'Bovada']

Version Used: 0.2.1
Python Version: 3.9

Issue with LineHistory() and multiple participants

When I run:
ol = LineHistory(max(e.ids()), ncaab.market_ids('ps')[0], sb.ids('Bovada')[0],[baylor[0],gonzaga[0]])
print(ol.dataframe())

I only get the dataframe for Gonzaga line history, and not both. Should the function be able to accept a list of Team IDs and return a full line history with both teams?

Line History for NBA Totals not returning

Hey Jeremy - great library. I was trying to pull line history for totals using the LineHistory function and it works for every other market except totals markets.

lh = LineHistory(4295653, 402, sb.id('BetOnline'), [1161, 1167])
lh.list()

lh = LineHistory(4295653, 401, sb.id('BetOnline'), [1161, 1167])
lh.list()

An example for you if you want to try.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.