Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bitfinex fiat (USD) withdraw() #456

Closed
Fcl69 opened this issue Nov 3, 2017 · 12 comments
Closed

Bitfinex fiat (USD) withdraw() #456

Fcl69 opened this issue Nov 3, 2017 · 12 comments
Assignees
Labels

Comments

@Fcl69
Copy link

Fcl69 commented Nov 3, 2017

code:

import ccxt 
exch = ccxt.bitfinex({
    'apiKey': 'key',
    'secret': 'sec',
    'enableRateLimit': True,
    'verbose': True,
    })
order = exch.withdraw('USD', '100', 'wallet')
print(order)

output:

https://api.bitfinex.com/v1/symbols_details GET https://api.bitfinex.com/v1/symbols_details
Bad Request {"message":"Key swift was not present."}

@kroitor
Copy link
Member

kroitor commented Nov 3, 2017

Hi! Basically, it tells you the reason:

{"message":"Key swift was not present."}

What it is saying is that if you want to do fiat withdrawals (USD), then they require SWIFT bank code, as long as several other params (bank info, account numbers, etc), described here: https://bitfinex.readme.io/v1/reference#rest-auth-transfer-between-wallets

screen shot 2017-11-03 at 08 00 00

You can pass them in the last argument of the withdraw call like so:

exch.withdraw('USD', '100', 'wallet',{
    'swift': 'YOUR_SWIFT',
    'bank_name': 'YOUR_BANK_NAME',
    # all other required params...
})

Does this help?

@kroitor kroitor changed the title bitfinex.withdraw() error Bitfinex fiat (USD) withdraw() Nov 3, 2017
@kroitor kroitor self-assigned this Nov 3, 2017
@Fcl69
Copy link
Author

Fcl69 commented Nov 3, 2017

Hm... Yes, you're right. I thought it was USDT. I guess, they're using another symbol for that.

@kroitor kroitor closed this as completed Nov 3, 2017
@Fcl69
Copy link
Author

Fcl69 commented Nov 3, 2017

F$%^ Bitfinex won't do "USDT", nor "tether"
Do you happen to know which symbol I should specify for tethers?

@kroitor
Copy link
Member

kroitor commented Nov 3, 2017

@Fcl69 yeah, just one sec we will try adding USDT support. I'll get back to you with an update in 5 minutes.

kroitor added a commit that referenced this issue Nov 3, 2017
@kroitor
Copy link
Member

kroitor commented Nov 3, 2017

@Fcl69 can you please try it with version 1.9.356 and USDT? They say it should be withdrawable to any BTC or ETH address...

@Fcl69
Copy link
Author

Fcl69 commented Nov 3, 2017

Hello!

Looks like it accepted the symbol:

[{"status":"error","message":"Min 100 USD","withdrawal_id":0,"fees":"5.0"}]
{'info': {'message': 'Min 100 USD', 'fees': '5.0', 'withdrawal_id': 0, 'status': 'error'}, 'id': 0}

@kroitor
Copy link
Member

kroitor commented Nov 3, 2017

@Fcl69 Yes it did, but it requires >100USD. I guess you can carry on from here. Thx!

@Fcl69
Copy link
Author

Fcl69 commented Nov 3, 2017

I've tested the full cycle, and it worked. Thanks again!

@Tsuihao
Copy link

Tsuihao commented Jan 8, 2018

Hi all,

Just wanna ask, I faced problem when I trying to withdraw at "Kraken".
I obtained the following message
Kraken requires 'key' to withdraw.

Is this 'key' referring to: 1. 2-factor authentication 2. apiKey or 3. secretKey
I have checked Manual
However, there is no clearly state which information do the 'key' referring to.

Regards,
Hao

@kroitor
Copy link
Member

kroitor commented Jan 8, 2018

@Tsuihao can you show the code and verbose output? (set .verbose = true on the exchange, then call withdraw)

@kroitor
Copy link
Member

kroitor commented Jan 8, 2018

@Tsuihao this is either your withdrawal address name or withdrawal address (often set to the same value):

kraken-withdraw

@Tsuihao
Copy link

Tsuihao commented Jan 8, 2018

@kroitor, Thanks for the info.

It is the "Description" name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants