From fa33af9ed68d11295f8ef308a5036ada84db5774 Mon Sep 17 00:00:00 2001 From: renat1015 Date: Fri, 24 Jun 2022 10:20:42 +0300 Subject: [PATCH] Added querying reference information of currency and chains and for transaction fee rate --- src/Api/Spot/Reference.php | 28 ++++++++++++++++++++++++++++ src/HuobiSpot.php | 8 ++++++++ 2 files changed, 36 insertions(+) create mode 100644 src/Api/Spot/Reference.php diff --git a/src/Api/Spot/Reference.php b/src/Api/Spot/Reference.php new file mode 100644 index 0000000..9c95e14 --- /dev/null +++ b/src/Api/Spot/Reference.php @@ -0,0 +1,28 @@ +type='GET'; + $this->path='/v2/reference/currencies'; + $this->data=$data; + return $this->exec(); + } + + /** + * + * */ + public function getTransactFeeRate(array $data=[]){ + $this->type='GET'; + $this->path='/v2/reference/transact-fee-rate'; + $this->data=$data; + return $this->exec(); + } +} \ No newline at end of file diff --git a/src/HuobiSpot.php b/src/HuobiSpot.php index 99135e6..aa2f67b 100644 --- a/src/HuobiSpot.php +++ b/src/HuobiSpot.php @@ -5,6 +5,7 @@ namespace Lin\Huobi; +use Lin\Huobi\Api\Spot\Reference; use Lin\Huobi\Api\Spot\Settings; use Lin\Huobi\Api\Spot\Subuser; use Lin\Huobi\Api\Spot\Order; @@ -114,6 +115,13 @@ public function order(){ return new Order($this->init()); } + /** + * + * */ + public function reference(){ + return new Reference($this->init()); + } + /** * * */