Skip to content

Commit db16200

Browse files
author
Jon Eyrick
authored
withdrawFee was returning null because endpoint no longer exists by aolin480
2 parents 09a90b8 + a913809 commit db16200

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

php-binance-api.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -617,10 +617,14 @@ public function withdrawHistory(string $asset = null, array $params = [])
617617
public function withdrawFee(string $asset)
618618
{
619619
$params = [
620-
"wapi" => true,
621-
"asset" => $asset,
620+
"wapi" => true
622621
];
623-
return $this->httpRequest("v3/withdrawFee.html", "GET", $params, true);
622+
623+
$response = $this->httpRequest("v3/assetDetail.html", "GET", $params, true);
624+
625+
if (isset($response['success'], $response['assetDetail'], $response['assetDetail'][$asset]) && $response['success']) {
626+
return $response['assetDetail'][$asset];
627+
}
624628
}
625629

626630
/**

0 commit comments

Comments
 (0)