Skip to main content

Cancel Withdrawal

API Description​

This interface allows users to cancel a previously submitted withdrawal request by providing the corresponding withdrawal application ID.

Note: Cancle withdrawal is only available via RESTful API.

Precautions​

None

Authentication​

This is a private interface and requires authentication. For details on using the RESTful API, refer to Common > Authentication & Code Snippet > Spot > RESTful Private Interface.

Request Method​

POST

Endpoint​

/api/v1/private?command=cancelWithdraw

Frequency Limit​

The frequency limit for this interface is 3 requests/s per user ID. In addition to this per-interface limit, a global rate limit is also enforced.

For detailed information on Global rate limits and API Rate Limiting Policy, please refer to the "Frequency Limit" section at click here

Request Parameters​

ParameterMandatoryTypeDescription
idTrueStringWithdrawal application ID

Response Parameters​

ParameterTypeDescription
msgStringSuccess

Request Example​

The following Python code shows how to cancel a withdrawal using withdrawal application ID.

Note: For a complete code example, please refer to Common > Authentication & Code Snippet > Spot > RESTful Private Interface.

api_url = "/api/v1/private?command=cancelWithdraw"
method = "post"
params = {
"id" : ""
}
SpotRestfulPrivate(host, api_url, method, api_key, params, secret_key) # function SpotRestfulPrivate() is defined in section (Common > Authentication & Code Snippet > Spot > RESTful Private Interface)

Note: For a complete Java code example, please refer to Common > Authentication & Code Snippet > Spot > RESTful Private Interface.

Response Example​

The following is an example response returned by the above Python request:

{'code': '200', 'data': null, 'msg': 'SUCCESS'}