williamhill 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format documentation
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in williamhill.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 Cristian Planas
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,41 @@
1
+ williamhill
2
+ ===========
3
+
4
+ WilliamHill is a wrapper for the William Hill "API". With it, you can easily access to all the data of the events offered by William Hill.
5
+
6
+ Basic Usage
7
+ -----------
8
+ To use the gem, first install it or add it to your Gemfile.
9
+
10
+ gem 'williamhill'
11
+
12
+ For extracting the data, first we need to decide which kind of events we want to check. William Hill offers events in all kind of sports. For that, the gem offers the class method `get_sports` that returns a Hash with the name of the event types as key and the id as value.
13
+
14
+ > WilliamHill.get_sports
15
+ => {"American Football"=>"19", "Baseball"=>"15", "US Basketball"=>"336", "European Basketball"=>"273", "International Cricket"=>"42", "UK Domestic Cricket"=>"9", "Cricket Specials"=>"383", "Darts"=>"335", "UK Football"=>"1", "International Football"=>"36", "European Major Leagues"=>"46", "Other League Football"=>"274", "UEFA Club Competitions"=>"275", "Football Specials"=>"276", "Football - Virtual"=>"436", "Golf Majors"=>"8", "Mens Golf"=>"40", "Cycling"=>"301", "Seniors Golf"=>"39", "Womens Golf"=>"277", "Golf Specials"=>"385", "Greyhounds - Live"=>"3", "Greyhound Hurdles - Virtual"=>"438", "Greyhounds - Virtual"=>"330", "US Greyhound Racing"=>"331", "Greyhounds - Antepost"=>"17", "Greyhounds - Specials"=>"386", "Horse Racing - Live"=>"2", "Horse Racing Sprint - Virtual"=>"439", "Horse National Hunt - Virtual"=>"442", "Horse Racing - Antepost"=>"13", "US Harness Racing"=>"333", "US Thoroughbred Racing"=>"332", "Horse Racing - Specials"=>"323", "NHL"=>"32", "International Ice Hockey"=>"401", "European Ice Hockey"=>"283", "Formula 1"=>"5", "Motor"=>"412", "Speedway"=>"419", "Moto GP"=>"420", "Athletics"=>"295", "Australian Rules"=>"18", "Boxing"=>"10", "UFC / MMA"=>"402", "Cycling - Virtual"=>"437", "GAA Football"=>"348", "Handball"=>"303", "GAA Hurling"=>"349", "Volleyball"=>"320", "Politics"=>"52", "Rugby League"=>"325", "Rugby Union"=>"7", "Snooker"=>"334", "TV Specials"=>"37", "Other Specials"=>"294", "Music Specials"=>"292", "Weather Specials"=>"293", "Grand Slam Tennis"=>"45", "Womens Tennis"=>"308", "Challenger Tennis"=>"424", "Tennis Specials"=>"392"}
16
+
17
+ Once we have chosen the events type, you have to create a WilliamHill object using its id. For example, `WilliamHill.new(19)` would create an object with all the information on American Football.
18
+
19
+ Getting Information
20
+ -------------------
21
+
22
+ Williamhill offers you plenty of ways to get the information. The most exhaustive one is the `get_full_markets` method. It will return all the markets offered by William Hill, with the following data:
23
+
24
+ + Id of the market in William Hill
25
+ + Name of the market
26
+ + Participants of the bet
27
+
28
+ Each participant includes:
29
+
30
+ + William Hill id
31
+ + Name of the participant
32
+ + Winning odds
33
+
34
+ One example:
35
+
36
+ > williamhill.get_full_markets("Spanish La Liga Primera")
37
+ => [{:id=>"43594787", :name=>"Valladolid v Real Betis - Match Betting", :odds=>[{:id=>"180951959", :name=>"Valladolid", :odds=>"2.05"}, {:id=>"180951960", :name=>"Draw", :odds=>"3.40"}, {:id=>"180951961", :name=>"Real Betis", :odds=>"3.60"}], :time=>2012-09-17 19:30:00 UTC, :bet_limit_time=>2012-09-17 19:30:00 UTC}, ...]
38
+
39
+ You can use `get_full_markets` without any parameters, in which case it will return all the markets for the given event type or with the name of a competition, in which case it will return all the markets for that competition.
40
+
41
+ Other methods to exploit the WH data are `get_competitions`, `get_markets` and `get_participants(market)`.
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
@@ -0,0 +1 @@
1
+ require 'williamhill/williamhill'
@@ -0,0 +1,3 @@
1
+ module Williamhill
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,97 @@
1
+ require 'nokogiri'
2
+ require 'open-uri'
3
+ require 'active_support/core_ext'
4
+
5
+ class WilliamHill
6
+ attr_reader :class_id, :market_type, :live, :xml
7
+
8
+ def initialize(class_id, options = nil)
9
+ @class_id = class_id
10
+ process_options(options) if options
11
+ url = generate_url
12
+
13
+ begin
14
+ @xml = Nokogiri::XML(@load_from_local || open(url))
15
+ process_filters
16
+ rescue
17
+ end
18
+ end
19
+
20
+ def self.get_sports
21
+ sports_url = "http://whdn.williamhill.com/pricefeed/openbet_cdn?action=template"
22
+ sports_xml = Nokogiri::XML(open(sports_url))
23
+ sports_xml.search("class").inject({}) do |res, value|
24
+ res.merge( { value.get_attribute("name") => value.get_attribute("id") } )
25
+ end
26
+ end
27
+
28
+ def get_competitions
29
+ @competitions ||= @xml.search("type").map { |value| value.get_attribute("name") }
30
+ end
31
+
32
+ def get_markets(event = nil)
33
+ xml_part = event ? @xml.search("type[name='#{event}']") : @xml
34
+ xml_part.search("market").map do |market|
35
+ market.get_attribute("name")
36
+ end
37
+ end
38
+
39
+ def get_participants(market)
40
+ xml_part = @xml.search("market[name='#{market}']")
41
+ xml_part.search("participant").map do |participant|
42
+ { :name => participant[:name], :odds => participant[:oddsDecimal] }
43
+ end
44
+ end
45
+
46
+ def get_full_markets(event = nil)
47
+ xml_part = event ? @xml.search("type[name='#{event}']") : @xml
48
+ xml_part.search("market").map do |market|
49
+ id = market.get_attribute("id")
50
+ name = market.get_attribute("name")
51
+ time = "#{market.get_attribute("date")} #{market.get_attribute("time")} +1".to_time
52
+ bet_limit_time = "#{market.get_attribute("betTillDate")} #{market.get_attribute("betTillTime")} +1".to_time
53
+
54
+ odds = market.search("participant").map do |participant|
55
+ { :id => participant[:id], :name => participant[:name], :odds => participant[:oddsDecimal] }
56
+ end
57
+
58
+ { :id => id, :name => name, :participants => odds, :time => time, :bet_limit_time => bet_limit_time }
59
+ end
60
+ end
61
+
62
+ private
63
+
64
+ def generate_url
65
+ params = {
66
+ :action => "template",
67
+ :template => "getHierarchyByMarketType",
68
+ :classId => @class_id
69
+ }
70
+
71
+ params[:marketSort] = @market_type if @market_type
72
+ params[:filterBIR] = @live ? "Y" : "N" unless @live.nil?
73
+
74
+ "http://whdn.williamhill.com/pricefeed/openbet_cdn?#{params.to_query}"
75
+ end
76
+
77
+ def process_options(options)
78
+ @market_type = options[:market_type] if options.has_key?(:market_type)
79
+ @live = options[:live] if options.has_key?(:live) && !!options[:live] == options[:live]
80
+ @filters = options[:filters] if options.has_key?(:filters)
81
+ @load_from_local = options[:load_from_local] if options.has_key?(:load_from_local)
82
+ end
83
+
84
+ def process_filters
85
+ @xml.xpath(generate_filtering_xpath).remove if @filters.present?
86
+ end
87
+
88
+ def generate_filtering_xpath
89
+ sentence = "//market[not(contains(@name, '"
90
+ sentence += @filters[0..-2].map do |filter|
91
+ "#{filter}') or contains(@name, '"
92
+ end.join
93
+ sentence += "#{@filters.last}'))]"
94
+
95
+ sentence
96
+ end
97
+ end
@@ -0,0 +1,7 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+ require 'williamhill'
4
+ require 'webmock/rspec'
5
+ require "nokogiri"
6
+
7
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
@@ -0,0 +1,3 @@
1
+ def mock_output(name)
2
+ File.read("#{File.dirname(__FILE__)}/#{name}")
3
+ end
@@ -0,0 +1,420 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- OXi dbPublish-->
3
+ <!-- Copyright (c) 2001, 2002, 2003 Orbis Technology Ltd. All rights reserved.-->
4
+ <oxip version="7.1" created="2012-07-23 11:29:21" lastMsgId="3436501864" requestTime="0.0178">
5
+ <response request="getHierarchyByMarketType" code="001" message="success" debug="">
6
+ <williamhill>
7
+ <class id="273" name="European Basketball" maxRepDate="2012-07-19" maxRepTime="11:42:06">
8
+ <type
9
+ id="8360"
10
+ name="Olympics - Women&amp;apos;s Basketball"
11
+ url="http://sports.williamhill.com/bet/betting/t/8360"
12
+ lastUpdateDate="2012-05-30"
13
+ lastUpdateTime="07:09:00">
14
+ <market
15
+ id="39371734"
16
+ name="China v Czech Republic - Money Line"
17
+ url="http://sports.williamhill.com/bet/en-gb/betting/e/3237046/China%2dv%2dCzech%2dRepublic"
18
+ date="2012-07-28"
19
+ time="09:00:00"
20
+ betTillDate="2012-07-28"
21
+ betTillTime="09:00:00"
22
+ lastUpdateDate="2012-07-19"
23
+ lastUpdateTime="11:42:06"
24
+ >
25
+ <participant
26
+ name="China"
27
+ id="165144088"
28
+ odds="23/20"
29
+ oddsDecimal="2.15"
30
+ lastUpdateDate="2012-07-23"
31
+ lastUpdateTime="07:42:22"
32
+ handicap=""/>
33
+ <participant
34
+ name="Czech Republic"
35
+ id="165144090"
36
+ odds="8/13"
37
+ oddsDecimal="1.62"
38
+ lastUpdateDate="2012-07-23"
39
+ lastUpdateTime="07:42:22"
40
+ handicap=""/>
41
+ </market>
42
+ <market
43
+ id="39371876"
44
+ name="Russia v Canada - Money Line"
45
+ url="http://sports.williamhill.com/bet/en-gb/betting/e/3237049/Russia%2dv%2dCanada"
46
+ date="2012-07-28"
47
+ time="11:15:00"
48
+ betTillDate="2012-07-28"
49
+ betTillTime="11:15:00"
50
+ lastUpdateDate="2012-07-18"
51
+ lastUpdateTime="13:53:45"
52
+ >
53
+ <participant
54
+ name="Russia"
55
+ id="165144483"
56
+ odds="1/100"
57
+ oddsDecimal="1.01"
58
+ lastUpdateDate="2012-07-18"
59
+ lastUpdateTime="12:50:11"
60
+ handicap=""/>
61
+ <participant
62
+ name="Canada"
63
+ id="165144486"
64
+ odds="11/1"
65
+ oddsDecimal="12.00"
66
+ lastUpdateDate="2012-07-18"
67
+ lastUpdateTime="13:53:45"
68
+ handicap=""/>
69
+ </market>
70
+ <market
71
+ id="39447171"
72
+ name="Canada v Russia - Money Line"
73
+ url="http://sports.williamhill.com/bet/en-gb/betting/e/3240890/Canada%2dv%2dRussia"
74
+ date="2012-07-28"
75
+ time="11:15:00"
76
+ betTillDate="2012-07-28"
77
+ betTillTime="11:15:00"
78
+ lastUpdateDate="2012-07-19"
79
+ lastUpdateTime="15:16:55"
80
+ >
81
+ <participant
82
+ name="Canada"
83
+ id="165411325"
84
+ odds="11/1"
85
+ oddsDecimal="12.00"
86
+ lastUpdateDate="2012-07-19"
87
+ lastUpdateTime="15:16:55"
88
+ handicap=""/>
89
+ <participant
90
+ name="Russia"
91
+ id="165411326"
92
+ odds="1/100"
93
+ oddsDecimal="1.01"
94
+ lastUpdateDate="2012-07-19"
95
+ lastUpdateTime="15:16:55"
96
+ handicap=""/>
97
+ </market>
98
+ <market
99
+ id="39371723"
100
+ name="Turkey v Angola - Money Line"
101
+ url="http://sports.williamhill.com/bet/en-gb/betting/e/3237047/Turkey%2dv%2dAngola"
102
+ date="2012-07-28"
103
+ time="14:30:00"
104
+ betTillDate="2012-07-28"
105
+ betTillTime="14:30:00"
106
+ lastUpdateDate="2012-07-19"
107
+ lastUpdateTime="11:42:06"
108
+ >
109
+ <participant
110
+ name="Angola"
111
+ id="165144059"
112
+ odds="11/1"
113
+ oddsDecimal="12.00"
114
+ lastUpdateDate="2012-07-19"
115
+ lastUpdateTime="11:42:06"
116
+ handicap=""/>
117
+ <participant
118
+ name="Turkey"
119
+ id="165144062"
120
+ odds="1/100"
121
+ oddsDecimal="1.01"
122
+ lastUpdateDate="2012-07-19"
123
+ lastUpdateTime="11:42:06"
124
+ handicap=""/>
125
+ </market>
126
+ <market
127
+ id="39371746"
128
+ name="USA v Croatia - Money Line"
129
+ url="http://sports.williamhill.com/bet/en-gb/betting/e/3237048/USA%2dv%2dCroatia"
130
+ date="2012-07-28"
131
+ time="16:45:00"
132
+ betTillDate="2012-07-28"
133
+ betTillTime="16:45:00"
134
+ lastUpdateDate="2012-07-19"
135
+ lastUpdateTime="11:42:06"
136
+ >
137
+ <participant
138
+ name="Croatia"
139
+ id="165144135"
140
+ odds="11/1"
141
+ oddsDecimal="12.00"
142
+ lastUpdateDate="2012-07-19"
143
+ lastUpdateTime="11:42:06"
144
+ handicap=""/>
145
+ <participant
146
+ name="USA"
147
+ id="165144153"
148
+ odds="1/100"
149
+ oddsDecimal="1.01"
150
+ lastUpdateDate="2012-07-19"
151
+ lastUpdateTime="11:42:06"
152
+ handicap=""/>
153
+ </market>
154
+ <market
155
+ id="39371842"
156
+ name="France v Brazil - Money Line"
157
+ url="http://sports.williamhill.com/bet/en-gb/betting/e/3237050/France%2dv%2dBrazil"
158
+ date="2012-07-28"
159
+ time="20:00:00"
160
+ betTillDate="2012-07-28"
161
+ betTillTime="20:00:00"
162
+ lastUpdateDate="2012-07-18"
163
+ lastUpdateTime="13:53:46"
164
+ >
165
+ <participant
166
+ name="Brazil"
167
+ id="165144397"
168
+ odds="18/5"
169
+ oddsDecimal="4.60"
170
+ lastUpdateDate="2012-07-18"
171
+ lastUpdateTime="13:53:46"
172
+ handicap=""/>
173
+ <participant
174
+ name="France"
175
+ id="165144400"
176
+ odds="1/6"
177
+ oddsDecimal="1.17"
178
+ lastUpdateDate="2012-07-18"
179
+ lastUpdateTime="13:53:46"
180
+ handicap=""/>
181
+ </market>
182
+ <market
183
+ id="39447166"
184
+ name="Brazil v France - Money Line"
185
+ url="http://sports.williamhill.com/bet/en-gb/betting/e/3240891/Brazil%2dv%2dFrance"
186
+ date="2012-07-28"
187
+ time="20:00:00"
188
+ betTillDate="2012-07-28"
189
+ betTillTime="20:00:00"
190
+ lastUpdateDate="2012-07-19"
191
+ lastUpdateTime="15:16:55"
192
+ >
193
+ <participant
194
+ name="Brazil"
195
+ id="165411313"
196
+ odds="18/5"
197
+ oddsDecimal="4.60"
198
+ lastUpdateDate="2012-07-19"
199
+ lastUpdateTime="15:16:55"
200
+ handicap=""/>
201
+ <participant
202
+ name="France"
203
+ id="165411314"
204
+ odds="1/6"
205
+ oddsDecimal="1.17"
206
+ lastUpdateDate="2012-07-19"
207
+ lastUpdateTime="15:16:55"
208
+ handicap=""/>
209
+ </market>
210
+ <market
211
+ id="39432705"
212
+ name="Australia v Great Britain - Money Line"
213
+ url="http://sports.williamhill.com/bet/en-gb/betting/e/3240780/Australia%2dv%2dGreat%2dBritain"
214
+ date="2012-07-28"
215
+ time="22:15:00"
216
+ betTillDate="2012-07-28"
217
+ betTillTime="22:15:00"
218
+ lastUpdateDate="2012-07-19"
219
+ lastUpdateTime="15:13:53"
220
+ >
221
+ <participant
222
+ name="Australia"
223
+ id="165365470"
224
+ odds="1/100"
225
+ oddsDecimal="1.01"
226
+ lastUpdateDate="2012-07-19"
227
+ lastUpdateTime="11:46:57"
228
+ handicap=""/>
229
+ <participant
230
+ name="Great Britain"
231
+ id="165365471"
232
+ odds="11/1"
233
+ oddsDecimal="12.00"
234
+ lastUpdateDate="2012-07-19"
235
+ lastUpdateTime="11:46:58"
236
+ handicap=""/>
237
+ </market>
238
+ </type>
239
+ <type
240
+ id="8361"
241
+ name="Olympics - Men&amp;apos;s Basketball"
242
+ url="http://sports.williamhill.com/bet/betting/t/8361"
243
+ lastUpdateDate="2012-05-30"
244
+ lastUpdateTime="07:09:00">
245
+ <market
246
+ id="39371463"
247
+ name="Nigeria v Tunisia - Money Line"
248
+ url="http://sports.williamhill.com/bet/en-gb/betting/e/3237040/Nigeria%2dv%2dTunisia"
249
+ date="2012-07-29"
250
+ time="09:00:00"
251
+ betTillDate="2012-07-29"
252
+ betTillTime="09:00:00"
253
+ lastUpdateDate="2012-07-19"
254
+ lastUpdateTime="11:42:06"
255
+ >
256
+ <participant
257
+ name="Nigeria"
258
+ id="165143342"
259
+ odds="1/3"
260
+ oddsDecimal="1.33"
261
+ lastUpdateDate="2012-07-19"
262
+ lastUpdateTime="11:42:06"
263
+ handicap=""/>
264
+ <participant
265
+ name="Tunisia"
266
+ id="165143344"
267
+ odds="2/1"
268
+ oddsDecimal="3.00"
269
+ lastUpdateDate="2012-07-19"
270
+ lastUpdateTime="11:42:06"
271
+ handicap=""/>
272
+ </market>
273
+ <market
274
+ id="39371603"
275
+ name="Brazil v Australia - Money Line"
276
+ url="http://sports.williamhill.com/bet/en-gb/betting/e/3237043/Brazil%2dv%2dAustralia"
277
+ date="2012-07-29"
278
+ time="11:15:00"
279
+ betTillDate="2012-07-29"
280
+ betTillTime="11:15:00"
281
+ lastUpdateDate="2012-07-19"
282
+ lastUpdateTime="11:42:06"
283
+ >
284
+ <participant
285
+ name="Brazil"
286
+ id="165143724"
287
+ odds="2/5"
288
+ oddsDecimal="1.40"
289
+ lastUpdateDate="2012-07-23"
290
+ lastUpdateTime="07:43:58"
291
+ handicap=""/>
292
+ <participant
293
+ name="Australia"
294
+ id="165143727"
295
+ odds="7/4"
296
+ oddsDecimal="2.75"
297
+ lastUpdateDate="2012-07-23"
298
+ lastUpdateTime="07:43:58"
299
+ handicap=""/>
300
+ </market>
301
+ <market
302
+ id="39371464"
303
+ name="USA v France - Money Line"
304
+ url="http://sports.williamhill.com/bet/en-gb/betting/e/3237041/USA%2dv%2dFrance"
305
+ date="2012-07-29"
306
+ time="14:30:00"
307
+ betTillDate="2012-07-29"
308
+ betTillTime="14:30:00"
309
+ lastUpdateDate="2012-07-19"
310
+ lastUpdateTime="11:42:06"
311
+ >
312
+ <participant
313
+ name="France"
314
+ id="165143343"
315
+ odds="11/1"
316
+ oddsDecimal="12.00"
317
+ lastUpdateDate="2012-07-19"
318
+ lastUpdateTime="11:42:07"
319
+ handicap=""/>
320
+ <participant
321
+ name="USA"
322
+ id="165143345"
323
+ odds="1/100"
324
+ oddsDecimal="1.01"
325
+ lastUpdateDate="2012-07-19"
326
+ lastUpdateTime="11:42:07"
327
+ handicap=""/>
328
+ </market>
329
+ <market
330
+ id="39371593"
331
+ name="Spain v China - Money Line"
332
+ url="http://sports.williamhill.com/bet/en-gb/betting/e/3237044/Spain%2dv%2dChina"
333
+ date="2012-07-29"
334
+ time="16:45:00"
335
+ betTillDate="2012-07-29"
336
+ betTillTime="16:45:00"
337
+ lastUpdateDate="2012-07-19"
338
+ lastUpdateTime="11:42:06"
339
+ >
340
+ <participant
341
+ name="China"
342
+ id="165143700"
343
+ odds="11/1"
344
+ oddsDecimal="12.00"
345
+ lastUpdateDate="2012-07-19"
346
+ lastUpdateTime="11:42:06"
347
+ handicap=""/>
348
+ <participant
349
+ name="Spain"
350
+ id="165143704"
351
+ odds="1/100"
352
+ oddsDecimal="1.01"
353
+ lastUpdateDate="2012-07-19"
354
+ lastUpdateTime="11:42:06"
355
+ handicap=""/>
356
+ </market>
357
+ <market
358
+ id="39384463"
359
+ name="Russia v Great Britain - Money Line"
360
+ url="http://sports.williamhill.com/bet/en-gb/betting/e/3237099/Russia%2dv%2dGreat%2dBritain"
361
+ date="2012-07-29"
362
+ time="20:00:00"
363
+ betTillDate="2012-07-29"
364
+ betTillTime="20:00:00"
365
+ lastUpdateDate="2012-07-19"
366
+ lastUpdateTime="11:42:06"
367
+ >
368
+ <participant
369
+ name="Great Britain"
370
+ id="165184052"
371
+ odds="13/4"
372
+ oddsDecimal="4.25"
373
+ lastUpdateDate="2012-07-19"
374
+ lastUpdateTime="11:42:06"
375
+ handicap=""/>
376
+ <participant
377
+ name="Russia"
378
+ id="165184053"
379
+ odds="1/5"
380
+ oddsDecimal="1.20"
381
+ lastUpdateDate="2012-07-19"
382
+ lastUpdateTime="11:42:06"
383
+ handicap=""/>
384
+ </market>
385
+ <market
386
+ id="39371471"
387
+ name="Argentina v Lithuania - Money Line"
388
+ url="http://sports.williamhill.com/bet/en-gb/betting/e/3237042/Argentina%2dv%2dLithuania"
389
+ date="2012-07-29"
390
+ time="22:15:00"
391
+ betTillDate="2012-07-29"
392
+ betTillTime="22:15:00"
393
+ lastUpdateDate="2012-07-19"
394
+ lastUpdateTime="11:42:05"
395
+ >
396
+ <participant
397
+ name="Lithuania"
398
+ id="165143361"
399
+ odds="5/4"
400
+ oddsDecimal="2.25"
401
+ lastUpdateDate="2012-07-19"
402
+ lastUpdateTime="11:42:06"
403
+ handicap=""/>
404
+ <participant
405
+ name="Argentina"
406
+ id="165143364"
407
+ odds="4/7"
408
+ oddsDecimal="1.57"
409
+ lastUpdateDate="2012-07-19"
410
+ lastUpdateTime="11:42:06"
411
+ handicap=""/>
412
+ </market>
413
+ </type>
414
+ </class>
415
+ <disclaimer>
416
+ WHG (International) Ltd (&quot;We/Us&quot;) of 6/1 Waterport Place, Gibraltar, owns the XML Feed Website ( the &quot;Website&quot;) relating to information contained on its main trading website. By using the Website You agree to these full Terms of Use available at http://developer.williamhill.com
417
+ </disclaimer>
418
+ </williamhill>
419
+ </response>
420
+ </oxip>