betfair 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,15 +20,15 @@ class SimpleBot
20
20
  SPORTS_IDS = [7] # Array of the sports ids you want
21
21
  LOCALE = nil # What coutry are you in? Dont really use this
22
22
  COUNTRIES = ['GBR'] # Array of countries you wish to check for
23
- FROM_DATE = Time.now.utc # Time you want to start checking from in UTC (which is basically GMT, which is the Betfair API time)
24
- TO_DATE = 30.minutes.from_now.utc # How far out do you want to look for markets
25
-
23
+ FROM_DATE = nil # This needs to be set within the loop on line 59
24
+ TO_DATE = nil # This needs to be set within the loop on line 59
25
+
26
26
  MARKET_NAMES_INGORE = ['To Be Placed'] # Array of markets to ignore
27
27
  MARKET_TYPE = 'O' # Not sure what this is
28
28
  MARKET_STATUS = 'ACTIVE' # Active market types
29
29
  NUMBER_OF_WINNERS = 1 # Only one winner per market
30
- BSP_MARKET = true # Starting price market ?
31
- IN_PLAY = 0 # 0 means not in play, anything above this means in play
30
+ BSP_MARKET = true # Starting price market ?
31
+ IN_PLAY = 0 # 0 means not in play, anything above this means in play
32
32
 
33
33
  ODDS = 2.0 # Bet on odds below this
34
34
  BET_SIDE = 'L' # What type of bet, B for back and L for Lay
@@ -56,7 +56,7 @@ class SimpleBot
56
56
  LOGGER.info("Keep alive - #{token}")
57
57
 
58
58
  LOGGER.info 'Fetching markets'
59
- markets = BF.get_all_markets(token, EXCHANGE_ID, SPORTS_IDS, LOCALE, COUNTRIES, FROM_DATE, TO_DATE)
59
+ markets = BF.get_all_markets(token, EXCHANGE_ID, SPORTS_IDS, LOCALE, COUNTRIES, Time.now.utc, 30.minutes.from_now.utc)
60
60
 
61
61
  if markets.is_a?(String) and markets != 'API_ERROR - NO_SESSION' # Markets returned correctly
62
62
  check_markets(token, markets)
@@ -216,7 +216,7 @@ module Betfair
216
216
  :get_all_markets_response,
217
217
  :eventTypeIds => { 'int' => event_type_ids },
218
218
  :locale => locale,
219
- :countries => { 'country' => countries },
219
+ :countries => { 'Country' => countries },
220
220
  :fromDate => from_date,
221
221
  :toDate => to_date )
222
222
 
@@ -1,3 +1,3 @@
1
1
  module Betfair
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: betfair
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-02 00:00:00.000000000Z
12
+ date: 2012-04-10 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: savon
16
- requirement: &70257704998720 !ruby/object:Gem::Requirement
16
+ requirement: &70221591308080 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70257704998720
24
+ version_requirements: *70221591308080
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &70257704998060 !ruby/object:Gem::Requirement
27
+ requirement: &70221591307300 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70257704998060
35
+ version_requirements: *70221591307300
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &70257704997020 !ruby/object:Gem::Requirement
38
+ requirement: &70221591306700 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70257704997020
46
+ version_requirements: *70221591306700
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: savon_spec
49
- requirement: &70257704996120 !ruby/object:Gem::Requirement
49
+ requirement: &70221591305940 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70257704996120
57
+ version_requirements: *70221591305940
58
58
  description: Gem for accessing the Betfair API.
59
59
  email:
60
60
  - lukeb@lukebyrne.com
@@ -121,7 +121,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  segments:
123
123
  - 0
124
- hash: -3043293436521522278
124
+ hash: 4287940534038569647
125
125
  required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  none: false
127
127
  requirements:
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  version: '0'
131
131
  segments:
132
132
  - 0
133
- hash: -3043293436521522278
133
+ hash: 4287940534038569647
134
134
  requirements: []
135
135
  rubyforge_project: betfair
136
136
  rubygems_version: 1.8.10