* Withdraws asset to given wallet id * @see https://developers.binance.com/docs/wallet/capital/withdraw * @param {string} coin - the coin symbol * @param {string} address - the wallet to transfer it to * @param {number} amount - the amount to transfer * @param {string} addressTag
(coin: string, address: string, amount: number, addressTag?: string, name?: string, params: Dict = {})
| 4054 | * @return {promise or undefined} - omitting the callback returns a promise |
| 4055 | */ |
| 4056 | async withdraw(coin: string, address: string, amount: number, addressTag?: string, name?: string, params: Dict = {}): Promise<WithdrawResponse> { |
| 4057 | // const params = { asset, address, amount }; |
| 4058 | params.coin = coin; |
| 4059 | params.address = address; |
| 4060 | params.amount = amount; |
| 4061 | if (name) params.name = name; |
| 4062 | if (addressTag) params.addressTag = addressTag; |
| 4063 | |
| 4064 | return await this.privateSapiRequest('v1/capital/withdraw/apply', params, 'POST'); |
| 4065 | } |
| 4066 | |
| 4067 | /** |
| 4068 | * Get the Withdraws history for a given asset |
nothing calls this directly
no test coverage detected