Skip to content

Commit

Permalink
Add chains, currencies and symbols setting methods
Browse files Browse the repository at this point in the history
  • Loading branch information
renat1015 committed Jun 23, 2022
1 parent 1357d4b commit 619ce39
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
38 changes: 38 additions & 0 deletions src/Api/Spot/Settings.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php

namespace Lin\Huobi\Api\Spot;

use Lin\Huobi\Request;

class Settings extends Request
{
/**
*
* */
public function getChains(array $data=[]){
$this->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();
}
}
8 changes: 8 additions & 0 deletions src/HuobiSpot.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -112,6 +113,13 @@ public function market(){
public function order(){
return new Order($this->init());
}

/**
*
* */
public function settings(){
return new Settings($this->init());
}

/**
*
Expand Down

0 comments on commit 619ce39

Please sign in to comment.