Skip to content

Commit 907ec0d

Browse files
author
Sam McHardy
committed
Fix errors in examples for withdraw endpoints to include parameter name
1 parent 476e704 commit 907ec0d

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

PYPIREADME.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ Quick Start
9494
withdraws = client.get_withdraw_history()
9595
9696
# fetch list of ETH withdrawals
97-
eth_withdraws = client.get_withdraw_history('ETH)
97+
eth_withdraws = client.get_withdraw_history(asset='ETH')
9898
99-
# get a deposit address
100-
address = client.get_deposit_address('BTC)
99+
# get a deposit address for BTC
100+
address = client.get_deposit_address(asset='BTC')
101101
102102
# start trade websocket
103103
def process_message(msg):

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ Quick Start
9494
withdraws = client.get_withdraw_history()
9595
9696
# fetch list of ETH withdrawals
97-
eth_withdraws = client.get_withdraw_history('ETH)
97+
eth_withdraws = client.get_withdraw_history(asset='ETH')
9898
99-
# get a deposit address
100-
address = client.get_deposit_address('BTC)
99+
# get a deposit address got BTC
100+
address = client.get_deposit_address(asset='BTC')
101101
102102
# start trade websocket
103103
def process_message(msg):

docs/withdraw.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ Raises a `BinanceWithdrawException <binance.html#binance.exceptions.BinanceWithd
4747

4848
.. code:: python
4949
50-
address = client.get_deposit_address('BTC)
50+
address = client.get_deposit_address(asset='BTC')
5151
5252
.. image:: https://analytics-pixel.appspot.com/UA-111417213-1/github/python-binance/docs/withdraw?pixel

0 commit comments

Comments
 (0)