@@ -632,14 +632,13 @@ public function depositAddress(string $asset)
632
632
* $depositHistory = $api->depositHistory( "BTC" );
633
633
*
634
634
* @param $asset string empty or the currency such as BTC
635
+ * @param $params array optional startTime, endTime, status parameters
635
636
* @return array with error message or array deposit history information
636
637
* @throws \Exception
637
638
*/
638
- public function depositHistory (string $ asset = null )
639
+ public function depositHistory (string $ asset = null , array $ params = [] )
639
640
{
640
- $ params = [
641
- "wapi " => true ,
642
- ];
641
+ $ params ["wapi " ] = true ;
643
642
if (is_null ($ asset ) == false ) {
644
643
$ params ['asset ' ] = $ asset ;
645
644
}
@@ -654,19 +653,36 @@ public function depositHistory(string $asset = null)
654
653
* $withdrawHistory = $api->withdrawHistory( "BTC" );
655
654
*
656
655
* @param $asset string empty or the currency such as BTC
656
+ * @param $params array optional startTime, endTime, status parameters
657
657
* @return array with error message or array deposit history information
658
658
* @throws \Exception
659
659
*/
660
- public function withdrawHistory (string $ asset = null )
660
+ public function withdrawHistory (string $ asset = null , array $ params = [] )
661
661
{
662
- $ params = [
663
- "wapi " => true ,
664
- ];
662
+ $ params ["wapi " ] = true ;
665
663
if (is_null ($ asset ) == false ) {
666
664
$ params ['asset ' ] = $ asset ;
667
665
}
668
666
return $ this ->httpRequest ("v3/withdrawHistory.html " , "GET " , $ params , true );
669
667
}
668
+
669
+ /**
670
+ * withdrawFee get the withdrawal fee for an asset
671
+ *
672
+ * $withdrawFee = $api->withdrawHistory( "BTC" );
673
+ *
674
+ * @param $asset string currency such as BTC
675
+ * @return array with error message or array containing withdrawFee
676
+ * @throws \Exception
677
+ */
678
+ public function withdrawFee (string $ asset )
679
+ {
680
+ $ params = [
681
+ "wapi " => true ,
682
+ "asset " => $ asset
683
+ ];
684
+ return $ this ->httpRequest ("v3/withdrawFee.html " , "GET " , $ params , true );
685
+ }
670
686
671
687
/**
672
688
* prices get all the current prices
0 commit comments