lib/abucoins/abucoins.rb in abucoins-0.2.0 vs lib/abucoins/abucoins.rb in abucoins-0.3.0

- old
+ new

@@ -57,9 +57,26 @@ def accounts get('/accounts') end + def deposits_crypto(currency:, method:) + post('/deposits/crypto', { + currency: currency, + method: method + }) + end + + def withdrawals_crypto(amount:, currency:, method:, address:, tag: nil) + post('/withdrawals/crypto', { + amount: amount, + currency: currency, + method: method, + address: address, + tag: tag, + }) + end + private def signature(timestamp, verb, path, body) str = "#{timestamp}#{verb}#{path}#{body}" secret = Base64.decode64(@secret)