Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/hitbtc/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def cancel_order client_order_id
else
opts = {}
opts[:clientOrderId] = order.orderId
opts[:cancelRequestClientOrderId] = Time.now.to_i.to_s
opts[:cancelRequestClientOrderId] = nonce
opts[:symbol] = order.symbol
opts[:side] = order.side
opts[:price] = order.orderPrice
Expand All @@ -141,7 +141,7 @@ def recent_orders opts={max_results: 10, start_index: 0, statuses: "new,partiall

#### Private User Trading (Still experimental!) ####
def create_order opts={}
opts[:clientOrderId] = Time.now.to_i.to_s
opts[:clientOrderId] = nonce
post_private 'new_order', opts
end
######################
Expand Down