Class: Cryptorank::Chart
Class Method Summary collapse
-
.history(name) ⇒ Object
GET /coins/#coin/chart/history Description: Acquire year data of crypto Parameter: /.
-
.history_time(name:, time:) ⇒ Object
GET /coins/#coin/chart/history?fromTs= Description: Acquire month data of crypto Parameter: /.
Methods inherited from Base
Class Method Details
.history(name) ⇒ Object
GET /coins/#coin/chart/history Description: Acquire year data of crypto Parameter: /
10 11 12 |
# File 'lib/cryptorank/resources/chart.rb', line 10 def history(name) detail(name: split_words(name)) end |
.history_time(name:, time:) ⇒ Object
GET /coins/#coin/chart/history?fromTs= Description: Acquire month data of crypto Parameter: /
18 19 20 |
# File 'lib/cryptorank/resources/chart.rb', line 18 def history_time(name:, time:) detail(name: split_words(name), time: time) end |