查询提现记录 - fetchWithdrawals
使用ccxt统一API的fetchWithdrawals
方法查询提现记录。示例代码如下。
JavaScript:
// fetchWithdrawals (code = undefined, since = undefined, limit = undefined, params = {})
if (exchange.has['fetchWithdrawals']) {
const withdrawals = await exchange.fetchWithdrawals (code, since, limit, params)
} else {
throw new Error (exchange.id + ' does not have the fetchWithdrawals method')
}
Python:
# fetch_withdrawals(code = None, since = None, limit = None, params = {})
if exchange.has['fetchWithdrawals']:
withdrawals = exchange.fetch_withdrawals(code, since, limit, params)
else:
raise Exception (exchange.id + ' does not have the fetch_withdrawals method')
PHP:
// fetch_withdrawals ($code = null, $since = null, $limit = null, $params = {})
if ($exchange->has['fetchWithdrawals']) {
$withdrawals = $exchange->fetch_withdrawals ($code, $since, $limit, $params);
} else {
throw new Exception ($exchange->id . ' does not have the fetch_withdrawals method');
}