SimBot 0.1.20 → 0.1.21

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: 8a18255d731a4ca12715707672d37574d2a5d12cd90bd9b09836baa6b337c792
4
- data.tar.gz: 41a88de30ad2fe91c57c18ab1c99dec2b0db939eb3acc666249c6f1f0308b438
3
+ metadata.gz: a6e99138cbce43b5dcb7f3ca51d0bbb2a526bb09ca1be1167eafdd2a4b718953
4
+ data.tar.gz: 1183a55e0b707288ddd2cb92dae8f86608a74c67cd14c79e6c779b0841a6567b
5
5
  SHA512:
6
- metadata.gz: 5e5d9711db3f1bfbe1fa0f1743ec242bc1e15f1ca01602912a0c652a38ce7e4dcc2d93f6aa9535c8075afa7eb6f56297cad021b05d9a693046a7a1ac6848b89b
7
- data.tar.gz: 6354f6ad1d3dc9c27fe6e4519fd67ba2506e3f798733663c0ecd85bb18329a44b8bc2fbf7af30cd397e576b85593a13b5c17c139241b9c44d80d15db132633df
6
+ metadata.gz: 5ed227008b3487b0514d5b45a495e447a1dad309558984d30ae127a18ba177eedbb3e58266ca3355a30a78cbc90b11f06aa361899648ddebd38ff83d33881ff4
7
+ data.tar.gz: b9b7552801fddb9eeaf845add1c34cb8348a6013bfd3bf8ca721b505db5655c74748b9e55dc0f686eb05b48368fc43895a738180118f0dbcdae465e58bea4b04
@@ -2,15 +2,20 @@
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 afterPath="$PROJECT_DIR$/lib/Deamons/simple_mm.rb" afterDir="false" />
5
6
  <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
7
+ <change beforePath="$PROJECT_DIR$/Gemfile.lock" beforeDir="false" afterPath="$PROJECT_DIR$/Gemfile.lock" afterDir="false" />
6
8
  <change beforePath="$PROJECT_DIR$/SimBot-0.1.18.gem" beforeDir="false" />
7
9
  <change beforePath="$PROJECT_DIR$/SimBot-0.1.19.gem" beforeDir="false" />
8
10
  <change beforePath="$PROJECT_DIR$/SimBot.gemspec" beforeDir="false" afterPath="$PROJECT_DIR$/SimBot.gemspec" afterDir="false" />
9
11
  <change beforePath="$PROJECT_DIR$/lib/ApiController/barong.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/ApiController/barong.rb" afterDir="false" />
12
+ <change beforePath="$PROJECT_DIR$/lib/ApiController/peatio.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/ApiController/peatio.rb" afterDir="false" />
10
13
  <change beforePath="$PROJECT_DIR$/lib/Deamons/wash_trade.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/Deamons/wash_trade.rb" afterDir="false" />
11
14
  <change beforePath="$PROJECT_DIR$/lib/SimBot.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/SimBot.rb" afterDir="false" />
12
15
  <change beforePath="$PROJECT_DIR$/lib/SimBot/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/SimBot/version.rb" afterDir="false" />
13
16
  <change beforePath="$PROJECT_DIR$/lib/mailer.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/mailer.rb" afterDir="false" />
17
+ <change beforePath="$PROJECT_DIR$/lib/utils.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/utils.rb" afterDir="false" />
18
+ <change beforePath="$PROJECT_DIR$/project_email_data.xls" beforeDir="false" afterPath="$PROJECT_DIR$/project_email_data.xls" afterDir="false" />
14
19
  </list>
15
20
  <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
16
21
  <option name="TRACKING_ENABLED" value="true" />
@@ -27,50 +32,54 @@
27
32
  <option name="OUTPUT_DIRECTORY" value="$PROJECT_DIR$/exportToHTML" />
28
33
  </component>
29
34
  <component name="FileEditorManager">
30
- <splitter split-orientation="horizontal" split-proportion="0.4615964">
35
+ <splitter split-orientation="horizontal" split-proportion="0.5059264">
31
36
  <split-first>
32
37
  <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
33
38
  <file leaf-file-name="SimBot.rb" pinned="false" current-in-tab="true">
34
39
  <entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
35
40
  <provider selected="true" editor-type-id="text-editor">
36
- <state relative-caret-position="-104">
37
- <caret line="25" column="67" lean-forward="true" selection-start-line="25" selection-start-column="67" selection-end-line="25" selection-end-column="67" />
41
+ <state relative-caret-position="-393">
42
+ <caret line="34" column="6" selection-start-line="34" selection-start-column="6" selection-end-line="34" selection-end-column="6" />
38
43
  </state>
39
44
  </provider>
40
45
  </entry>
41
46
  </file>
42
- <file leaf-file-name="barong.rb" pinned="false" current-in-tab="false">
43
- <entry file="file://$PROJECT_DIR$/lib/ApiController/barong.rb">
47
+ <file leaf-file-name=".gitignore" pinned="false" current-in-tab="false">
48
+ <entry file="file://$PROJECT_DIR$/.gitignore">
44
49
  <provider selected="true" editor-type-id="text-editor">
45
- <state relative-caret-position="363">
46
- <caret line="24" column="7" lean-forward="true" selection-start-line="24" selection-start-column="7" selection-end-line="24" selection-end-column="7" />
50
+ <state relative-caret-position="322">
51
+ <caret line="14" selection-start-line="14" selection-end-line="14" />
47
52
  </state>
48
53
  </provider>
49
54
  </entry>
50
55
  </file>
51
- <file leaf-file-name="spec_helper.rb" pinned="false" current-in-tab="false">
52
- <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
56
+ <file leaf-file-name="wash_trade.rb" pinned="false" current-in-tab="false">
57
+ <entry file="file://$PROJECT_DIR$/lib/Deamons/wash_trade.rb">
53
58
  <provider selected="true" editor-type-id="text-editor">
54
- <state relative-caret-position="138">
55
- <caret line="6" selection-start-line="6" selection-end-line="6" />
59
+ <state relative-caret-position="-596">
60
+ <caret line="35" column="28" lean-forward="true" selection-start-line="35" selection-start-column="13" selection-end-line="35" selection-end-column="28" />
56
61
  </state>
57
62
  </provider>
58
63
  </entry>
59
64
  </file>
60
- <file leaf-file-name="SimBot" pinned="false" current-in-tab="false">
61
- <entry file="file://$PROJECT_DIR$/exe/SimBot">
65
+ <file leaf-file-name="utils.rb" pinned="false" current-in-tab="false">
66
+ <entry file="file://$PROJECT_DIR$/lib/utils.rb">
62
67
  <provider selected="true" editor-type-id="text-editor">
63
- <state relative-caret-position="69">
64
- <caret line="3" selection-start-line="3" selection-end-line="3" />
68
+ <state relative-caret-position="236">
69
+ <caret line="108" column="91" selection-start-line="108" selection-start-column="91" selection-end-line="108" selection-end-column="91" />
65
70
  </state>
66
71
  </provider>
67
72
  </entry>
68
73
  </file>
69
- <file leaf-file-name=".gitignore" pinned="false" current-in-tab="false">
70
- <entry file="file://$PROJECT_DIR$/.gitignore">
74
+ </leaf>
75
+ </split-first>
76
+ <split-second>
77
+ <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
78
+ <file leaf-file-name="barong.rb" pinned="false" current-in-tab="false">
79
+ <entry file="file://$PROJECT_DIR$/lib/ApiController/barong.rb">
71
80
  <provider selected="true" editor-type-id="text-editor">
