diff --git a/src/Api/Spot/Settings.php b/src/Api/Spot/Settings.php new file mode 100644 index 0000000..cf9bb3c --- /dev/null +++ b/src/Api/Spot/Settings.php @@ -0,0 +1,38 @@ +type='GET'; + $this->path='/v1/settings/common/chains'; + $this->data=$data; + return $this->exec(); + } + + /** + * + * */ + public function getCurrencies(array $data=[]){ + $this->type='GET'; + $this->path='/v2/settings/common/currencies'; + $this->data=$data; + return $this->exec(); + } + + /** + * + * */ + public function getSymbols(array $data=[]){ + $this->type='GET'; + $this->path='/v2/settings/common/symbols'; + $this->data=$data; + return $this->exec(); + } +} \ No newline at end of file diff --git a/src/HuobiSpot.php b/src/HuobiSpot.php index 2d4b453..99135e6 100644 --- a/src/HuobiSpot.php +++ b/src/HuobiSpot.php @@ -5,6 +5,7 @@ namespace Lin\Huobi; +use Lin\Huobi\Api\Spot\Settings; use Lin\Huobi\Api\Spot\Subuser; use Lin\Huobi\Api\Spot\Order; use Lin\Huobi\Api\Spot\Market; @@ -112,6 +113,13 @@ public function market(){ public function order(){ return new Order($this->init()); } + + /** + * + * */ + public function settings(){ + return new Settings($this->init()); + } /** *