SimBot 0.1.15 → 0.1.16

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: 1ef88e7997f31e652ddd2d1a95fc8f797c1989ba9566a00d0e43c3d01c06ba88
4
- data.tar.gz: 323e328ca2921b190b00ea3140bfc9e59814a17d0cbf61462762cfc26d68f3a8
3
+ metadata.gz: b0967b764cab71885201675984bf0e86616cf8c1f9fb5c4ed19f48e42a10db71
4
+ data.tar.gz: 5003486c7f52fff2462a212587b3f47ce1cd0ed30aea58b99df33b256b7e1a21
5
5
  SHA512:
6
- metadata.gz: 570003ee42cf92583a591c6162226808f6f89d89c58a34189c769c3af34e96a97abc2c7e6cebe2ba5801b2d9ca0f8168749fd5ee752a60a7b61a995069ff0065
7
- data.tar.gz: 2672199c5784d950b4ea40ca91c17fe45ba37f722c76a8c350b94f320d1ef0bb04d948235331bc5870885f340216eda475e3e32efd1ace6a7c35ad30eb5073d3
6
+ metadata.gz: f1a43d02eca8b0a92e26dcfadadaf76767cef9c8267c260151e683ff5a2958f8a33bf3e84baf44ab660d47e5fa1341a3fafdc535bb9bdff8618c1dfa153dfcee
7
+ data.tar.gz: a79c2938413c583c5952015a29138330d94607cdc3603ff75bd20e1bbc1ebda1450af515bcfbed1f128b433a313b8e5bda75735fc45adb2ebdd446c4735eca6a
@@ -7,6 +7,7 @@
7
7
  <change beforePath="$PROJECT_DIR$/Gemfile.lock" beforeDir="false" afterPath="$PROJECT_DIR$/Gemfile.lock" afterDir="false" />
8
8
  <change beforePath="$PROJECT_DIR$/SimBot-0.1.14.gem" beforeDir="false" />
9
9
  <change beforePath="$PROJECT_DIR$/SimBot.gemspec" beforeDir="false" afterPath="$PROJECT_DIR$/SimBot.gemspec" afterDir="false" />
10
+ <change beforePath="$PROJECT_DIR$/lib/Deamons/wash_trade.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/Deamons/wash_trade.rb" afterDir="false" />
10
11
  <change beforePath="$PROJECT_DIR$/lib/SimBot.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/SimBot.rb" afterDir="false" />
11
12
  <change beforePath="$PROJECT_DIR$/lib/SimBot/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/SimBot/version.rb" afterDir="false" />
12
13
  <change beforePath="$PROJECT_DIR$/lib/utils.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/utils.rb" afterDir="false" />
@@ -28,8 +29,8 @@
28
29
  <file leaf-file-name="SimBot.rb" pinned="false" current-in-tab="true">
29
30
  <entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
30
31
  <provider selected="true" editor-type-id="text-editor">
31
- <state relative-caret-position="204">
32
- <caret line="21" column="15" selection-start-line="21" selection-start-column="15" selection-end-line="21" selection-end-column="15" />
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="2" selection-end-column="23" />
33
34
  </state>
34
35
  </provider>
35
36
  </entry>
@@ -86,8 +87,8 @@
86
87
  <file leaf-file-name="version.rb" pinned="false" current-in-tab="true">
87
88
  <entry file="file://$PROJECT_DIR$/lib/SimBot/version.rb">
88
89
  <provider selected="true" editor-type-id="text-editor">
89
- <state relative-caret-position="23">
90
- <caret line="1" column="19" selection-start-line="1" selection-start-column="19" selection-end-line="1" selection-end-column="19" />
90
+ <state relative-caret-position="69">
91
+ <caret line="3" lean-forward="true" selection-start-line="3" selection-end-line="3" />
91
92
  </state>
92
93
  </provider>
93
94
  </entry>
@@ -95,8 +96,8 @@
95
96
  <file leaf-file-name="wash_trade.rb" pinned="false" current-in-tab="false">
96
97
  <entry file="file://$PROJECT_DIR$/lib/Deamons/wash_trade.rb">
97
98
  <provider selected="true" editor-type-id="text-editor">
98
- <state relative-caret-position="299">
99
- <caret line="13" column="21" lean-forward="true" selection-start-line="13" selection-start-column="21" selection-end-line="13" selection-end-column="21" />
99
+ <state relative-caret-position="621">
100
+ <caret line="27" column="26" selection-start-line="27" selection-start-column="26" selection-end-line="27" selection-end-column="26" />
100
101
  </state>