72
- <state relative-caret-position="322">
73
- <caret line="14" selection-start-line="14" selection-end-line="14" />
81
+ <state relative-caret-position="156">
82
+ <caret line="13" column="4" selection-start-line="13" selection-start-column="4" selection-end-line="13" selection-end-column="4" />
74
83
  </state>
75
84
  </provider>
76
85
  </entry>
@@ -78,21 +87,17 @@
78
87
  <file leaf-file-name="peatio.rb" pinned="false" current-in-tab="false">
79
88
  <entry file="file://$PROJECT_DIR$/lib/ApiController/peatio.rb">
80
89
  <provider selected="true" editor-type-id="text-editor">
81
- <state relative-caret-position="529">
82
- <caret line="23" column="44" selection-start-line="23" selection-start-column="44" selection-end-line="23" selection-end-column="44" />
90
+ <state relative-caret-position="122">
91
+ <caret line="34" column="24" selection-start-line="34" selection-start-column="24" selection-end-line="34" selection-end-column="24" />
83
92
  </state>
84
93
  </provider>
85
94
  </entry>
86
95
  </file>
87
- </leaf>
88
- </split-first>
89
- <split-second>
90
- <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
91
- <file leaf-file-name="utils.rb" pinned="false" current-in-tab="false">
92
- <entry file="file://$PROJECT_DIR$/lib/utils.rb">
96
+ <file leaf-file-name="simple_mm.rb" pinned="false" current-in-tab="false">
97
+ <entry file="file://$PROJECT_DIR$/lib/Deamons/simple_mm.rb">
93
98
  <provider selected="true" editor-type-id="text-editor">
94
- <state relative-caret-position="380">
95
- <caret line="26" column="4" selection-start-line="26" selection-start-column="4" selection-end-line="27" selection-end-column="20" />
99
+ <state relative-caret-position="385">
100
+ <caret line="48" column="17" lean-forward="true" selection-start-line="48" selection-start-column="17" selection-end-line="48" selection-end-column="17" />
96
101
  </state>
97
102
  </provider>
98
103
  </entry>
@@ -100,7 +105,7 @@
100
105
  <file leaf-file-name="mailer.rb" pinned="false" current-in-tab="false">
101
106
  <entry file="file://$PROJECT_DIR$/lib/mailer.rb">
102
107
  <provider selected="true" editor-type-id="text-editor">
103
- <state relative-caret-position="378">
108
+ <state relative-caret-position="384">
104
109
  <caret line="30" column="3" selection-start-line="30" selection-start-column="3" selection-end-line="30" selection-end-column="3" />
105
110
  </state>
106
111
  </provider>
@@ -115,29 +120,11 @@
115
120
  </provider>
116
121
  </entry>
117
122
  </file>
118
- <file leaf-file-name="wash_trade.rb" pinned="false" current-in-tab="false">
119
- <entry file="file://$PROJECT_DIR$/lib/Deamons/wash_trade.rb">
120
- <provider selected="true" editor-type-id="text-editor">
121
- <state relative-caret-position="667">
122
- <caret line="29" column="52" lean-forward="true" selection-start-line="29" selection-start-column="52" selection-end-line="29" selection-end-column="52" />
123
- </state>
124
- </provider>
125
- </entry>
126
- </file>
127
123
  <file leaf-file-name="SimBot.gemspec" pinned="false" current-in-tab="false">
128
124
  <entry file="file://$PROJECT_DIR$/SimBot.gemspec">
129
125
  <provider selected="true" editor-type-id="text-editor">
130
126
  <state relative-caret-position="943">
131
- <caret line="41" column="3" lean-forward="true" selection-start-line="41" selection-start-column="3" selection-end-line="41" selection-end-column="3" />
132
- </state>
133
- </provider>
134
- </entry>
135
- </file>
136
- <file leaf-file-name="Gemfile" pinned="false" current-in-tab="false">
137
- <entry file="file://$PROJECT_DIR$/Gemfile">
138
- <provider selected="true" editor-type-id="text-editor">
139
- <state relative-caret-position="138">
140
- <caret line="6" selection-start-line="6" selection-end-line="6" />
127
+ <caret line="41" column="3" selection-start-line="41" selection-start-column="3" selection-end-line="41" selection-end-column="3" />
141
128
  </state>
142
129
  </provider>
143
130
  </entry>
@@ -156,6 +143,7 @@
156
143
  <component name="FindInProjectRecents">
157
144
  <findStrings>
158
145
  <find>post</find>
146
+ <find>\n</find>
159
147
  </findStrings>
160
148
  </component>
161
149
  <component name="Git.Settings">
@@ -177,12 +165,16 @@
177
165
  <option value="$PROJECT_DIR$/spec/spec_helper.rb" />
178
166
  <option value="$PROJECT_DIR$/email_footer.html" />
179
167
  <option value="$PROJECT_DIR$/email_template.txt" />
180
- <option value="$PROJECT_DIR$/lib/utils.rb" />
181
168
  <option value="$PROJECT_DIR$/lib/mailer.rb" />
182
- <option value="$PROJECT_DIR$/lib/SimBot.rb" />
169
+ <option value="$PROJECT_DIR$/SimBot.gemspec" />
170
+ <option value="$PROJECT_DIR$/93964.outfile" />
183
171
  <option value="$PROJECT_DIR$/lib/ApiController/barong.rb" />
172
+ <option value="$PROJECT_DIR$/lib/SimBot.rb" />
184
173
  <option value="$PROJECT_DIR$/lib/Deamons/wash_trade.rb" />
185
- <option value="$PROJECT_DIR$/SimBot.gemspec" />
174
+ <option value="$PROJECT_DIR$/lib/ApiController/peatio.rb" />
175
+ <option value="$PROJECT_DIR$/lib/utils.rb" />
176
+ <option value="$PROJECT_DIR$/99700.errfile" />
177
+ <option value="$PROJECT_DIR$/lib/Deamons/simple_mm.rb" />
186
178
  <option value="$PROJECT_DIR$/lib/SimBot/version.rb" />
187
179
  </list>
188
180
  </option>
@@ -218,12 +210,19 @@
218
210
  <path>
219
211
  <item name="SimBot" type="b2602c69:ProjectViewProjectNode" />
220
212
  <item name="SimBot" type="462c0819:PsiDirectoryNode" />
221
- <item name="bin" type="462c0819:PsiDirectoryNode" />
213
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
222
214
  </path>
223
215
  <path>
224
216
  <item name="SimBot" type="b2602c69:ProjectViewProjectNode" />
225
217
  <item name="SimBot" type="462c0819:PsiDirectoryNode" />
226
218
  <item name="lib" type="462c0819:PsiDirectoryNode" />
219
+ <item name="ApiController" type="462c0819:PsiDirectoryNode" />
220
+ </path>
221
+ <path>
222
+ <item name="SimBot" type="b2602c69:ProjectViewProjectNode" />
223
+ <item name="SimBot" type="462c0819:PsiDirectoryNode" />
224
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
225
+ <item name="Deamons" type="462c0819:PsiDirectoryNode" />
227
226
  </path>
228
227
  <path>
229
228
  <item name="SimBot" type="b2602c69:ProjectViewProjectNode" />
@@ -304,12 +303,12 @@
304
303
  <workItem from="1531747087172" duration="4944000" />
305
304
  <workItem from="1531824473237" duration="2590000" />
306
305
  <workItem from="1532528275009" duration="12558000" />
307
- <workItem from="1532961242324" duration="696000" />
306
+ <workItem from="1532961242324" duration="19655000" />
308
307
  </task>
