Class: Cryptsy::API2::Order
- Inherits:
-
Object
- Object
- Cryptsy::API2::Order
- Defined in:
- lib/cryptsy/api2/order.rb
Instance Method Summary collapse
-
#create(options) ⇒ Object
Required Options: { marketid: 0, ordertype: ‘buy|sell’, quantity: 0.00, price: 0.00 }.
- #delete(order_id) ⇒ Object
- #info(order_id) ⇒ Object
-
#initialize(public_key = nil, private_key = nil) ⇒ Order
constructor
A new instance of Order.
Constructor Details
#initialize(public_key = nil, private_key = nil) ⇒ Order
Returns a new instance of Order.
4 5 6 7 |
# 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 |
Instance Method Details
#create(options) ⇒ Object
Required Options: { marketid: 0, ordertype: ‘buy|sell’, quantity: 0.00, price: 0.00 }
11 12 13 |
# File 'lib/cryptsy/api2/order.rb', line 11 def create() Request.send("order", , @public_key, @private_key, "POST") end |