SimBot 0.1.6 → 0.1.7

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: bc5313c10db986331c1edb394eb7185dc8e525b1e7fd690998f73764447d5876
4
- data.tar.gz: 1d740f63e3f06209eda66ac32139d864df0354b651aab45ac305496bfddb81ac
3
+ metadata.gz: f23731bdfcde34aa3eb420707de46304af93442a5ae88dd75259fb72b72db81c
4
+ data.tar.gz: 96a2ceeec7de26a051c5058109280d9b4fb6980f4d5aa1e223c446d61c1a8dd9
5
5
  SHA512:
6
- metadata.gz: 05b30a3d81abc24b32e9286d1ee11d8a3a2ccd8b16416a0fb531c7324d05ad8191d118738527885a2667286843550882184d008580efc6382de6e0893096b6bd
7
- data.tar.gz: fb77fb72b6e278ab2920180b200ed8e0e5740fadc130d626b94a5f7939e62dbac17d507f77379cdb4897d965d6fff4c94533f40b03eb209e39e190f5b461388f
6
+ metadata.gz: 22c8bb00038be21ba541de53ea3885fd73e4f617e1b2f96eb3e3606562c8c4f74b904581d91482b529b7d34cbb5bd2ddf5573f21095c48e978f368c44e1c85bd
7
+ data.tar.gz: c4618db0c1411cfa7e2cf65ce0f9b52e155e8bb62756a18093f7f498907144249b3478bb68afb77b821aa22d710156ad71af52478f5ebf15c25eedd6d42d3245
@@ -3,14 +3,9 @@
3
3
  <component name="ChangeListManager">
4
4
  <list default="true" id="d905eaf2-5cab-434b-a4d1-1ccf165356a4" name="Default" comment="">
5
5
  <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
6
- <change beforePath="$PROJECT_DIR$/SimBot-0.1.1.gem" beforeDir="false" />
7
- <change beforePath="$PROJECT_DIR$/SimBot-0.1.2.gem" beforeDir="false" />
8
- <change beforePath="$PROJECT_DIR$/SimBot-0.1.3.gem" beforeDir="false" />
9
- <change beforePath="$PROJECT_DIR$/SimBot-0.1.4.gem" beforeDir="false" />
10
6
  <change beforePath="$PROJECT_DIR$/SimBot-0.1.5.gem" beforeDir="false" />
11
- <change beforePath="$PROJECT_DIR$/lib/Deamons/wash_trade.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/wash_trade.rb" afterDir="false" />
12
- <change beforePath="$PROJECT_DIR$/lib/SimBot.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/SimBot.rb" afterDir="false" />
13
- <change beforePath="$PROJECT_DIR$/lib/SimBot/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/SimBot/version.rb" afterDir="false" />
7
+ <change beforePath="$PROJECT_DIR$/SimBot-0.1.6.gem" beforeDir="false" />
8
+ <change beforePath="$PROJECT_DIR$/lib/wash_trade.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/wash_trade.rb" afterDir="false" />
14
9
  </list>
15
10
  <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
16
11
  <option name="TRACKING_ENABLED" value="true" />
@@ -26,11 +21,11 @@
26
21
  <splitter split-orientation="horizontal" split-proportion="0.52644426">
27
22
  <split-first>
28
23
  <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
29
- <file leaf-file-name="SimBot.rb" pinned="false" current-in-tab="false">
24
+ <file leaf-file-name="SimBot.rb" pinned="false" current-in-tab="true">
30
25
  <entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
31
26
  <provider selected="true" editor-type-id="text-editor">
32
- <state relative-caret-position="46">
33
- <caret line="2" column="23" lean-forward="true" selection-start-line="2" selection-start-column="23" selection-end-line="5" selection-end-column="18" />
27
+ <state relative-caret-position="276">
28
+ <caret line="12" column="62" selection-start-line="12" selection-start-column="54" selection-end-line="12" selection-end-column="62" />
34
29
  </state>
35
30
  </provider>
36
31
  </entry>
@@ -53,11 +48,11 @@
53
48
  </provider>
54
49
  </entry>
55
50
  </file>
56
- <file leaf-file-name="version.rb" pinned="false" current-in-tab="true">
51
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
57
52
  <entry file="file://$PROJECT_DIR$/lib/SimBot/version.rb">
58
53
  <provider selected="true" editor-type-id="text-editor">
59
- <state relative-caret-position="23">
60
- <caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
54
+ <state relative-caret-position="69">
55
+ <caret line="3" lean-forward="true" selection-start-line="3" selection-end-line="3" />
61
56
  </state>
62
57
  </provider>
63
58
  </entry>
@@ -114,8 +109,8 @@
114
109
  <file leaf-file-name="wash_trade.rb" pinned="false" current-in-tab="true">
115
110
  <entry file="file://$PROJECT_DIR$/lib/wash_trade.rb">
116
111
  <provider selected="true" editor-type-id="text-editor">
