Class: Cryptorank::Chart

Inherits:
Base
  • Object
show all
Defined in:
lib/cryptorank/resources/chart.rb

Class Method Summary collapse

Methods inherited from Base

split_words

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