Class: ZaifWrapper::Client::ZaifPublicApi
- Inherits:
-
Object
- Object
- ZaifWrapper::Client::ZaifPublicApi
- Defined in:
- lib/zaif_wrapper/client.rb
Constant Summary collapse
- REQUEST_URL_BASE =
'https://api.zaif.jp/api/1/'- METHODS =
{ :currencies => 'currency_code', :currency_pairs => 'currency_pair', :last_price => 'currency_pair', :ticker => 'currency_pair', :trades => 'currency_pair', :depth => 'currency_pair' }.freeze
Instance Method Summary collapse
Instance Method Details
#request(path) ⇒ Object
20 21 22 23 |
# File 'lib/zaif_wrapper/client.rb', line 20 def request(path) response = RestClient.get "#{REQUEST_URL_BASE}#{path}" JSON.parse(response.body) end |