Skip to content

Commit

Permalink
Merge pull request #12 from renat1015/master
Browse files Browse the repository at this point in the history
Add chains, currencies and symbols setting methods
  • Loading branch information
zhouaini528 authored Jun 24, 2022
2 parents 1357d4b + 619ce39 commit 6d118c6
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 6d118c6

Please sign in to comment.