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

Cannot withdraw USDT to other exchange #59

Open
htquyen1994 opened this issue May 27, 2024 · 2 comments
Open

Cannot withdraw USDT to other exchange #59

htquyen1994 opened this issue May 27, 2024 · 2 comments

Comments

@htquyen1994
Copy link

`host = "https://api.gateio.ws"
prefix = "/api/v4"
common_headers = {'Accept': 'application/json', 'Content-Type': 'application/json'}

url = '/withdrawals' 
body = {
    "currency": "USDT", #"ADF",
    "address": BITGET_DEPOSIT_ADDRESS,
    "amount": "5", 
    "chain": "BSC/BEP20", #BSC/BEP20 MATIC
    "address_memo": ""
}
request_content = json.dumps(body)
sign_headers = gen_sign('POST', prefix + url, "", request_content)
sign_headers.update(common_headers)
res = requests.post(host + prefix + url, headers=sign_headers, data=request_content)
print(res.status_code)
print("Response {0}".format(res))
return res`

Although the request returned with statusCode is 200 but the content in body is empty when i withdrawed usdt.
I tested some coins (not USDT) and it is work normally

@htquyen1994
Copy link
Author

@revilwang
Copy link
Collaborator

As this is an issue related to a specific API response, I suggest submitting an issue through our help center.

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

No branches or pull requests

2 participants