Skip to content

Commit

Permalink
Merge pull request #2 from TheRayoX/master
Browse files Browse the repository at this point in the history
Get products by product-id
  • Loading branch information
zhouaini528 authored Aug 30, 2021
2 parents ee367bb + 0621160 commit 589cff0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Api/CoinbasePro/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ public function getList(array $data=[]){
$this->data=$data;
return $this->exec();
}

/**
*GET /products/<product-id>
* */
public function getProduct(array $data=[]){
$this->type='GET';
$this->path='/products/'.$data['product_id'];
$this->data=$data;
return $this->exec();
}

/**
*GET /products/<product-id>/book
Expand Down

0 comments on commit 589cff0

Please sign in to comment.