Sha256: efa5615760f9f26016ff39bdf96aae49f43b18fc71a39f4d4163e0c193ca4b42

Contents?: true

Size: 1.42 KB

Versions: 5

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: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=
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

5 entries across 5 versions & 1 rubygems

Version Path
sportradar-api-0.19.0 lib/sportradar/api/odds/README.md
sportradar-api-0.18.1 lib/sportradar/api/odds/README.md
sportradar-api-0.18.0 lib/sportradar/api/odds/README.md
sportradar-api-0.17.6 lib/sportradar/api/odds/README.md
sportradar-api-0.17.5 lib/sportradar/api/odds/README.md