Sha256: 4872d44ec51ffa14d5fc674711a9ac52300c453b51ca1c0ec29c61bf7b907b1c

Contents?: true

Size: 1.5 KB

Versions: 1

Compression:

Stored size: 1.5 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:234'}, 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=9jcc4ts95ukg6q86wfjjtr7e
https://api.sportradar.com/oddscomparison-player-props/trial/v2/en/competitions/sr:competition:234/players_props.json?api_key=9jcc4ts95ukg6q86wfjjtr7e
https://api.sportradar.com/oddscomparison-player-props/trial/v2/en/sports.xml?api_key=9jcc4ts95ukg6q86wfjjtr7e

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sportradar-api-0.17.5.pre lib/sportradar/api/odds/README.md