Skip to content

Commit

Permalink
Merge pull request #13 from renat1015/master
Browse files Browse the repository at this point in the history
Added querying reference information of currency and chains and for t…
  • Loading branch information
zhouaini528 authored Jun 24, 2022
2 parents 6d118c6 + fa33af9 commit 8d414ba
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/Api/Spot/Reference.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

namespace Lin\Huobi\Api\Spot;

use Lin\Huobi\Request;

class Reference extends Request
{
/**
*
* */
public function getCurrencies(array $data=[]){
$this->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();
}
}
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\Reference;
use Lin\Huobi\Api\Spot\Settings;
use Lin\Huobi\Api\Spot\Subuser;
use Lin\Huobi\Api\Spot\Order;
Expand Down Expand Up @@ -114,6 +115,13 @@ public function order(){
return new Order($this->init());
}

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

/**
*
* */
Expand Down

0 comments on commit 8d414ba

Please sign in to comment.