Skip to content

Commit d68bcef

Browse files
committed
add exception relative requirement to httpmanager
fix typo in estimate withdraw fee fix typo in method get estimate withdraw fee updates the documentation link
1 parent 60f2731 commit d68bcef

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ To install Cryptomarket use gem
1010
gem install cryptomarket-sdk
1111
```
1212
# Documentation
13-
14-
[The api documentation](https://api.exchange.cryptomkt.com/)
15-
13+
This sdk makes use of the [api version 2](https://api.exchange.cryptomkt.com/v2) of cryptomarket
1614

1715
# Quick Start
1816

lib/cryptomarket/HttpManager.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
require 'json'
44
require 'base64'
55
require 'rest-client'
6+
require_relative 'exceptions'
67

78
module Cryptomarket
89
class HttpManager

lib/cryptomarket/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,8 +630,8 @@ def rollbackWithdrawCrypto(id)
630630
# +String+ +currency+:: the currency code for withdraw
631631
# +Integer+ +amount+:: the expected withdraw amount
632632

633-
def getEstimatesWithdrawFee(currency, amount)
634-
params = {currency:currency, amount:amount}
633+
def getEstimateWithdrawFee(currency, amount)
634+
params = {amount:amount, currency:currency}
635635
return get('account/crypto/estimate-withdraw', params)
636636
end
637637

tests/rest/accountManagement.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def test_transfer_convert
4747
end
4848

4949
def test_get_estimate_withdraw_fee
50-
result = @client.getEstimatesWithdrawFee "EOS", "100"
50+
result = @client.getEstimateWithdrawFee "EOS", "100"
5151
# puts result
5252
end
5353

0 commit comments

Comments
 (0)