Sha256: 4c081cdf4779c2eed00af140d06d273da0542f933d1bfd0dde7ed5e84d3613fa
Contents?: true
Size: 1.42 KB
Versions: 11
Compression:
Stored size: 1.42 KB
Contents
# Some snippets ```ruby odds = Sportradar::Api::Odds::PlayerOdds.new data = odds.get_books data = odds.get_sports data = odds.get_event_mappings sport = odds.sports.first sport.get_competitions comp = sport.competitions.first api = Sportradar::Api::Odds::PlayerOdds.api comp = Sportradar::Api::Odds::Competition.new({'id' => 'sr:competition:109'}, api: api) data = comp.get_player_props comp.sport_events event = comp.sport_events.first odds = Sportradar::Api::Odds::PlayerOdds.new data = odds.get_sports sport = odds.sports.first sport.get_competitions comp = sport.competitions.first event = comp.sport_events.first event.player_props event.response prop = event.player_props.first prop.markets.count market = prop.markets.first market.response market.name bm = market.book_markets.first outcome = bm.outcomes.first # {"id"=>"sr:competition:8", "name"=>"LaLiga", "gender"=>"men", "markets"=>true, "futures"=>false, "player_props"=>true, "category"=>{"id"=>"sr:category:32", "name"=>"Spain", "country_code"=>"ESP"}}, ``` # Some links https://api.sportradar.com/oddscomparison-player-props/trial/v2/en/books.xml?api_key= https://api.sportradar.com/oddscomparison-player-props/trial/v2/en/sports/sr:sport:1/competitions.xml?api_key= https://api.sportradar.com/oddscomparison-player-props/trial/v2/en/competitions/sr:competition:234/players_props.json?api_key= https://api.sportradar.com/oddscomparison-player-props/trial/v2/en/sports.xml?api_key=
Version data entries
11 entries across 11 versions & 1 rubygems