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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6759fbd90ae23168dfc1dd2ac91828a120f71e1e2165803042499c70a8118077
4
- data.tar.gz: ae8d4d29f2b339f4557210ba54a68d497bb5d9a7ccde16788e087368919accbf
3
+ metadata.gz: 5e6b958b1984d41a038c142e44cdfd752c67e12a0da3b2225ccb2ca8bb28d723
4
+ data.tar.gz: 33d0c0bb16b2fefc46a5155fb9f91a255bacdad893ed3d0ad7d1117f4dda1ddb
5
5
  SHA512:
6
- metadata.gz: 5b333da4a0374119505092f62a997358aa896742a1ac5a56a3510eef1e85693d002259d21b6c5cd1847f9bc2c96cae08ef2a16ca61e756fee8a6ef65cf1754da
7
- data.tar.gz: bc0135a7d4443530c549a71377077d59bbcd440c24a93da6927a3369f911ee0da3cf0abc734ab5f5575a99cc2f3b01f3f5943899acb112fca50510d0ec5435f2
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="166">
117
- <caret line="15" column="13" lean-forward="true" selection-start-line="15" selection-start-column="13" selection-end-line="15" selection-end-column="13" />
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="336">
126
- <caret line="18" column="17" lean-forward="true" selection-start-line="18" selection-start-column="17" selection-end-line="18" selection-end-column="17" />
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="1857000" />
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="183555000" />
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 active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.16973935" />
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.44051448" />
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="166">
618
- <caret line="15" column="13" lean-forward="true" selection-start-line="15" selection-start-column="13" selection-end-line="15" selection-end-column="13" />
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="336">
625
- <caret line="18" column="17" lean-forward="true" selection-start-line="18" selection-start-column="17" selection-end-line="18" selection-end-column="17" />
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>
@@ -1,3 +1,3 @@
1
1
  module SimBot
2
- VERSION = "0.1.38"
2
+ VERSION = "0.1.39"
3
3
  end
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
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.38
4
+ version: 0.1.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Ovadia