diff --git a/requirements.txt b/requirements.txt index 5cdf7bb..fd0f5d1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ coverage==4.4.1 -pytest==3.2.0 -python-decouple==3.0 -requests==2.18.3 +pytest==3.2.1 +python-decouple==3.1 +requests==2.18.4 tox==2.7.0 diff --git a/setup.py b/setup.py index 1be05ce..d4613c8 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( name='trading_api_wrappers', - version='0.3.4', + version='0.3.5', description='Trading API Wrappers for Python 3.5', url='https://github.com/delta575/trading-api-wrappers', author='Felipe Aránguiz, Sebastián Aránguiz', diff --git a/trading_api_wrappers/surbtc/client_auth.py b/trading_api_wrappers/surbtc/client_auth.py index 515160d..4e4b65c 100644 --- a/trading_api_wrappers/surbtc/client_auth.py +++ b/trading_api_wrappers/surbtc/client_auth.py @@ -218,7 +218,7 @@ def deposits(self, currency: _c.Currency): def withdrawal(self, currency: _c.Currency, amount: float, - target_address, + target_address: str=None, amount_includes_fee: bool=True, simulate: bool=False): currency = _c.Currency.check(currency).value diff --git a/trading_api_wrappers/surbtc/models.py b/trading_api_wrappers/surbtc/models.py index af6568f..3ee729c 100644 --- a/trading_api_wrappers/surbtc/models.py +++ b/trading_api_wrappers/surbtc/models.py @@ -389,8 +389,8 @@ class TransferData( def create_from_json(cls, transfer, address_key): return cls( type=transfer['type'], - address=transfer[address_key], - tx_hash=transfer['tx_hash'] + address=transfer.get(address_key), + tx_hash=transfer.get('tx_hash'), )