lib/abucoins/abucoins.rb in abucoins-0.3.0 vs lib/abucoins/abucoins.rb in abucoins-0.3.1
- old
+ new
@@ -26,12 +26,12 @@
def order(id)
get("/orders/#{id}")
end
- def fills
- get('/fills')
+ def fills(args = nil)
+ get('/fills', params: args)
end
def create_order(side:, hidden: false, time_in_force: nil, size:, price:, product_id:, type: 'limit', cancel_after: nil, post_only: nil)
opts = {
side: side,
@@ -72,9 +72,17 @@
currency: currency,
method: method,
address: address,
tag: tag,
})
+ end
+
+ def deposits(opts={})
+ get('/deposits/history', opts)
+ end
+
+ def withdrawals(opts={})
+ get('/withdrawals/history', opts)
end
private
def signature(timestamp, verb, path, body)