309
308
  <servers />
310
309
  </component>
311
310
  <component name="TimeTrackingManager">
312
- <option name="totallyTimeSpent" value="128324000" />
311
+ <option name="totallyTimeSpent" value="147283000" />
313
312
  </component>
314
313
  <component name="ToolWindowManager">
315
314
  <frame x="1443" y="22" width="1645" height="1028" extended-state="0" />
@@ -324,7 +323,7 @@
324
323
  <window_info anchor="bottom" id="Run" order="2" sideWeight="0.48658764" visible="true" weight="0.3536036" />
325
324
  <window_info anchor="bottom" id="Version Control" order="7" weight="0.3292683" />
326
325
  <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
327
- <window_info anchor="bottom" id="Terminal" order="7" sideWeight="0.49095446" weight="0.3457207" />
326
+ <window_info anchor="bottom" id="Terminal" order="7" sideWeight="0.49095446" weight="0.33896396" />
328
327
  <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
329
328
  <window_info id="Favorites" order="2" side_tool="true" />
330
329
  <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
@@ -370,498 +369,237 @@
370
369
  </component>
371
370
  <component name="XDebuggerManager">
372
371
  <breakpoint-manager>
373
- <option name="time" value="7" />
372
+ <option name="time" value="8" />
374
373
  </breakpoint-manager>
375
374
  </component>
376
375
  <component name="editorHistoryManager">
377
- <entry file="file://$PROJECT_DIR$/lib/ApiController/peatio.rb">
376
+ <entry file="file://$PROJECT_DIR$/98101.errfile">
378
377
  <provider selected="true" editor-type-id="text-editor">
379
- <state relative-caret-position="529">
380
- <caret line="23" column="44" selection-start-line="23" selection-start-column="44" selection-end-line="23" selection-end-column="44" />
381
- </state>
378
+ <state relative-caret-position="-2075" />
382
379
  </provider>
383
380
  </entry>
384
- <entry file="file://$PROJECT_DIR$/lib/utils.rb">
385
- <provider selected="true" editor-type-id="text-editor">
386
- <state relative-caret-position="2668">
387
- <caret line="116" column="9" lean-forward="true" selection-start-line="116" selection-start-column="9" selection-end-line="116" selection-end-column="9" />
388
- </state>
389
- </provider>
381
+ <entry file="file://$PROJECT_DIR$/98101.outfile">
382
+ <provider selected="true" editor-type-id="text-editor" />
390
383
  </entry>
391
- <entry file="file://$PROJECT_DIR$/SimBot.gemspec">
392
- <provider selected="true" editor-type-id="text-editor">
393
- <state relative-caret-position="851">
394
- <caret line="37" column="35" lean-forward="true" selection-start-line="37" selection-start-column="35" selection-end-line="37" selection-end-column="35" />
395
- </state>
396
- </provider>
384
+ <entry file="file://$PROJECT_DIR$/98147.errfile">
385
+ <provider selected="true" editor-type-id="text-editor" />
397
386
  </entry>
398
- <entry file="file://$PROJECT_DIR$/Gemfile">
399
- <provider selected="true" editor-type-id="text-editor">
400
- <state relative-caret-position="138">
401
- <caret line="6" selection-start-line="6" selection-end-line="6" />
402
- </state>
403
- </provider>
387
+ <entry file="file://$PROJECT_DIR$/98147.outfile">
388
+ <provider selected="true" editor-type-id="text-editor" />
404
389
  </entry>
405
- <entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
406
- <provider selected="true" editor-type-id="text-editor">
407
- <state relative-caret-position="276">
408
- <caret line="12" column="62" selection-start-line="12" selection-start-column="54" selection-end-line="12" selection-end-column="62" />
409
- </state>
410
- </provider>
390
+ <entry file="file://$PROJECT_DIR$/98242.outfile">
391
+ <provider selected="true" editor-type-id="text-editor" />
411
392
  </entry>
412
- <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
413
- <provider selected="true" editor-type-id="text-editor">
414
- <state relative-caret-position="138">
415
- <caret line="6" selection-start-line="6" selection-end-line="6" />
416
- </state>
417
- </provider>
393
+ <entry file="file://$PROJECT_DIR$/98242.errfile">
394
+ <provider selected="true" editor-type-id="text-editor" />
418
395
  </entry>
419
- <entry file="file://$PROJECT_DIR$/exe/SimBot">
420
- <provider selected="true" editor-type-id="text-editor">
421
- <state relative-caret-position="69">
422
- <caret line="3" lean-forward="true" selection-start-line="3" selection-end-line="3" />
423
- </state>
424
- </provider>
396
+ <entry file="file://$PROJECT_DIR$/98287.errfile">
397
+ <provider selected="true" editor-type-id="text-editor" />
425
398
  </entry>
426
- <entry file="file://$PROJECT_DIR$/.gitignore">
399
+ <entry file="file://$PROJECT_DIR$/98287.outfile">
427
400
  <provider selected="true" editor-type-id="text-editor">
428
- <state relative-caret-position="322">
429
- <caret line="14" selection-start-line="14" selection-end-line="14" />
401
+ <state>
402
+ <caret column="22" lean-forward="true" selection-start-column="22" selection-end-column="22" />
430
403
  </state>
431
404
  </provider>
432
405
  </entry>
433
- <entry file="file://$PROJECT_DIR$/lib/ApiController/peatio.rb">
434
- <provider selected="true" editor-type-id="text-editor">
435
- <state relative-caret-position="529">
436
- <caret line="23" column="44" lean-forward="true" selection-start-line="23" selection-start-column="44" selection-end-line="23" selection-end-column="44" />
437
- </state>
438
- </provider>
406
+ <entry file="file://$PROJECT_DIR$/98346.errfile">
407
+ <provider selected="true" editor-type-id="text-editor" />
439
408
  </entry>
440
- <entry file="file://$PROJECT_DIR$/lib/utils.rb">
441
- <provider selected="true" editor-type-id="text-editor">
442
- <state relative-caret-position="2668">
443
- <caret line="116" column="4" lean-forward="true" selection-start-line="116" selection-start-column="4" selection-end-line="116" selection-end-column="4" />
444
- </state>
445
- </provider>
409
+ <entry file="file://$PROJECT_DIR$/98346.outfile">
410
+ <provider selected="true" editor-type-id="text-editor" />
446
411
  </entry>
447
- <entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
412
+ <entry file="file://$PROJECT_DIR$/98402.outfile">
448
413
  <provider selected="true" editor-type-id="text-editor">
449
- <state relative-caret-position="345">
450
- <caret line="15" column="18" selection-start-line="15" selection-start-column="18" selection-end-line="15" selection-end-column="18" />
414
+ <state relative-caret-position="23">
415
+ <caret line="1" column="9" selection-start-line="1" selection-start-column="9" selection-end-line="1" selection-end-column="41" />
451
416
  </state>
452
417
  </provider>
453
418
  </entry>
454
- <entry file="file://$PROJECT_DIR$/exe/SimBot">
455
- <provider selected="true" editor-type-id="text-editor">
456
- <state relative-caret-position="92">
457
- <caret line="4" column="7" selection-start-line="4" selection-start-column="7" selection-end-line="4" selection-end-column="7" />
458
- </state>
459
- </provider>
419
+ <entry file="file://$PROJECT_DIR$/98498.outfile">
420
+ <provider selected="true" editor-type-id="text-editor" />
460
421
  </entry>
