question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Binance withdraw()

See original GitHub issue

Hello!

I have an issue with withdraw function. Is it not supported for all the exchanges? For example, binance:

import ccxt
exch = ccxt.binance({
'apiKey': key,
'secret': secret,
})

order = exch.withdraw('USDT', 105, exch_withdraw_to.usdt_wallet)

result:

Traceback (most recent call last): File “withdraw.py”, line 87, in <module> order = exch_withdraw_from.private_exch.withdraw(‘USDT’, 105, exch_withdraw_to.usdt_wallet) AttributeError: ‘binance’ object has no attribute ‘withdraw’

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:46 (22 by maintainers)

github_iconTop GitHub Comments

3reactions
Ninj0rcommented, Nov 2, 2017

That should work. I pinned a post in the API chat a while back:

3) You can't send /wapi parameters in the request body. They have to be query parameters.
If you get:
{"msg":"{\"code\":-1105,\"msg\":\"Parameter 'payload' was was empty.\"}","success":false}

That means you sent things in the request body.
For /api endpoints, you can use the request body freely but you cannot for the /wapi endpoints.

(The @ from the comment a few days ago put me on the thread.)

1reaction
sumiticommented, Apr 17, 2019

@kroitor I got your point the setting is not enabled. Thanks!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Withdraw from Binance
1. Log in to your Binance App and tap [Wallets] - [Withdraw]. · 2. Choose the cryptocurrency you want to withdraw, for example,...
Read more >
How to Withdraw from Binance
1. Log in to your Binance App and tap [Wallets] - [Withdraw]. · 2. Choose the cryptocurrency you want to withdraw, for example,...
Read more >
Crypto Deposit/Withdrawal | Binance Support
Find here answer for issues during deposit and withdrawal to Binance wallet.
Read more >
How to Withdraw on Binance
1. Log in to your Binance account. · 2. Click on [Withdraw]. · 3. Select the [Fiat] tab. · 4. Select the fiat...
Read more >
Change Log – Binance API Documentation - GitHub Pages
Update endpoints for Wallet: POST /sapi/v1/capital/withdraw/apply : Weight changed to Weight(UID): 600. 2022- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found