class Cryptsy::API2::Order

Public Class Methods

new(public_key=nil, private_key=nil) click to toggle source
# File lib/cryptsy/api2/order.rb, line 4
def initialize(public_key=nil, private_key=nil)
  @public_key = public_key
  @private_key = private_key
end

Public Instance Methods

create(options) click to toggle source

Required Options: { marketid: 0, ordertype: ‘buy|sell’, quantity: 0.00, price: 0.00 }

# File lib/cryptsy/api2/order.rb, line 11
def create(options)
  Request.send("order", options, @public_key, @private_key, "POST")
end
delete(order_id) click to toggle source
# File lib/cryptsy/api2/order.rb, line 19
def delete(order_id)
  Request.send("order/#{order_id}", {}, @public_key, @private_key, "DELETE")
end
info(order_id) click to toggle source
# File lib/cryptsy/api2/order.rb, line 15
def info(order_id)
  Request.send("order/#{order_id}", {}, @public_key, @private_key)
end