461
- <entry file="file://$PROJECT_DIR$/.gitignore">
462
- <provider selected="true" editor-type-id="text-editor">
463
- <state relative-caret-position="322">
464
- <caret line="14" selection-start-line="14" selection-end-line="14" />
465
- </state>
466
- </provider>
422
+ <entry file="file://$PROJECT_DIR$/98498.errfile">
423
+ <provider selected="true" editor-type-id="text-editor" />
467
424
  </entry>
468
- <entry file="file://$PROJECT_DIR$/lib/SimBot/version.rb">
469
- <provider selected="true" editor-type-id="text-editor">
470
- <state relative-caret-position="69">
471
- <caret line="3" lean-forward="true" selection-start-line="3" selection-end-line="3" />
472
- </state>
473
- </provider>
425
+ <entry file="file://$PROJECT_DIR$/98565.pid">
426
+ <provider selected="true" editor-type-id="text-editor" />
474
427
  </entry>
475
- <entry file="file://$PROJECT_DIR$/lib/ApiController/peatio.rb">
476
- <provider selected="true" editor-type-id="text-editor">
477
- <state relative-caret-position="184">
478
- <caret line="8" column="24" selection-start-line="8" selection-start-column="24" selection-end-line="8" selection-end-column="24" />
479
- </state>
480
- </provider>
428
+ <entry file="file://$PROJECT_DIR$/98565.outfile">
429
+ <provider selected="true" editor-type-id="text-editor" />
481
430
  </entry>
482
- <entry file="file://$PROJECT_DIR$/lib/utils.rb">
483
- <provider selected="true" editor-type-id="text-editor">
484
- <state relative-caret-position="483">
485
- <caret line="21" column="13" selection-start-line="21" selection-start-column="13" selection-end-line="21" selection-end-column="13" />
486
- </state>
487
- </provider>
431
+ <entry file="file://$PROJECT_DIR$/98565.errfile">
432
+ <provider selected="true" editor-type-id="text-editor" />
488
433
  </entry>
489
- <entry file="file://$PROJECT_DIR$/Gemfile">
490
- <provider selected="true" editor-type-id="text-editor">
491
- <state relative-caret-position="138">
492
- <caret line="6" selection-start-line="6" selection-end-line="6" />
493
- </state>
494
- </provider>
434
+ <entry file="file://$PROJECT_DIR$/98638.outfile">
435
+ <provider selected="true" editor-type-id="text-editor" />
495
436
  </entry>
496
- <entry file="file://$PROJECT_DIR$/lib/ApiController/barong.rb">
437
+ <entry file="file://$PROJECT_DIR$/98638.errfile">
497
438
  <provider selected="true" editor-type-id="text-editor">
498
- <state relative-caret-position="115">
499
- <caret line="5" selection-start-line="5" selection-end-line="8" selection-end-column="7" />
500
- </state>
439
+ <state relative-caret-position="-352" />
501
440
  </provider>
502
441
  </entry>
503
- <entry file="file://$PROJECT_DIR$/SimBot.gemspec">
442
+ <entry file="file://$PROJECT_DIR$/98808.errfile">
504
443
  <provider selected="true" editor-type-id="text-editor">
505
- <state relative-caret-position="483">
506
- <caret line="21" column="32" selection-start-line="21" selection-start-column="32" selection-end-line="21" selection-end-column="32" />
444
+ <state relative-caret-position="11674">
445
+ <caret line="1064" column="52" lean-forward="true" selection-start-line="1064" selection-start-column="52" selection-end-line="1064" selection-end-column="52" />
507
446
  </state>
508
447
  </provider>
509
448
  </entry>
510
- <entry file="file://$PROJECT_DIR$/lib/Deamons/wash_trade.rb">
449
+ <entry file="file://$PROJECT_DIR$/98808.outfile">
511
450
  <provider selected="true" editor-type-id="text-editor">
512
- <state relative-caret-position="460">
513
- <caret line="20" column="15" lean-forward="true" selection-start-line="20" selection-start-column="15" selection-end-line="20" selection-end-column="15" />
451
+ <state relative-caret-position="23">
452
+ <caret line="1" column="9" lean-forward="true" selection-start-line="1" selection-start-column="9" selection-end-line="1" selection-end-column="59" />
514
453
  </state>
515
454
  </provider>
516
455
  </entry>
517
- <entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
518
- <provider selected="true" editor-type-id="text-editor">
519
- <state relative-caret-position="782">
520
- <caret line="34" column="3" selection-start-line="34" selection-start-column="3" selection-end-line="34" selection-end-column="3" />
521
- </state>
522
- </provider>
456
+ <entry file="file://$PROJECT_DIR$/98934.outfile">
457
+ <provider selected="true" editor-type-id="text-editor" />
523
458
  </entry>
524
- <entry file="file://$PROJECT_DIR$/lib/ApiController/peatio.rb">
525
- <provider selected="true" editor-type-id="text-editor">
526
- <state relative-caret-position="552">
527
- <caret line="24" column="5" lean-forward="true" selection-start-line="24" selection-start-column="5" selection-end-line="24" selection-end-column="5" />
528
- </state>
529
- </provider>
459
+ <entry file="file://$PROJECT_DIR$/98934.errfile">
460
+ <provider selected="true" editor-type-id="text-editor" />
530
461
  </entry>
531
- <entry file="file://$PROJECT_DIR$/SimBot.gemspec">
462
+ <entry file="file://$PROJECT_DIR$/98990.outfile">
532
463
  <provider selected="true" editor-type-id="text-editor">
533
- <state relative-caret-position="828">
534
- <caret line="36" column="35" lean-forward="true" selection-start-line="36" selection-start-column="35" selection-end-line="36" selection-end-column="35" />
464
+ <state relative-caret-position="46">
465
+ <caret line="2" lean-forward="true" selection-start-line="2" selection-end-line="2" />
535
466
  </state>
536
467
  </provider>
537
468
  </entry>
538
- <entry file="file://$PROJECT_DIR$/exe/SimBot">
469
+ <entry file="file://$PROJECT_DIR$/lib/mailer.rb">
539
470
  <provider selected="true" editor-type-id="text-editor">
540
- <state relative-caret-position="92">
541
- <caret line="4" column="7" lean-forward="true" selection-start-line="4" selection-start-column="7" selection-end-line="4" selection-end-column="7" />
471
+ <state relative-caret-position="384">
472
+ <caret line="30" column="3" selection-start-line="30" selection-start-column="3" selection-end-line="30" selection-end-column="3" />
542
473
  </state>
543
474
  </provider>
544
475
  </entry>
545
- <entry file="file://$PROJECT_DIR$/.gitignore">
476
+ <entry file="file://$PROJECT_DIR$/99082.outfile">
477
+ <provider selected="true" editor-type-id="text-editor" />
478
+ </entry>
479
+ <entry file="file://$PROJECT_DIR$/99082.errfile">
546
480
  <provider selected="true" editor-type-id="text-editor">
547
- <state relative-caret-position="322">
548
- <caret line="14" lean-forward="true" selection-start-line="14" selection-end-line="14" />
549
- </state>
481
+ <state relative-caret-position="-7025" />
550
482
  </provider>
551
483
  </entry>
552
- <entry file="file://$PROJECT_DIR$/lib/SimBot/version.rb">
484
+ <entry file="file://$PROJECT_DIR$/99150.errfile">
553
485
  <provider selected="true" editor-type-id="text-editor">
554
- <state relative-caret-position="69">
555
- <caret line="3" lean-forward="true" selection-start-line="3" selection-end-line="3" />
556
- </state>
486
+ <state relative-caret-position="-23654" />
557
487
  </provider>
