Class: Cryptsy::API2::Currencies

Inherits:
Object
  • Object
show all
Defined in:
lib/cryptsy/api2/currencies.rb

Instance Method Summary collapse

Constructor Details

#initialize(public_key = nil, private_key = nil) ⇒ Currencies

Returns a new instance of Currencies.



4
5
6
7
# File 'lib/cryptsy/api2/currencies.rb', line 4

def initialize(public_key=nil, private_key=nil)
  @public_key = public_key
  @private_key = private_key
end

Instance Method Details

#info(currency_id) ⇒ Object



13
14
15
# File 'lib/cryptsy/api2/currencies.rb', line 13

def info(currency_id)
  Request.send("currencies/#{currency_id}")
end

#listObject



9
10
11
# File 'lib/cryptsy/api2/currencies.rb', line 9

def list
  Request.send("currencies")
end

#marketlist(currency_id) ⇒ Object



17
18
19
# File 'lib/cryptsy/api2/currencies.rb', line 17

def marketlist(currency_id)
  Request.send("currencies/#{currency_id}/markets")
end