Skip to content

Commit

Permalink
Supports network option in withdraw function by mtb-pro
Browse files Browse the repository at this point in the history
  • Loading branch information
jaggedsoft authored Jun 20, 2020
2 parents 8a2e6c8 + f8cb13c commit fe4c48c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion php-binance-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ public function assetDetail()
* @return array with error message or array transaction
* @throws \Exception
*/
public function withdraw(string $asset, string $address, $amount, $addressTag = null, $addressName = "API Withdraw", bool $transactionFeeFlag = false)
public function withdraw(string $asset, string $address, $amount, $addressTag = null, $addressName = "API Withdraw", bool $transactionFeeFlag = false,$network = null)
{
$options = [
"asset" => $asset,
Expand All @@ -583,6 +583,9 @@ public function withdraw(string $asset, string $address, $amount, $addressTag =
if (is_null($addressTag) === false && empty($addressTag) === false) {
$options['addressTag'] = $addressTag;
}
if (is_null($network) === false && empty($network) === false) {
$options['network'] = $network;
}
return $this->httpRequest("v3/withdraw.html", "POST", $options, true);
}

Expand Down

0 comments on commit fe4c48c

Please sign in to comment.