Class: MtGox::Me
Instance Method Summary collapse
-
#add(type, amount_int, price_int, currency = :usd) ⇒ Object
add a order.
- #id_key ⇒ Object
- #info ⇒ Object
- #orders ⇒ Object
- #trades ⇒ Object
Methods inherited from Client
Methods included from Request
Instance Method Details
#add(type, amount_int, price_int, currency = :usd) ⇒ Object
add a order
24 25 26 27 28 |
# File 'lib/mtgox/me.rb', line 24 def add(type, amount_int, price_int, currency=:usd) currency = currency_name(currency) query = {type: type, amount_int: amount_int, price_int: price_int} post("https://mtgox.com/api/1/#{currency}/private/order/add", query) end |
#id_key ⇒ Object
7 8 9 |
# File 'lib/mtgox/me.rb', line 7 def id_key post("/api/1/generic/private/idkey")["return"] end |
#info ⇒ Object
3 4 5 |
# File 'lib/mtgox/me.rb', line 3 def info post("/api/1/generic/private/info?raw") end |