101
102
  </provider>
102
103
  </entry>
@@ -151,11 +152,11 @@
151
152
  <option value="$PROJECT_DIR$/lib/api_controller.rb" />
152
153
  <option value="$PROJECT_DIR$/lib/wash_trade.rb" />
153
154
  <option value="$PROJECT_DIR$/lib/peatio.rb" />
154
- <option value="$PROJECT_DIR$/lib/Deamons/wash_trade.rb" />
155
155
  <option value="$PROJECT_DIR$/spec/spec_helper.rb" />
156
156
  <option value="$PROJECT_DIR$/SimBot.gemspec" />
157
- <option value="$PROJECT_DIR$/lib/SimBot.rb" />
158
157
  <option value="$PROJECT_DIR$/lib/utils.rb" />
158
+ <option value="$PROJECT_DIR$/lib/Deamons/wash_trade.rb" />
159
+ <option value="$PROJECT_DIR$/lib/SimBot.rb" />
159
160
  <option value="$PROJECT_DIR$/lib/SimBot/version.rb" />
160
161
  </list>
161
162
  </option>
@@ -192,12 +193,6 @@
192
193
  <item name="SimBot" type="462c0819:PsiDirectoryNode" />
193
194
  <item name="lib" type="462c0819:PsiDirectoryNode" />
194
195
  </path>
195
- <path>
196
- <item name="SimBot" type="b2602c69:ProjectViewProjectNode" />
197
- <item name="SimBot" type="462c0819:PsiDirectoryNode" />
198
- <item name="lib" type="462c0819:PsiDirectoryNode" />
199
- <item name="SimBot" type="462c0819:PsiDirectoryNode" />
200
- </path>
201
196
  <path>
202
197
  <item name="SimBot" type="b2602c69:ProjectViewProjectNode" />
203
198
  <item name="SimBot" type="462c0819:PsiDirectoryNode" />
@@ -274,12 +269,12 @@
274
269
  <workItem from="1528301072964" duration="35313000" />
275
270
  <workItem from="1528709208580" duration="28075000" />
276
271
  <workItem from="1529482548938" duration="7932000" />
277
- <workItem from="1531747087172" duration="1203000" />
272
+ <workItem from="1531747087172" duration="2489000" />
278
273
  </task>
279
274
  <servers />
280
275
  </component>
281
276
  <component name="TimeTrackingManager">
282
- <option name="totallyTimeSpent" value="108739000" />
277
+ <option name="totallyTimeSpent" value="110025000" />
283
278
  </component>
284
279
  <component name="ToolWindowManager">
285
280
  <frame x="1545" y="22" width="1645" height="1058" extended-state="0" />
@@ -292,9 +287,9 @@
292
287
  <window_info anchor="right" id="Database" order="3" />
293
288
  <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
294
289
  <window_info anchor="bottom" id="Version Control" order="7" weight="0.3292683" />
295
- <window_info anchor="bottom" id="Run" order="2" sideWeight="0.48658764" visible="true" weight="0.3540305" />
290
+ <window_info anchor="bottom" id="Run" order="2" sideWeight="0.48658764" weight="0.3540305" />
296
291
  <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
297
- <window_info anchor="bottom" id="Terminal" order="7" sideWeight="0.49619377" weight="0.34422657" />
292
+ <window_info anchor="bottom" id="Terminal" order="7" sideWeight="0.49619377" visible="true" weight="0.34422657" />
298
293
  <window_info id="Favorites" order="2" side_tool="true" />
299
294
  <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
300
295
  <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
@@ -814,31 +809,31 @@
814
809
  </state>
815
810
  </provider>
816
811
  </entry>
817
- <entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
812
+ <entry file="file://$PROJECT_DIR$/lib/utils.rb">
818
813
  <provider selected="true" editor-type-id="text-editor">
819
- <state relative-caret-position="204">
820
- <caret line="21" column="15" selection-start-line="21" selection-start-column="15" selection-end-line="21" selection-end-column="15" />
814
+ <state relative-caret-position="324">
815
+ <caret line="23" column="18" lean-forward="true" selection-start-line="23" selection-start-column="18" selection-end-line="23" selection-end-column="18" />
821
816
  </state>
822
817
  </provider>
823
818
  </entry>
824
819
  <entry file="file://$PROJECT_DIR$/lib/Deamons/wash_trade.rb">
825
820
  <provider selected="true" editor-type-id="text-editor">
826
- <state relative-caret-position="299">
827
- <caret line="13" column="21" lean-forward="true" selection-start-line="13" selection-start-column="21" selection-end-line="13" selection-end-column="21" />
821
+ <state relative-caret-position="621">
822
+ <caret line="27" column="26" selection-start-line="27" selection-start-column="26" selection-end-line="27" selection-end-column="26" />
828
823
  </state>
829
824
  </provider>
830
825
  </entry>
831
- <entry file="file://$PROJECT_DIR$/lib/utils.rb">
826
+ <entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
832
827
  <provider selected="true" editor-type-id="text-editor">
833
- <state relative-caret-position="324">
834
- <caret line="23" column="18" lean-forward="true" selection-start-line="23" selection-start-column="18" selection-end-line="23" selection-end-column="18" />
828
+ <state relative-caret-position="46">
829
+ <caret line="2" column="23" lean-forward="true" selection-start-line="2" selection-start-column="23" selection-end-line="2" selection-end-column="23" />
835
830
  </state>
836
831
  </provider>
837
832
  </entry>
838
833
  <entry file="file://$PROJECT_DIR$/lib/SimBot/version.rb">
839
834
  <provider selected="true" editor-type-id="text-editor">
840
- <state relative-caret-position="23">
841
- <caret line="1" column="19" selection-start-line="1" selection-start-column="19" selection-end-line="1" selection-end-column="19" />
835
+ <state relative-caret-position="69">
836
+ <caret line="3" lean-forward="true" selection-start-line="3" selection-end-line="3" />
842
837
  </state>
843
838
  </provider>
844
839
  </entry>
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- SimBot (0.1.14)
4
+ SimBot (0.1.15)
5
5
  json
6
6
  pusher-client
7
7
  rest-client
@@ -25,7 +25,7 @@ module Deamons
25
25
  count = 0
26
26
  puts "--------#{@market} -------"
27
27
  loop do
28
- vol = rand(0.2...3)
28
+ vol = rand(0.1...1)
29
29
  price = aug_price
30
30
  @api.post_order(@market, price, vol, 'sell')
31
31
  delay = (1.00 / @freq)
@@ -1,9 +1,9 @@
1
1
  require "SimBot/version"
2
2
  require 'thor'
3
3
  require 'pusher-client'
4
- require_relative 'apicontroller/barong'
5
- require_relative 'apicontroller/peatio'
6
- require_relative 'deamons/wash_trade'
4
+ require_relative 'ApiController/barong'
5
+ require_relative 'ApiController/peatio'
6
+ require_relative 'Deamons/wash_trade'
7
7
  module SimBot
8
8
  # CLI for controlling the SimBot
9
9
  class CLI < Thor
@@ -21,6 +21,17 @@ module SimBot
21
21
  api = ApiController::Peatio.new(options[:peatio_base_url], jwt)
22
22
  Deamons::WashTrade.new(api, options[:market], options[:freq])
23
23
  end
24
+ desc 'mm', 'Starts a market maker'
25
+ method_option :email, type: :string, default: 'admin@ovex.io', required: true, desc: 'Your OVEX email address'
26
+ method_option :password, type: :string, default: '7P1CMgrr', required: true, desc: 'Your OVEX password'
27
+ method_option :peatio_base_url, type: :string, default: 'https://api.review.ovex.io/api/v2', desc: 'Peatio API base URL'
28
+ method_option :barong_base_url, type: :string, default: 'https://auth.review.ovex.io/api/v1', desc: 'Barong API base URL'
29
+ method_option :app_id, type: :string, default: 'ceca08fbc83c2fb4eb53bb026489', desc: 'Peatio applicaiton id from Barong'
30
+ method_option :market, type: :string, default: 'bchbtc', required: false, desc: 'OVEX market for SimBot to interact with'
31
+ def mm
32
+ # TODO
33
+ puts "add market maker code here"
34
+ end
24
35
  desc 'list', 'Return list of running processes'
25
36
  def list
26
37
  puts Dir['*.pid']
@@ -1,3 +1,3 @@
1
1
  module SimBot
2
- VERSION = "0.1.15"
2
+ VERSION = "0.1.16"
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.15
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Ovadia