558
488
  </entry>
559
- <entry file="file://$PROJECT_DIR$/lib/utils.rb">
489
+ <entry file="file://$PROJECT_DIR$/99150.outfile">
560
490
  <provider selected="true" editor-type-id="text-editor">
561
- <state relative-caret-position="368">
562
- <caret line="16" lean-forward="true" selection-start-line="16" selection-end-line="16" />
491
+ <state relative-caret-position="46">
492
+ <caret line="2" lean-forward="true" selection-start-line="2" selection-end-line="2" />
563
493
  </state>
564
494
  </provider>
565
495
  </entry>
566
- <entry file="file://$PROJECT_DIR$/.travis.yml">
496
+ <entry file="file://$PROJECT_DIR$/lib/Deamons/wash_trade.rb">
567
497
  <provider selected="true" editor-type-id="text-editor">
568
- <state relative-caret-position="115">
569
- <caret line="5" lean-forward="true" selection-start-line="5" selection-end-line="5" />
498
+ <state relative-caret-position="-596">
499
+ <caret line="35" column="28" lean-forward="true" selection-start-line="35" selection-start-column="13" selection-end-line="35" selection-end-column="28" />
570
500
  </state>
571
501
  </provider>
572
502
  </entry>
573
- <entry file="file://$PROJECT_DIR$/README.md">
574
- <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
575
- <state split_layout="SPLIT">
576
- <first_editor relative-caret-position="391">
577
- <caret line="17" column="42" selection-start-line="17" selection-start-column="42" selection-end-line="17" selection-end-column="42" />
578
- </first_editor>
579
- <second_editor />
580
- </state>
581
- </provider>
503
+ <entry file="file://$PROJECT_DIR$/99238.errfile">
504
+ <provider selected="true" editor-type-id="text-editor" />
582
505
  </entry>
583
- <entry file="file://$PROJECT_DIR$/lib/utilities.rb" />
584
- <entry file="file://$PROJECT_DIR$/bin/setup">
506
+ <entry file="file://$PROJECT_DIR$/99238.outfile">
585
507
  <provider selected="true" editor-type-id="text-editor">
586
- <state relative-caret-position="184">
587
- <caret line="8" lean-forward="true" selection-start-line="8" selection-end-line="8" />
508
+ <state relative-caret-position="46">
509
+ <caret line="2" selection-start-line="2" selection-end-line="10" selection-end-column="24" />
588
510
  </state>
589
511
  </provider>
590
512
  </entry>
591
- <entry file="file://$PROJECT_DIR$/bin/console">
513
+ <entry file="file://$PROJECT_DIR$/99296.errfile">
514
+ <provider selected="true" editor-type-id="text-editor" />
515
+ </entry>
516
+ <entry file="file://$PROJECT_DIR$/99296.outfile">
592
517
  <provider selected="true" editor-type-id="text-editor">
593
- <state relative-caret-position="322">
594
- <caret line="14" selection-start-line="14" selection-end-line="14" />
518
+ <state relative-caret-position="46">
519
+ <caret line="2" column="24" lean-forward="true" selection-start-line="2" selection-start-column="24" selection-end-line="2" selection-end-column="24" />
595
520
  </state>
596
521
  </provider>
597
522
  </entry>
598
- <entry file="file://$PROJECT_DIR$/lib/Deamons/deamon.rb" />
599
- <entry file="uml://Ruby/Utils">
600
- <provider selected="true" editor-type-id="UmlEditorProvider">
601
- <state>
602
- <ID>Ruby</ID>
603
- <OriginalElement>Utils</OriginalElement>
604
- <nodes>
605
- <node x="24.0" y="158.0">RSpec::Mocks::ArgumentMatchers</node>
606
- <node x="632.0" y="79.0">FileUtils</node>
607
- <node x="622.0" y="158.0">Rake::FileUtilsExt</node>
608
- <node x="419.5" y="415.0">Module</node>
609
- <node x="194.0" y="158.0">RSpec::Mocks::ExampleMethods::ExpectHost</node>
610
- <node x="510.0" y="237.0">MakeMakefile</node>
611
- <node x="0.0" y="568.0">RSpec::Mocks::AnyInstance</node>
612
- <node x="516.5" y="415.0">Utils</node>
613
- <node x="261.0" y="237.0">PP::ObjectMixin</node>
614
- <node x="0.0" y="237.0">RSpec::Support::ShellOut</node>
615
- <node x="644.0" y="237.0">Rake::DSL</node>
616
- <node x="104.0" y="237.0">RSpec::Mocks::ExampleMethods</node>
617
- <node x="385.0" y="237.0">BasicObject</node>
618
- <node x="466.25" y="336.0">Object</node>
619
- <node x="811.0" y="237.0">RSpec::Support::WhitespaceChecks</node>
620
- <node x="720.0" y="237.0">Kernel</node>
621
- <node x="425.5" y="494.0">Class</node>
622
- <node x="617.5" y="0.0">FileUtils::StreamUtils_</node>
623
- </nodes>
624
- <notes />
625
- <edges>
626
- <edge source="FileUtils" target="FileUtils::StreamUtils_">
627
- <point x="-20.0" y="-14.5" />
628
- <point x="652.0" y="54.0" />
629
- <point x="644.75" y="54.0" />
630
- <point x="-27.25" y="14.5" />
631
- </edge>
632
- <edge source="RSpec::Mocks::ExampleMethods" target="RSpec::Mocks::ArgumentMatchers">
633
- <point x="-34.25" y="-14.5" />
634
- <point x="138.25" y="212.0" />
635
- <point x="99.0" y="212.0" />
636
- <point x="0.0" y="14.5" />
637
- </edge>
638
- <edge source="Object" target="PP::ObjectMixin">
639
- <point x="-13.5" y="-14.5" />
640
- <point x="488.75" y="296.0" />
641
- <point x="313.0" y="296.0" />
642
- <point x="0.0" y="14.5" />
643
- </edge>
644
- <edge source="Rake::FileUtilsExt" target="FileUtils">
645
- <point x="0.0" y="-14.5" />
646
- <point x="0.0" y="14.5" />
647
- </edge>
648
- <edge source="Rake::DSL" target="Rake::FileUtilsExt">
649
- <point x="0.0" y="-14.5" />
650
- <point x="0.0" y="14.5" />
651
- </edge>
652
- <edge source="Utils" target="Object">
653
- <point x="0.0" y="-14.5" />
654
- <point x="546.5" y="390.0" />
655
- <point x="520.25" y="390.0" />
656
- <point x="18.0" y="14.5" />
657
- </edge>
658
- <edge source="Object" target="RSpec::Support::WhitespaceChecks">
659
- <point x="31.5" y="-14.5" />
660
- <point x="533.75" y="316.0" />
661
- <point x="885.5" y="316.0" />
662
- <point x="0.0" y="14.5" />
663
- </edge>
664
- <edge source="Object" target="BasicObject">
665
- <point x="-4.5" y="-14.5" />
666
- <point x="497.75" y="286.0" />
667
- <point x="437.5" y="286.0" />
668
- <point x="0.0" y="14.5" />
669
- </edge>
670
- <edge source="Class" target="Module">
671
- <point x="0.0" y="-14.5" />
672
- <point x="0.0" y="14.5" />
673
- </edge>
674
- <edge source="RSpec::Mocks::ExampleMethods" target="RSpec::Mocks::ExampleMethods::ExpectHost">
675
- <point x="34.25" y="-14.5" />
676
- <point x="206.75" y="212.0" />
677
- <point x="246.0" y="212.0" />
678
- <point x="0.0" y="14.5" />
679
- </edge>
680
- <edge source="Object" target="Kernel">
681
- <point x="22.5" y="-14.5" />
682
- <point x="524.75" y="306.0" />
683
- <point x="755.5" y="306.0" />
684
- <point x="0.0" y="14.5" />
685
- </edge>
686
- <edge source="Object" target="RSpec::Support::ShellOut">
687
- <point x="-31.5" y="-14.5" />
688
- <point x="470.75" y="316.0" />
689
- <point x="42.0" y="316.0" />
690
- <point x="0.0" y="14.5" />
691
- </edge>
692
- <edge source="Module" target="Object">
693
- <point x="0.0" y="-14.5" />
694
- <point x="458.0" y="390.0" />
695
- <point x="484.25" y="390.0" />
696
- <point x="-18.0" y="14.5" />
697
- </edge>
698
- <edge source="Object" target="RSpec::Mocks::ExampleMethods">
699
- <point x="-22.5" y="-14.5" />
700
- <point x="479.75" y="306.0" />
701
- <point x="172.5" y="306.0" />
702
- <point x="0.0" y="14.5" />
703
- </edge>
704
- <edge source="Object" target="MakeMakefile">
705
- <point x="4.5" y="-14.5" />
706
- <point x="506.75" y="286.0" />
707
- <point x="567.0" y="286.0" />
708
- <point x="0.0" y="14.5" />
709
- </edge>
710
- <edge source="Object" target="Rake::DSL">
711
- <point x="13.5" y="-14.5" />
712
- <point x="515.75" y="296.0" />
713
- <point x="672.0" y="296.0" />
714
- <point x="0.0" y="14.5" />
715
- </edge>
716
- </edges>
717
- <settings layout="Hierarchic Group" zoom="0.986734693877551" x="223.0" y="-181.0" />
718
- <SelectedNodes>
719
- <node>Utils</node>
720
- </SelectedNodes>
721
- <Categories />
722
- <SCOPE>All</SCOPE>
523
+ <entry file="file://$PROJECT_DIR$/99343.outfile">
524
+ <provider selected="true" editor-type-id="text-editor">
525
+ <state relative-caret-position="348">
526
+ <caret line="24" column="7" lean-forward="true" selection-start-line="24" selection-start-column="7" selection-end-line="24" selection-end-column="7" />
723
527
  </state>
