撤銷提幣
HTTP 請求
POST /v5/asset/withdraw/cancel
請求參數
參數 | 是否必需 | 類型 | 說明 |
---|---|---|---|
id | true | string | 提現Id |
響應參數
參數 | 類型 | 說明 |
---|---|---|
status | integer | 0 : 失敗. 1 : 成功 |
請求示例
- HTTP
- Python
- Node.js
POST /v5/asset/withdraw/cancel HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1672197227732
X-BAPI-RECV-WINDOW: 5000
X-BAPI-SIGN: XXXXX
Content-Type: application/json
{
"id": "10197"
}
from pybit.unified_trading import HTTP
session = HTTP(
testnet=True,
api_key="XXXXX",
api_secret="XXXXX",
)
print(session.cancel_withdrawal(
id="10197",
))
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.cancelWithdrawal('10197')
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
響應示例
{
"retCode": 0,
"retMsg": "success",
"result": {
"status": 1
},
"retExtInfo": {},
"time": 1672197228408
}