MCPcopy Create free account
hub / github.com/ccxt/node-binance-api / withdraw

Method withdraw

src/node-binance-api.ts:4056–4065  ·  view source on GitHub ↗

* 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 = {})

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

privateSapiRequestMethod · 0.95

Tested by

no test coverage detected