724
528
  </provider>
725
529
  </entry>
726
- <entry file="uml://GemDependency/#SimBot">
727
- <provider selected="true" editor-type-id="UmlEditorProvider">
728
- <state>
729
- <ID>GemDependency</ID>
730
- <OriginalElement>#SimBot</OriginalElement>
731
- <nodes>
732
- <node x="" y="">rspec-support</node>
733
- <node x="" y="">rspec</node>
734
- <node x="" y="">netrc</node>
735
- <node x="" y="">rspec-core</node>
736
- <node x="" y="">diff-lcs</node>
737
- <node x="" y="">rspec-mocks</node>
738
- <node x="" y="">rspec-expectations</node>
739
- <node x="" y="">rake</node>
740
- <node x="" y="">unf</node>
741
- <node x="" y="">domain_name</node>
742
- <node x="" y="">websocket</node>
743
- <node x="" y="">http-cookie</node>
744
- <node x="" y="">json</node>
745
- <node x="" y="">unf_ext</node>
746
- <node x="" y="">thor</node>
747
- <node x="" y="">#SimBot</node>
748
- <node x="" y="">pusher-client</node>
749
- <node x="" y="">mime-types-data</node>
750
- <node x="" y="">rest-client</node>
751
- <node x="" y="">bundler</node>
752
- <node x="" y="">mime-types</node>
753
- </nodes>
754
- <notes />
755
- <edges />
756
- <settings layout="Hierarchic Group" zoom="0.9383660806618407" x="360.0" y="295.0" />
757
- <SelectedNodes />
758
- <Categories />
759
- <SCOPE>All</SCOPE>
760
- </state>
761
- </provider>
530
+ <entry file="file://$PROJECT_DIR$/99431.outfile">
531
+ <provider selected="true" editor-type-id="text-editor" />
762
532
  </entry>
763
- <entry file="file://$PROJECT_DIR$/spec/SimBot_spec.rb">
533
+ <entry file="file://$PROJECT_DIR$/99431.errfile">
764
534
  <provider selected="true" editor-type-id="text-editor">
765
- <state relative-caret-position="207">
766
- <caret line="9" lean-forward="true" selection-start-line="9" selection-end-line="9" />
767
- </state>
535
+ <state relative-caret-position="-15662" />
768
536
  </provider>
769
537
  </entry>
770
- <entry file="file://$PROJECT_DIR$/exe/SimBot">
771
- <provider selected="true" editor-type-id="text-editor">
772
- <state relative-caret-position="69">
773
- <caret line="3" selection-start-line="3" selection-end-line="3" />
774
- </state>
775
- </provider>
538
+ <entry file="file://$PROJECT_DIR$/99482.outfile">
539
+ <provider selected="true" editor-type-id="text-editor" />
776
540
  </entry>
777
- <entry file="file://$PROJECT_DIR$/.gitignore">
541
+ <entry file="file://$PROJECT_DIR$/99482.errfile">
778
542
  <provider selected="true" editor-type-id="text-editor">
779
- <state relative-caret-position="322">
780
- <caret line="14" selection-start-line="14" selection-end-line="14" />
781
- </state>
543
+ <state relative-caret-position="-1057" />
782
544
  </provider>
783
545
  </entry>
784
- <entry file="file://$PROJECT_DIR$/lib/ApiController/peatio.rb">
785
- <provider selected="true" editor-type-id="text-editor">
786
- <state relative-caret-position="529">
787
- <caret line="23" column="44" selection-start-line="23" selection-start-column="44" selection-end-line="23" selection-end-column="44" />
788
- </state>
789
- </provider>
546
+ <entry file="file://$PROJECT_DIR$/99548.errfile">
547
+ <provider selected="true" editor-type-id="text-editor" />
790
548
  </entry>
791
- <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
549
+ <entry file="file://$PROJECT_DIR$/99548.outfile">
792
550
  <provider selected="true" editor-type-id="text-editor">
793
- <state relative-caret-position="138">
794
- <caret line="6" selection-start-line="6" selection-end-line="6" />
551
+ <state relative-caret-position="299">
552
+ <caret line="13" column="44" selection-start-line="13" selection-start-column="44" selection-end-line="13" selection-end-column="44" />
795
553
  </state>
796
554
  </provider>
797
555
  </entry>
798
- <entry file="file://$PROJECT_DIR$/Gemfile">
556
+ <entry file="file://$PROJECT_DIR$/lib/utils.rb">
799
557
  <provider selected="true" editor-type-id="text-editor">
800
- <state relative-caret-position="138">
801
- <caret line="6" selection-start-line="6" selection-end-line="6" />
558
+ <state relative-caret-position="236">
559
+ <caret line="108" column="91" selection-start-line="108" selection-start-column="91" selection-end-line="108" selection-end-column="91" />
802
560
  </state>
803
561
  </provider>
804
562
  </entry>