117
- <state relative-caret-position="184">
118
- <caret line="8" column="18" lean-forward="true" selection-start-line="8" selection-start-column="18" selection-end-line="8" selection-end-column="18" />
112
+ <state relative-caret-position="236">
113
+ <caret line="29" column="18" lean-forward="true" selection-start-line="29" selection-start-column="18" selection-end-line="29" selection-end-column="18" />
119
114
  </state>
120
115
  </provider>
121
116
  </entry>
@@ -155,6 +150,7 @@
155
150
  <option value="$PROJECT_DIR$/lib/utils.rb" />
156
151
  <option value="$PROJECT_DIR$/lib/SimBot.rb" />
157
152
  <option value="$PROJECT_DIR$/lib/SimBot/version.rb" />
153
+ <option value="$PROJECT_DIR$/lib/wash_trade.rb" />
158
154
  </list>
159
155
  </option>
160
156
  </component>
@@ -267,12 +263,12 @@
267
263
  <option name="presentableId" value="Default" />
268
264
  <updated>1525279604835</updated>
269
265
  <workItem from="1525279607229" duration="36216000" />
270
- <workItem from="1528301072964" duration="31957000" />
266
+ <workItem from="1528301072964" duration="33362000" />
271
267
  </task>
272
268
  <servers />
273
269
  </component>
274
270
  <component name="TimeTrackingManager">
275
- <option name="totallyTimeSpent" value="68173000" />
271
+ <option name="totallyTimeSpent" value="69578000" />
276
272
  </component>
277
273
  <component name="ToolWindowManager">
278
274
  <frame x="1440" y="22" width="1615" height="1058" extended-state="0" />
@@ -282,7 +278,7 @@
282
278
  <window_info anchor="bottom" id="Event Log" order="7" sideWeight="0.50380623" side_tool="true" weight="0.28540304" />
283
279
  <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
284
280
  <window_info anchor="bottom" id="Version Control" order="7" />
285
- <window_info anchor="bottom" id="Run" order="2" sideWeight="0.48719722" visible="true" weight="0.28540304" />
281
+ <window_info anchor="bottom" id="Run" order="2" sideWeight="0.48719722" weight="0.28540304" />
286
282
  <window_info anchor="bottom" id="Terminal" order="7" sideWeight="0.49619377" weight="0.41463414" />
287
283
  <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.22504768" />
288
284
  <window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
@@ -474,24 +470,24 @@
474
470
  </state>
475
471
  </provider>
476
472
  </entry>
477
- <entry file="file://$PROJECT_DIR$/lib/wash_trade.rb">
473
+ <entry file="file://$PROJECT_DIR$/lib/SimBot/version.rb">
478
474
  <provider selected="true" editor-type-id="text-editor">
479
- <state relative-caret-position="184">
480
- <caret line="8" column="18" lean-forward="true" selection-start-line="8" selection-start-column="18" selection-end-line="8" selection-end-column="18" />
475
+ <state relative-caret-position="69">
476
+ <caret line="3" lean-forward="true" selection-start-line="3" selection-end-line="3" />
481
477
  </state>
482
478
  </provider>
483
479
  </entry>
484
480
  <entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
485
481
  <provider selected="true" editor-type-id="text-editor">
486
- <state relative-caret-position="46">
487
- <caret line="2" column="23" lean-forward="true" selection-start-line="2" selection-start-column="23" selection-end-line="5" selection-end-column="18" />
482
+ <state relative-caret-position="276">
483
+ <caret line="12" column="62" selection-start-line="12" selection-start-column="54" selection-end-line="12" selection-end-column="62" />
488
484
  </state>
489
485
  </provider>
490
486
  </entry>
491
- <entry file="file://$PROJECT_DIR$/lib/SimBot/version.rb">
487
+ <entry file="file://$PROJECT_DIR$/lib/wash_trade.rb">
492
488
  <provider selected="true" editor-type-id="text-editor">
493
- <state relative-caret-position="23">
494
- <caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
489
+ <state relative-caret-position="236">
490
+ <caret line="29" column="18" lean-forward="true" selection-start-line="29" selection-start-column="18" selection-end-line="29" selection-end-column="18" />
495
491
  </state>
496
492
  </provider>
497
493
  </entry>
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- SimBot (0.1.5)
4
+ SimBot (0.1.6)
5
5
  json
6
6
  pusher-client
7
7
  rest-client
@@ -1,3 +1,3 @@
1
1
  module SimBot
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
@@ -20,7 +20,7 @@ module Deamons
20
20
  def start
21
21
  count = 0
22
22
  loop do
23
- vol = rand(1...10)
23
+ vol = rand(0.2...2)
24
24
  price = Utils.get_bchbtc_price
25
25
  @api.post_order(@market, price, vol, 'sell')
26
26
  delay = (1.00 / @freq)
@@ -29,6 +29,8 @@ module Deamons
29
29
  puts "order ##{count} placed"
30
30
  count += 1
31
31
  end
32
+ rescue ::StandardError => e
33
+ puts e
32
34
  end
33
35
 
34
36
  # Attempts to write the pid of the forked process to the pid file.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: SimBot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Ovadia
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-10 00:00:00.000000000 Z
11
+ date: 2018-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler