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 +4 -4
- data/.idea/workspace.xml +23 -28
- data/Gemfile.lock +1 -1
- data/lib/Deamons/wash_trade.rb +1 -1
- data/lib/SimBot.rb +14 -3
- data/lib/SimBot/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0967b764cab71885201675984bf0e86616cf8c1f9fb5c4ed19f48e42a10db71
|
4
|
+
data.tar.gz: 5003486c7f52fff2462a212587b3f47ce1cd0ed30aea58b99df33b256b7e1a21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1a43d02eca8b0a92e26dcfadadaf76767cef9c8267c260151e683ff5a2958f8a33bf3e84baf44ab660d47e5fa1341a3fafdc535bb9bdff8618c1dfa153dfcee
|
7
|
+
data.tar.gz: a79c2938413c583c5952015a29138330d94607cdc3603ff75bd20e1bbc1ebda1450af515bcfbed1f128b433a313b8e5bda75735fc45adb2ebdd446c4735eca6a
|
data/.idea/workspace.xml
CHANGED
@@ -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="
|
32
|
-
<caret line="
|
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="
|
90
|
-
<caret line="
|
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="
|
99
|
-
<caret line="
|
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="
|
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="
|
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"
|
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/
|
812
|
+
<entry file="file://$PROJECT_DIR$/lib/utils.rb">
|
818
813
|
<provider selected="true" editor-type-id="text-editor">
|
819
|
-
<state relative-caret-position="
|
820
|
-
<caret line="
|
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="
|
827
|
-
<caret line="
|
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/
|
826
|
+
<entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
|
832
827
|
<provider selected="true" editor-type-id="text-editor">
|
833
|
-
<state relative-caret-position="
|
834
|
-
<caret line="
|
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="
|
841
|
-
<caret line="
|
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>
|
data/Gemfile.lock
CHANGED
data/lib/Deamons/wash_trade.rb
CHANGED
data/lib/SimBot.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
require "SimBot/version"
|
2
2
|
require 'thor'
|
3
3
|
require 'pusher-client'
|
4
|
-
require_relative '
|
5
|
-
require_relative '
|
6
|
-
require_relative '
|
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']
|
data/lib/SimBot/version.rb
CHANGED