class Cryptsy::API2::User
Public Class Methods
new(public_key=nil, private_key=nil)
click to toggle source
TODO: string to id conversion for currency_id
# File lib/cryptsy/api2/user.rb, line 6 def initialize(public_key=nil, private_key=nil) @public_key = public_key @private_key = private_key end
Public Instance Methods
addresses(currency_id=nil, options={})
click to toggle source
# File lib/cryptsy/api2/user.rb, line 27 def addresses(currency_id=nil, options={}) path = "addresses" path += "/#{currency_id}" unless currency_id.nil? Request.send(path, options, @public_key, @private_key) end
balances(currency_id=nil, options={})
click to toggle source
# File lib/cryptsy/api2/user.rb, line 15 def balances(currency_id=nil, options={}) path = "balances" path += "/#{currency_id}" unless currency_id.nil? Request.send(path, options, @public_key, @private_key) end
deposits(currency_id=nil, options={})
click to toggle source
# File lib/cryptsy/api2/user.rb, line 21 def deposits(currency_id=nil, options={}) path = "deposits" path += "/#{currency_id}" unless currency_id.nil? Request.send(path, options, @public_key, @private_key) end
info()
click to toggle source
# File lib/cryptsy/api2/user.rb, line 11 def info Request.send("info", {}, @public_key, @private_key) end
orders(currency_id=nil, options={})
click to toggle source
# File lib/cryptsy/api2/user.rb, line 33 def orders(currency_id=nil, options={}) path = "orders" path += "/#{currency_id}" unless currency_id.nil? Request.send(path, options, @public_key, @private_key) end
tradehistory(options={})
click to toggle source
# File lib/cryptsy/api2/user.rb, line 45 def tradehistory(options={}) Request.send("tradehistory", options, @public_key, @private_key) end
transfers(currency_id=nil, options={})
click to toggle source
# File lib/cryptsy/api2/user.rb, line 53 def transfers(currency_id=nil, options={}) path = "transfers" path += "/#{currency_id}" unless currency_id.nil? Request.send(path, options, @public_key, @private_key) end
triggers(currency_id=nil, options={})
click to toggle source
# File lib/cryptsy/api2/user.rb, line 39 def triggers(currency_id=nil, options={}) path = "triggers" path += "/#{currency_id}" unless currency_id.nil? Request.send(path, options, @public_key, @private_key) end
validatetradekey(tradekey)
click to toggle source
# File lib/cryptsy/api2/user.rb, line 49 def validatetradekey(tradekey) Request.send("validatetradekey", { tradekey: tradekey }, @public_key, @private_key) end
withdrawals(currency_id=nil, options={})
click to toggle source
# File lib/cryptsy/api2/user.rb, line 59 def withdrawals(currency_id=nil, options={}) path = "withdrawals" path += "/#{currency_id}" unless currency_id.nil? Request.send(path, options, @public_key, @private_key) end