gateio / gatews

Gate Websocket V4 SDK
96 stars 36 forks source link

Cannot withdraw USDT to other exchange #59

Open htquyen1994 opened 5 months ago

htquyen1994 commented 5 months ago

`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 commented 5 months ago

@revilwang @gateio @Sinclair-Ni

revilwang commented 5 months ago

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