HuobiRDCenter / huobi_Python

Python SDK for Huobi Spot API
https://huobiapi.github.io/docs/spot/v1/en
Apache License 2.0
683 stars 333 forks source link

API withdrawal does not support temporary addresses #106

Open freebil opened 3 years ago

freebil commented 3 years ago

Hello, I have declared the address in the huobi address list (https://www.huobi.com/en-us/finance-beta/address/) but the api withdraw gives the error ('ExecuteError', '[Executing] api-not-support-temp-addr: API withdrawal does not support temporary addresses').

The code is the following:

wallet_client = WalletClient(api_key="...",
                               secret_key="...")
withdraw_id = wallet_client.post_create_withdraw(address="...",
                                amount=100, currency="trx", fee=1)

The same happens in the API Explorer too (https://open.huobigroup.com/?name=create-withdraw-request) with

Request JSON

{
  "address": "...",
  "currency": "trx",
  "amount": "15",
  "fee": "1"
}

and

Response JSON

{
  "status": "error",
  "err-code": "api-not-support-temp-addr",
  "err-msg": "API withdrawal does not support temporary addresses",
  "data": null
}