Module: Bitsor::Client::Orders
- Included in:
- Bitsor::Client
- Defined in:
- lib/bitsor/client/orders.rb
Instance Method Summary collapse
- #cancel_order(oid:) ⇒ Object
- #lookup_order(oid:) ⇒ Object
- #place_order(book:, side:, type:, major: nil, minor: nil, price: nil) ⇒ Object
Instance Method Details
#cancel_order(oid:) ⇒ Object
16 17 18 |
# File 'lib/bitsor/client/orders.rb', line 16 def cancel_order(oid:) delete("/v3/orders/#{oid}/") end |
#lookup_order(oid:) ⇒ Object
6 7 8 9 10 |
# File 'lib/bitsor/client/orders.rb', line 6 def lookup_order(oid:) normalize_response.with(:order) do get("/v3/orders/#{oid}/") end end |
#place_order(book:, side:, type:, major: nil, minor: nil, price: nil) ⇒ Object
12 13 14 |
# File 'lib/bitsor/client/orders.rb', line 12 def place_order(book:, side:, type:, major: nil, minor: nil, price: nil) post('/v3/orders/', book: book, side: side, type: type, major: major, minor: minor, price: price) end |