SimBot 0.1.38 → 0.1.39
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 +13 -12
- data/lib/SimBot/version.rb +1 -1
- data/lib/utils.rb +8 -0
- 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: 5e6b958b1984d41a038c142e44cdfd752c67e12a0da3b2225ccb2ca8bb28d723
|
4
|
+
data.tar.gz: 33d0c0bb16b2fefc46a5155fb9f91a255bacdad893ed3d0ad7d1117f4dda1ddb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a76638f38f2aa2b243c2e07357ca4b7f5885c37ab92dc496580123e561b2d720bad7c2b92b83bd496003bf91da4496d05eeb93a5b08a32aacf8d9f7d4093d03e
|
7
|
+
data.tar.gz: 10b26076fc7255271410e0b08a5495a8483845a0f67e25219fe30da953597b1e53a6813eda1ba7c93936b769eeb8fee926fab16e1d8dec77e351ac3b3ae52872
|
data/.idea/workspace.xml
CHANGED
@@ -113,8 +113,8 @@
|
|
113
113
|
<file leaf-file-name="SimBot.rb" pinned="false" current-in-tab="false">
|
114
114
|
<entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
|
115
115
|
<provider selected="true" editor-type-id="text-editor">
|
116
|
-
<state relative-caret-position="
|
117
|
-
<caret line="
|
116
|
+
<state relative-caret-position="1843">
|
117
|
+
<caret line="105" column="3" lean-forward="true" selection-start-line="105" selection-start-column="3" selection-end-line="105" selection-end-column="3" />
|
118
118
|
</state>
|
119
119
|
</provider>
|
120
120
|
</entry>
|
@@ -122,8 +122,8 @@
|
|
122
122
|
<file leaf-file-name="utils.rb" pinned="false" current-in-tab="false">
|
123
123
|
<entry file="file://$PROJECT_DIR$/lib/utils.rb">
|
124
124
|
<provider selected="true" editor-type-id="text-editor">
|
125
|
-
<state relative-caret-position="
|
126
|
-
<caret line="
|
125
|
+
<state relative-caret-position="470">
|
126
|
+
<caret line="145" lean-forward="true" selection-start-line="145" selection-end-line="145" />
|
127
127
|
</state>
|
128
128
|
</provider>
|
129
129
|
</entry>
|
@@ -168,6 +168,7 @@
|
|
168
168
|
<findStrings>
|
169
169
|
<find>post</find>
|
170
170
|
<find>\n</find>
|
171
|
+
<find>ethusd_price</find>
|
171
172
|
</findStrings>
|
172
173
|
</component>
|
173
174
|
<component name="Git.Settings">
|
@@ -346,12 +347,12 @@
|
|
346
347
|
<workItem from="1540392568366" duration="1094000" />
|
347
348
|
<workItem from="1543308539466" duration="4000" />
|
348
349
|
<workItem from="1543413426007" duration="137000" />
|
349
|
-
<workItem from="1543938137760" duration="
|
350
|
+
<workItem from="1543938137760" duration="3025000" />
|
350
351
|
</task>
|
351
352
|
<servers />
|
352
353
|
</component>
|
353
354
|
<component name="TimeTrackingManager">
|
354
|
-
<option name="totallyTimeSpent" value="
|
355
|
+
<option name="totallyTimeSpent" value="184723000" />
|
355
356
|
</component>
|
356
357
|
<component name="TodoView">
|
357
358
|
<todo-panel id="selected-file">
|
@@ -366,7 +367,7 @@
|
|
366
367
|
<frame x="1647" y="23" width="1615" height="1057" extended-state="0" />
|
367
368
|
<editor active="true" />
|
368
369
|
<layout>
|
369
|
-
<window_info
|
370
|
+
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.16973935" />
|
370
371
|
<window_info anchor="bottom" id="TODO" order="6" weight="0.32995495" />
|
371
372
|
<window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
|
372
373
|
<window_info anchor="bottom" id="Event Log" order="11" sideWeight="0.30114448" side_tool="true" weight="0.44097695" />
|
@@ -375,7 +376,7 @@
|
|
375
376
|
<window_info anchor="bottom" id="Version Control" order="10" weight="0.3292683" />
|
376
377
|
<window_info anchor="bottom" id="Run" order="2" sideWeight="0.6044349" weight="0.35262594" />
|
377
378
|
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
|
378
|
-
<window_info anchor="bottom" id="Terminal" order="9" sideWeight="0.6988555" visible="true" weight="0.
|
379
|
+
<window_info active="true" anchor="bottom" id="Terminal" order="9" sideWeight="0.6988555" visible="true" weight="0.18649517" />
|
379
380
|
<window_info id="Favorites" order="2" side_tool="true" />
|
380
381
|
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
|
381
382
|
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
|
@@ -614,15 +615,15 @@
|
|
614
615
|
</entry>
|
615
616
|
<entry file="file://$PROJECT_DIR$/lib/SimBot.rb">
|
616
617
|
<provider selected="true" editor-type-id="text-editor">
|
617
|
-
<state relative-caret-position="
|
618
|
-
<caret line="
|
618
|
+
<state relative-caret-position="1843">
|
619
|
+
<caret line="105" column="3" lean-forward="true" selection-start-line="105" selection-start-column="3" selection-end-line="105" selection-end-column="3" />
|
619
620
|
</state>
|
620
621
|
</provider>
|
621
622
|
</entry>
|
622
623
|
<entry file="file://$PROJECT_DIR$/lib/utils.rb">
|
623
624
|
<provider selected="true" editor-type-id="text-editor">
|
624
|
-
<state relative-caret-position="
|
625
|
-
<caret line="
|
625
|
+
<state relative-caret-position="470">
|
626
|
+
<caret line="145" lean-forward="true" selection-start-line="145" selection-end-line="145" />
|
626
627
|
</state>
|
627
628
|
</provider>
|
628
629
|
</entry>
|
data/lib/SimBot/version.rb
CHANGED
data/lib/utils.rb
CHANGED
@@ -136,6 +136,14 @@ class Utils
|
|
136
136
|
return hash['data']['quotes']['ETH']['price'].to_f.round(4)
|
137
137
|
end
|
138
138
|
|
139
|
+
# fetch eos/eth price from coin market cap
|
140
|
+
# @return [float] rate
|
141
|
+
def self.ethusd_price
|
142
|
+
response = RestClient.get('https://api.coinmarketcap.com/v2/ticker/1027/?convert=USD')
|
143
|
+
hash = JSON.parse (response.body)
|
144
|
+
return hash['data']['quotes']['USD']['price'].to_f.round(4)
|
145
|
+
end
|
146
|
+
|
139
147
|
# fetch binance order book
|
140
148
|
# @return [float] rate
|
141
149
|
def self.binance_order_book
|