SimBot 0.1.26 → 0.1.27

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ecf38cefe777ca32442de992829c6055d3fba4a41d192eb3f8af23a1983709b3
4
- data.tar.gz: 2424f5352a1b9eb9a14f6b52159a9776c710123d34a43b16a71ec2487b7b3b00
3
+ metadata.gz: 2658f6c2ec78520e1672c74cc0021ce72efa6200dd2ab3d1c93f710dfb61a329
4
+ data.tar.gz: 4f71b19ccc17559c5c55cab8018fbeb9c02d9b5be10e63ecc5da3d3a5fbd0410
5
5
  SHA512:
6
- metadata.gz: f2de0463c494824ff97333828809b305e96be84fb10bbd78ee2077b2e283864c5af4435b1cc6de84a6716b54958227ab09bf38c9e070292f681a5be2b75d698e
7
- data.tar.gz: 9fefc087534e42817702e071c53f0cbff02d9239db174644d9914a4e45cafcc38fb02a242354eec17011eaea5d0a9f19ca2a1fbf873d48272a36c73470a01e90
6
+ metadata.gz: 04eeaae8b28f211f049982e1a9f08063cee7f29af3681e4b8208a09254165058a5af23c631b44c63d4cdd9dd9a80c30c58d4b1f55fce0fa4791f337638cd130a
7
+ data.tar.gz: c77115a877363c4ce8c80f5253edec4f71e4b0e5c765c2f8b7271f2ca4844f5546a3bcb32f4668c2daf99acc59193048562050b09fbfb5998309d2612cfa71b6
@@ -38,8 +38,8 @@
38
38
  <file leaf-file-name="SimBot.rb" pinned="false" current-in-tab="true">
39
39
  <entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
40
40
  <provider selected="true" editor-type-id="text-editor">
41
- <state relative-caret-position="412">
42
- <caret line="30" column="82" selection-start-line="30" selection-start-column="82" selection-end-line="30" selection-end-column="82" />
41
+ <state relative-caret-position="165">
42
+ <caret line="19" column="80" selection-start-line="19" selection-start-column="52" selection-end-line="19" selection-end-column="80" />
43
43
  </state>
44
44
  </provider>
45
45
  </entry>
@@ -96,8 +96,8 @@
96
96
  <file leaf-file-name="simple_mm.rb" pinned="false" current-in-tab="false">
97
97
  <entry file="file://$PROJECT_DIR$/lib/Deamons/simple_mm.rb">
98
98
  <provider selected="true" editor-type-id="text-editor">
99
- <state relative-caret-position="311">
100
- <caret line="46" column="81" selection-start-line="46" selection-start-column="81" selection-end-line="46" selection-end-column="81" />
99
+ <state relative-caret-position="384">
100
+ <caret line="80" column="3" selection-start-line="80" selection-start-column="3" selection-end-line="80" selection-end-column="3" />
101
101
  </state>
102
102
  </provider>
103
103
  </entry>
@@ -308,27 +308,37 @@
308
308
  <workItem from="1531824473237" duration="2590000" />
309
309
  <workItem from="1532528275009" duration="12558000" />
310
310
  <workItem from="1532961242324" duration="27612000" />
311
- <workItem from="1534345863853" duration="1441000" />
311
+ <workItem from="1534345863853" duration="2441000" />
312
312
  </task>
313
313
  <servers />
314
314
  </component>
315
315
  <component name="TimeTrackingManager">
316
- <option name="totallyTimeSpent" value="156681000" />
316
+ <option name="totallyTimeSpent" value="157681000" />
317
+ </component>
318
+ <component name="TodoView">
319
+ <todo-panel id="selected-file">
320
+ <is-autoscroll-to-source value="true" />
321
+ </todo-panel>
322
+ <todo-panel id="all">
323
+ <are-packages-shown value="true" />
324
+ <is-autoscroll-to-source value="true" />
325
+ </todo-panel>
317
326
  </component>
318
327
  <component name="ToolWindowManager">
319
328
  <frame x="36" y="22" width="1645" height="1028" extended-state="0" />
320
329
  <editor active="true" />
321
330
  <layout>
322
- <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.19900188" />
323
- <window_info anchor="bottom" id="TODO" order="6" />
324
- <window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
331
+ <window_info anchor="bottom" id="TODO" order="6" weight="0.32995495" />
325
332
  <window_info anchor="bottom" id="Event Log" order="7" sideWeight="0.50904554" side_tool="true" weight="0.3457207" />