805
- <entry file="file://$PROJECT_DIR$/exportToHTML/mailer.rb.html">
806
- <provider selected="true" editor-type-id="text-editor">
807
- <state relative-caret-position="506">
808
- <caret line="22" column="27" lean-forward="true" selection-start-line="22" selection-start-column="27" selection-end-line="22" selection-end-column="27" />
809
- </state>
810
- </provider>
563
+ <entry file="file://$PROJECT_DIR$/99647.outfile">
564
+ <provider selected="true" editor-type-id="text-editor" />
811
565
  </entry>
812
- <entry file="file://$PROJECT_DIR$/email_footer.html">
813
- <provider selected="true" editor-type-id="text-editor">
814
- <state relative-caret-position="1081">
815
- <caret line="47" column="117" selection-start-line="47" selection-start-column="117" selection-end-line="47" selection-end-column="117" />
816
- </state>
817
- </provider>
566
+ <entry file="file://$PROJECT_DIR$/99647.errfile">
567
+ <provider selected="true" editor-type-id="text-editor" />
818
568
  </entry>
819
- <entry file="file://$PROJECT_DIR$/email_template.txt">
569
+ <entry file="file://$PROJECT_DIR$/lib/ApiController/peatio.rb">
820
570
  <provider selected="true" editor-type-id="text-editor">
821
- <state relative-caret-position="253">
822
- <caret line="11" lean-forward="true" selection-start-line="11" selection-end-line="11" />
571
+ <state relative-caret-position="122">
572
+ <caret line="34" column="24" selection-start-line="34" selection-start-column="24" selection-end-line="34" selection-end-column="24" />
823
573
  </state>
824
574
  </provider>
825
575
  </entry>
826
- <entry file="file://$PROJECT_DIR$/lib/mailer.rb">
827
- <provider selected="true" editor-type-id="text-editor">
828
- <state relative-caret-position="378">
829
- <caret line="30" column="3" selection-start-line="30" selection-start-column="3" selection-end-line="30" selection-end-column="3" />
830
- </state>
831
- </provider>
576
+ <entry file="file://$PROJECT_DIR$/99700.outfile">
577
+ <provider selected="true" editor-type-id="text-editor" />
832
578
  </entry>
833
- <entry file="file://$PROJECT_DIR$/lib/ApiController/barong.rb">
834
- <provider selected="true" editor-type-id="text-editor">
835
- <state relative-caret-position="363">
836
- <caret line="24" column="7" lean-forward="true" selection-start-line="24" selection-start-column="7" selection-end-line="24" selection-end-column="7" />
837
- </state>
838
- </provider>
579
+ <entry file="file://$PROJECT_DIR$/99700.errfile">
580
+ <provider selected="true" editor-type-id="text-editor" />
839
581
  </entry>
840
- <entry file="file://$PROJECT_DIR$/lib/utils.rb">
841
- <provider selected="true" editor-type-id="text-editor">
842
- <state relative-caret-position="380">
843
- <caret line="26" column="4" selection-start-line="26" selection-start-column="4" selection-end-line="27" selection-end-column="20" />
844
- </state>
845
- </provider>
582
+ <entry file="file://$PROJECT_DIR$/99773.errfile">
583
+ <provider selected="true" editor-type-id="text-editor" />
846
584
  </entry>
847
- <entry file="file://$PROJECT_DIR$/lib/Deamons/wash_trade.rb">
585
+ <entry file="file://$PROJECT_DIR$/99773.outfile">
848
586
  <provider selected="true" editor-type-id="text-editor">
849
- <state relative-caret-position="667">
850
- <caret line="29" column="52" lean-forward="true" selection-start-line="29" selection-start-column="52" selection-end-line="29" selection-end-column="52" />
587
+ <state relative-caret-position="46">
588
+ <caret line="2" lean-forward="true" selection-start-line="2" selection-end-line="2" />
851
589
  </state>
852
590
  </provider>
853
591
  </entry>
854
592
  <entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
855
593
  <provider selected="true" editor-type-id="text-editor">
856
- <state relative-caret-position="-104">
857
- <caret line="25" column="67" lean-forward="true" selection-start-line="25" selection-start-column="67" selection-end-line="25" selection-end-column="67" />
594
+ <state relative-caret-position="-393">
595
+ <caret line="34" column="6" selection-start-line="34" selection-start-column="6" selection-end-line="34" selection-end-column="6" />
858
596
  </state>
859
597
  </provider>
860
598
  </entry>
861
- <entry file="file://$PROJECT_DIR$/SimBot.gemspec">
599
+ <entry file="file://$PROJECT_DIR$/lib/Deamons/simple_mm.rb">
862
600
  <provider selected="true" editor-type-id="text-editor">
863
- <state relative-caret-position="943">
864
- <caret line="41" column="3" lean-forward="true" selection-start-line="41" selection-start-column="3" selection-end-line="41" selection-end-column="3" />
601
+ <state relative-caret-position="385">
602
+ <caret line="48" column="17" lean-forward="true" selection-start-line="48" selection-start-column="17" selection-end-line="48" selection-end-column="17" />
865
603
  </state>
866
604
  </provider>
867
605
  </entry>
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- SimBot (0.1.19)
4
+ SimBot (0.1.20)
5
5
  json
6
6
  mail
7
7
  rest-client
@@ -5,10 +5,14 @@ module ApiController
5
5
  class Peatio
6
6
  require 'json'
7
7
  require 'rest-client'
8
-
9
- def initialize(endpoint, token)
8
+ require_relative 'barong'
9
+ def initialize(endpoint, barong_base_url, app_id, email, password)
10
10
  @endpoint = endpoint
11
- @auth_token = token
11
+ @barong_base_url = barong_base_url
12
+ @app_id = app_id
13
+ @email = email
14
+ @password = password
15
+ refresh_jwt
12
16
  end
13
17
 
14
18
  def post_order(market, price, volume, type)
@@ -22,7 +26,30 @@ module ApiController
22
26
  },
23
27
  {'Authorization': "Bearer #{@auth_token}",
24
28
  'content_type': 'application/x-www-form-urlencoded'})
25
- #puts response
29
+ rescue RestClient::Unauthorized => e
30
+ refresh_jwt
31
+ puts e
32
+ puts 'Getting new JWT'
33
+ end
34
+
35
+ def cancel_order(id)
36
+ response = RestClient.post("#{@endpoint}/order/delete",
37
+ {
38
+ 'id': id
39
+ },
40
+ {'Authorization': "Bearer #{@auth_token}",
41
+ 'content_type': 'application/x-www-form-urlencoded'})
42
+
43
+ rescue RestClient::Unauthorized => e
44
+ refresh_jwt
45
+ puts e
46
+ puts 'Getting new JWT'
47
+ rescue ::StandardError => e
48
+ puts e
49
+ end
50
+
51
+ def refresh_jwt
52
+ @auth_token = ApiController::Barong.new(@barong_base_url, @app_id).log_in(@email, @password)
26
53
  end
27
54
  end
28
55
  end
