Class: Mcoin::Market::Zaif

Inherits:
Base
  • Object
show all
Defined in:
lib/mcoin/market/zaif.rb

Overview

:nodoc:

Constant Summary collapse

ENDPOINT =
'https://api.zaif.jp/api/1/ticker/%<type>s_%<currency>s'

Instance Attribute Summary

Attributes inherited from Base

#results

Instance Method Summary collapse

Methods inherited from Base

#establish_connection, #fetch, #initialize, #name, #to_ticker

Constructor Details

This class inherits a constructor from Mcoin::Market::Base

Instance Method Details

#watch(type, currency) ⇒ Object



9
10
11
12
# File 'lib/mcoin/market/zaif.rb', line 9

def watch(type, currency)
  type = swap_cms(type.to_s.downcase)
  @pairs.add({ type: type, currency: currency.to_s.downcase })
end