326
- <window_info anchor="right" id="Database" order="3" />
327
333
  <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
328
- <window_info anchor="bottom" id="Run" order="2" sideWeight="0.48658764" visible="true" weight="0.3536036" />
334
+ <window_info anchor="bottom" id="Run" order="2" sideWeight="0.48658764" weight="0.3536036" />
329
335
  <window_info anchor="bottom" id="Version Control" order="7" weight="0.3292683" />
336
+ <window_info active="true" anchor="bottom" id="Terminal" order="7" sideWeight="0.49095446" visible="true" weight="0.33896396" />
337
+ <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.19900188" />
338
+ <window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
339
+ <window_info anchor="right" id="Database" order="3" />
340
+ <window_info anchor="bottom" id="Find" order="1" sideWeight="0.49896193" weight="0.32897604" />
330
341
  <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
331
- <window_info anchor="bottom" id="Terminal" order="7" sideWeight="0.49095446" weight="0.33896396" />
332
342
  <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
333
343
  <window_info id="Favorites" order="2" side_tool="true" />
334
344
  <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
@@ -338,7 +348,6 @@
338
348
  <window_info anchor="bottom" id="Messages" order="7" sideWeight="0.49965397" weight="0.3293348" />
339
349
  <window_info anchor="bottom" id="Message" order="0" />
340
350
  <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
341
- <window_info anchor="bottom" id="Find" order="1" sideWeight="0.49896193" weight="0.32897604" />
342
351
  </layout>
343
352
  <layout-to-restore>
344
353
  <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
@@ -568,15 +577,15 @@
568
577
  </entry>
569
578
  <entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
570
579
  <provider selected="true" editor-type-id="text-editor">
571
- <state relative-caret-position="412">
572
- <caret line="30" column="82" selection-start-line="30" selection-start-column="82" selection-end-line="30" selection-end-column="82" />
580
+ <state relative-caret-position="165">
581
+ <caret line="19" column="80" selection-start-line="19" selection-start-column="52" selection-end-line="19" selection-end-column="80" />
573
582
  </state>
574
583
  </provider>
575
584
  </entry>
576
585
  <entry file="file://$PROJECT_DIR$/lib/Deamons/simple_mm.rb">
577
586
  <provider selected="true" editor-type-id="text-editor">
578
- <state relative-caret-position="311">
579
- <caret line="46" column="81" selection-start-line="46" selection-start-column="81" selection-end-line="46" selection-end-column="81" />
587
+ <state relative-caret-position="384">
588
+ <caret line="80" column="3" selection-start-line="80" selection-start-column="3" selection-end-line="80" selection-end-column="3" />
580
589
  </state>
581
590
  </provider>
582
591
  </entry>
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- SimBot (0.1.24)
4
+ SimBot (0.1.26)
5
5
  json
6
6
  mail
7
7
  rest-client
@@ -25,7 +25,6 @@ module Deamons
25
25
  loop do
26
26
  data = Utils.binane_order_book
27
27
  populate_order_book(data)
28
- sleep(500)
29
28
  count += 1
30
29
  rescue ::StandardError => e
31
30
  STDERR.puts e.backtrace
@@ -39,12 +38,12 @@ module Deamons
39
38
  nums = (0..range).to_a.shuffle
40
39
  for i in (0..range)
41
40
  ord = data[:bids][nums[i]]
42
- txID = JSON.parse(@api.post_order(@market, ord[0].to_f, ord[1].to_f / 500, 'buy'))
41
+ txID = JSON.parse(@api.post_order(@market, ord[0].to_f, ord[1].to_f / 1000, 'buy'))
43
42
  puts txID
44
43
  ord.push(txID['id'])
45
44
  @api.cancel_order(@order_book[:bids][nums[i]][-1]) if @order_book[:bids].size > 400
46
45
  ord = data[:asks][nums[i]]
47
- txID = JSON.parse(@api.post_order(@market, ord[0].to_f, ord[1].to_f / 500, 'sell'))
46
+ txID = JSON.parse(@api.post_order(@market, ord[0].to_f, ord[1].to_f / 1000, 'sell'))
48
47
  ord.push(txID['id'])
49
48
  @api.cancel_order(@order_book[:asks][nums[i]][-1]) if @order_book[:asks].size > 400
50
49
  sleep(1)
@@ -1,3 +1,3 @@
1
1
  module SimBot
2
- VERSION = "0.1.26"
2
+ VERSION = "0.1.27"
3
3
  end
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.26
4
+ version: 0.1.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Ovadia