@@ -0,0 +1,81 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Deamons
4
+ # Simple process to add wash trades to a market in order to simulate trade matching for QA and dev
5
+ class SimpleMm
6
+ require 'utils'
7
+
8
+ def initialize(api, market)
9
+ @order_book = { bids: [], asks: [] }
10
+ @api = api
11
+ @market = market
12
+ Process.fork do
13
+ Process.daemon(true)
14
+ pid = Process.pid
15
+ redirect("#{pid}.outfile", "#{pid}.errfile")
16
+ write_pid_file(pid, "#{pid}.pid")
17
+ start
18
+ end
19
+ puts "SimBot started on #{market} @ freq"
20
+ end
21
+
22
+ def start
23
+ count = 0
24
+ puts "--------#{@market} -------"
25
+ loop do
26
+ data = Utils.binane_order_book
27
+ populate_order_book(data)
28
+ sleep(50)
29
+ count += 1
30
+ rescue ::StandardError => e
31
+ STDERR.puts e.backtrace
32
+ STDERR.puts '\n'
33
+ next
34
+ end
35
+ end
36
+
37
+ def populate_order_book(data)
38
+ range = 99
39
+ nums = (0..range).to_a.shuffle
40
+ for i in (0..range)
41
+ ord = data[:bids][nums[i]]
42
+ txID = JSON.parse(@api.post_order(@market, 1 / ord[0].to_f, ord[1].to_f / 10, 'sell'))
43
+ ord.push(txID['id'])
44
+ @api.cancel_order(@order_book[:bids][nums[i]][-1]) if @order_book[:bids].size > 2
45
+ ord = data[:asks][nums[i]]
46
+ txID = JSON.parse(@api.post_order(@market, 1 / ord[0].to_f, ord[1].to_f / 10, 'buy'))
47
+ ord.push(txID['id'])
48
+ @api.cancel_order(@order_book[:asks][nums[i]][-1]) if @order_book[:asks].size > 2
49
+ sleep(0.5)
50
+ end
51
+ @order_book = data
52
+ puts data.inspect
53
+ end
54
+
55
+ # Attempts to write the pid of the forked process to the pid file.
56
+ # @param [Integer] pid
57
+ # @param [String] pidfile
58
+ # @return [Integer and File]
59
+ def write_pid_file(pid, pidfile)
60
+ File.open pidfile, "w" do |f|
61
+ f.write pid
62
+ end
63
+ rescue ::Exception => e
64
+ $stderr.puts "While writing the PID to file, unexpected #{e.class}: #{e}"
65
+ Process.kill "HUP", pid
66
+ end
67
+
68
+ # Send stdout and stderr to log files for the child process
69
+ # @param [String] outfile
70
+ # @param [String] errfile
71
+ # @return [TrueClass]
72
+ def redirect(outfile, errfile)
73
+ $stdin.reopen '/dev/null'
74
+ out = File.new outfile, "a"
75
+ err = File.new errfile, "a"
76
+ $stdout.reopen out
77
+ $stderr.reopen err
78
+ $stdout.sync = $stderr.sync = true
79
+ end
80
+ end
81
+ end
@@ -31,10 +31,10 @@ module Deamons
31
31
  @api.post_order(@market, price, vol, 'buy')
32
32
  puts "order ##{count} placed"
33
33
  delay = (1 / @freq).to_i
34
- sleep(delay)
34
+ sleep(rand(delay...delay + 2))
35
35
  count += 1
36
36
  rescue ::StandardError => e
37
- STDERR.puts e
37
+ STDERR.puts e.backtrace
38
38
  next
39
39
  end
40
40
  end
@@ -4,15 +4,15 @@ require 'thor'
4
4
  require 'rubygems'
5
5
  require 'websocket-client-simple'
6
6
 
7
- require_relative 'ApiController/barong'
8
7
  require_relative 'mailer'
9
8
  require_relative 'ApiController/peatio'
10
9
  require_relative 'Deamons/wash_trade'
10
+ require_relative 'Deamons/simple_mm'
11
11
  module SimBot
12
12
  # CLI for controlling the SimBot
13
13
  class CLI < Thor
14
14
  require 'utils'
15
- desc 'start', 'Start simulation bot parsing in base-url and auth token.'
15
+ desc 'wash', 'Start simulation bot parsing in base-url and auth token.'
16
16
  method_option :email, type: :string, default: 'admin@ovex.io', required: true, desc: 'Your OVEX email address'
17
17
  method_option :password, type: :string, default: 'Pass123', required: true, desc: 'Your OVEX password'
18
18
  method_option :peatio_base_url, type: :string, default: 'https://api.review.ovex.io/api/v2', desc: 'Peatio API base URL'
@@ -20,21 +20,20 @@ module SimBot
20
20
  method_option :app_id, type: :string, default: 'ceca08fbc83c2fb4eb53bb026489', desc: 'Peatio applicaiton id from Barong'
21
21
  method_option :market, type: :string, default: 'bchbtc', required: false, desc: 'OVEX market for SimBot to interact with'
22
22
  method_option :freq, type: :numeric, default: 1, desc: 'Frequency for trades to be added'
23
- def start
24
- jwt = ApiController::Barong.new(options[:barong_base_url], options[:app_id]).log_in(options[:email], options[:password])
25
- api = ApiController::Peatio.new(options[:peatio_base_url], jwt)
23
+ def wash
24
+ api = ApiController::Peatio.new(options[:peatio_base_url], options[:barong_base_url], options[:app_id], options[:email], options[:password])
26
25
  Deamons::WashTrade.new(api, options[:market], options[:freq])
27
26
  end
28
27
  desc 'mm', 'Starts a market maker'
29
28
  method_option :email, type: :string, default: 'admin@ovex.io', required: true, desc: 'Your OVEX email address'
30
- method_option :password, type: :string, default: '7P1CMgrr', required: true, desc: 'Your OVEX password'
29
+ method_option :password, type: :string, default: 'Pass123', required: true, desc: 'Your OVEX password'
31
30
  method_option :peatio_base_url, type: :string, default: 'https://api.review.ovex.io/api/v2', desc: 'Peatio API base URL'
32
31
  method_option :barong_base_url, type: :string, default: 'https://auth.review.ovex.io/api/v1', desc: 'Barong API base URL'
33
32
  method_option :app_id, type: :string, default: 'ceca08fbc83c2fb4eb53bb026489', desc: 'Peatio applicaiton id from Barong'
34
33
  method_option :market, type: :string, default: 'bchbtc', required: false, desc: 'OVEX market for SimBot to interact with'
35
34
  def mm
36
- # TODO
37
- puts "add market maker code here"
35
+ api = ApiController::Peatio.new(options[:peatio_base_url], options[:barong_base_url], options[:app_id], options[:email], options[:password])
36
+ Deamons::SimpleMm.new(api, options[:market])
38
37
  end
39
38
  desc 'list', 'Return list of running processes'
40
39
  def list
@@ -1,3 +1,3 @@
1
1
  module SimBot
2
- VERSION = "0.1.20"
2
+ VERSION = "0.1.21"
3
3
  end
@@ -103,6 +103,16 @@ class Utils
103
103
  return hash['data']['quotes']['ETH']['price'].to_f.round(4)
104
104
  end
105
105
 
106
+ # fetch binance order book
107
+ # @return [float] rate
108
+ def self.binane_order_book
109
+ response = RestClient.get('https://api.binance.com/api/v1/depth?symbol=BCCBTC&limit=100')
110
+ hash = JSON.parse(response.body)
111
+ bids = hash['bids']
112
+ asks = hash['asks']
113
+ { bids: bids, asks: asks }
114
+ end
115
+
106
116
  # Try and read the existing pid from the pid file and signal the
107
117
  # process. Returns true for a non blocking status.
108
118
  # @param [Integer] pid
Binary 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.20
4
+ version: 0.1.21
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-07-30 00:00:00.000000000 Z
11
+ date: 2018-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -174,6 +174,7 @@ files:
174
174
  - exportToHTML/mailer.rb.html
175
175
  - lib/ApiController/barong.rb
176
176
  - lib/ApiController/peatio.rb
177
+ - lib/Deamons/simple_mm.rb
177
178
  - lib/Deamons/wash_trade.rb
178
179
  - lib/SimBot.rb
179
180
  - lib/SimBot/version.rb