Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 committed Jan 4, 2023
2 parents 22e7307 + 094760f commit 81686d0
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Api/Spot/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function getClientOrder(array $data=[]){
* */
public function getMatchresults(array $data=[]){
$this->type='GET';
$this->path='/v1/order/orders/{order-id}/matchresults';
$this->path='/v1/order/orders/'.$data['order-id'].'/matchresults';
$this->data=$data;
return $this->exec();
}
Expand Down
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();
}
}
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();
}
}
16 changes: 16 additions & 0 deletions src/HuobiSpot.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

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;
use Lin\Huobi\Api\Spot\Market;
Expand Down Expand Up @@ -112,6 +114,20 @@ public function market(){
public function order(){
return new Order($this->init());
}

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

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

/**
*
Expand Down

0 comments on commit 81686d0

Please sign in to comment.