SimBot 0.1.12 → 0.1.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 830dc91b8545fa35ddbac32768e05e9b8681a9b401e42576ac142dd9924292d9
4
- data.tar.gz: 9959e7dcdc2d0300c83e475886a70488dccb4d22cb9ab309c8781ef36d3637b4
3
+ metadata.gz: 0b51e3b9ab75581f85ffcec039f95e6c72866c67b1c34fba12bf7043bd23a7e3
4
+ data.tar.gz: 47514f63841786f5e32df4c1269a76fb29562777f5cbc0dc500c43ce664a0e2d
5
5
  SHA512:
6
- metadata.gz: 1366c20dc32459c371c54b9330164948f3d1f00fbca27612323961b9b9b3b13b99a3ca11d586d27931100224f4721c543d668eab07f1ef29572f4e9ff6f39a46
7
- data.tar.gz: aa66d4ca96e62fa632225e840ba6e50a7af7375052471272ec53f2b4842863c8fff708441b652dc13f44e4cc3aff4103eedf8d160ce06232bd59dbcf5eae6d54
6
+ metadata.gz: bf4f37fc2fa72180ef9d32467e60ccf954eb47b2e6322fa4c506307437183b33f81aa7d86b95ab9714a7ea20cd3968fb8902954dac363f23122f967fb01a062d
7
+ data.tar.gz: 5b911eb558750bcd6206f397804920aa1805ecbf9dff035152a6386bf2d4b47e6afb8c602026fcfcab50011c07463ecf76e524dfeac24193414e889ade812691
@@ -2,9 +2,8 @@
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
4
  <list default="true" id="d905eaf2-5cab-434b-a4d1-1ccf165356a4" name="Default" comment="">
5
- <change beforePath="$PROJECT_DIR$/Gemfile.lock" beforeDir="false" afterPath="$PROJECT_DIR$/Gemfile.lock" afterDir="false" />
5
+ <change beforePath="$PROJECT_DIR$/SimBot-0.1.12.gem" beforeDir="false" />
6
6
  <change beforePath="$PROJECT_DIR$/lib/SimBot/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/SimBot/version.rb" afterDir="false" />
7
- <change beforePath="$PROJECT_DIR$/lib/utils.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/utils.rb" afterDir="false" />
8
7
  <change beforePath="$PROJECT_DIR$/lib/wash_trade.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/wash_trade.rb" afterDir="false" />
9
8
  </list>
10
9
  <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
@@ -109,8 +108,8 @@
109
108
  <file leaf-file-name="wash_trade.rb" pinned="false" current-in-tab="true">
110
109
  <entry file="file://$PROJECT_DIR$/lib/wash_trade.rb">
111
110
  <provider selected="true" editor-type-id="text-editor">
112
- <state relative-caret-position="140">
113
- <caret line="38" column="22" selection-start-line="38" selection-start-column="22" selection-end-line="38" selection-end-column="22" />
111
+ <state relative-caret-position="156">
112
+ <caret line="35" column="7" lean-forward="true" selection-start-line="35" selection-start-column="7" selection-end-line="35" selection-end-column="7" />
114
113
  </state>
115
114
  </provider>
116
115
  </entry>
@@ -149,8 +148,8 @@
149
148
  <option value="$PROJECT_DIR$/lib/Deamons/wash_trade.rb" />
150
149
  <option value="$PROJECT_DIR$/lib/SimBot.rb" />
151
150
  <option value="$PROJECT_DIR$/lib/utils.rb" />
152
- <option value="$PROJECT_DIR$/lib/SimBot/version.rb" />
153
151
  <option value="$PROJECT_DIR$/lib/wash_trade.rb" />
152
+ <option value="$PROJECT_DIR$/lib/SimBot/version.rb" />
154
153
  </list>
155
154
  </option>
156
155
  </component>
@@ -265,12 +264,12 @@
265
264
  <updated>1525279604835</updated>
266
265
  <workItem from="1525279607229" duration="36216000" />
267
266
  <workItem from="1528301072964" duration="35313000" />
268
- <workItem from="1528709208580" duration="9559000" />
267
+ <workItem from="1528709208580" duration="10176000" />
269
268
  </task>
270
269
  <servers />
271
270
  </component>
272
271
  <component name="TimeTrackingManager">
273
- <option name="totallyTimeSpent" value="81088000" />
272
+ <option name="totallyTimeSpent" value="81705000" />
274
273
  </component>
275
274
  <component name="ToolWindowManager">
276
275
  <frame x="1440" y="22" width="1615" height="1058" extended-state="0" />
@@ -543,17 +542,17 @@
543
542
  </state>
544
543
  </provider>
545
544
  </entry>
546
- <entry file="file://$PROJECT_DIR$/lib/SimBot/version.rb">
545
+ <entry file="file://$PROJECT_DIR$/lib/wash_trade.rb">
547
546
  <provider selected="true" editor-type-id="text-editor">
548
- <state relative-caret-position="23">
549
- <caret line="1" column="19" selection-start-line="1" selection-start-column="19" selection-end-line="1" selection-end-column="19" />
547
+ <state relative-caret-position="156">
548
+ <caret line="35" column="7" lean-forward="true" selection-start-line="35" selection-start-column="7" selection-end-line="35" selection-end-column="7" />
550
549
  </state>
551
550
  </provider>
552
551
  </entry>
553
- <entry file="file://$PROJECT_DIR$/lib/wash_trade.rb">
552
+ <entry file="file://$PROJECT_DIR$/lib/SimBot/version.rb">
554
553
  <provider selected="true" editor-type-id="text-editor">
555
- <state relative-caret-position="140">
556
- <caret line="38" column="22" selection-start-line="38" selection-start-column="22" selection-end-line="38" selection-end-column="22" />
554
+ <state relative-caret-position="23">
555
+ <caret line="1" column="19" selection-start-line="1" selection-start-column="19" selection-end-line="1" selection-end-column="19" />
557
556
  </state>
558
557
  </provider>
559
558
  </entry>
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- SimBot (0.1.11)
4
+ SimBot (0.1.12)
5
5
  json
6
6
  pusher-client
7
7
  rest-client
@@ -1,3 +1,3 @@
1
1
  module SimBot
2
- VERSION = "0.1.12"
2
+ VERSION = "0.1.13"
3
3
  end
@@ -5,6 +5,7 @@ module Deamons
5
5
  require 'utils'
6
6
  def initialize(api, market, freq)
7
7
  @g_count = 1
8
+ @range = 1.015
8
9
  @api = api
9
10
  @market = market
10
11
  @freq = freq
@@ -35,13 +36,12 @@ module Deamons
35
36
  end
36
37
 
37
38
  def move_price
38
- range = 1.015
39
39
  if @g_count > 60
40
- range = rand(1.003...1.010)
40
+ @range = rand(1.003...1.010)
41
41
  @g_count = 0
42
42
  end
43
43
  @g_count += 1
44
- Utils.quote(@market) * rand(1.002...range)
44
+ Utils.quote(@market) * rand(1.002...@range)
45
45
  end
46
46
 
47
47
  # Attempts to write the pid of the forked process to the pid file.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: SimBot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Ovadia