Skip to content

Commit cbc85bd

Browse files
committed
update tradeFee
1 parent 6d875c0 commit cbc85bd

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

php-binance-api.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -771,8 +771,6 @@ public function dustTransfer($assets)
771771
}
772772

773773
/**
774-
* @deprecated
775-
*
776774
* Fetch current(daily) trade fee of symbol, values in percentage.
777775
* for more info visit binance official api document
778776
*
@@ -784,13 +782,11 @@ public function tradeFee(string $symbol)
784782
{
785783
$params = [
786784
"symbol" => $symbol,
787-
"wapi" => true,
785+
"sapi" => true,
788786
];
789-
trigger_error('Function tradeFee is deprecated and will be removed from Binance on Aug 1, 2021. Please use $api->commissionFee', E_USER_DEPRECATED);
790-
791-
return $this->httpRequest("v3/tradeFee.html", 'GET', $params, true);
787+
return $this->httpRequest("v1/asset/tradeFee", 'GET', $params, true);
792788
}
793-
789+
794790
/**
795791
* commissionFee - Fetch commission trade fee
796792
*

0 commit comments

Comments
 (0)