Skip to content

Commit 66be3c9

Browse files
author
DESKTOP\Kostadin
committed
Added getSymbols private apis endpoint
1 parent 95f53e8 commit 66be3c9

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,11 @@ $result = $instance->transactionApiBtcTransactionSize()->calculate(Constants::$B
481481
* $result = $instance->tradingApisPrivate()->getBalance('ebf4cbbf-3759-4b63-84c1-01bcf508317c');
482482
*/
483483

484+
/*
485+
* https://docs.cryptoapis.io/rest-apis/trading-apis/private-apis/index#symbols
486+
* $result = $instance->tradingApisPrivate()->getSymbols('ebf4cbbf-3759-4b63-84c1-01bcf508317c');
487+
*/
488+
484489
/*
485490
* https://docs.cryptoapis.io/rest-apis/trading-apis/private-apis/index#get-deposit-address
486491
* $result = $instance->tradingApisPrivate()->getDepositAddress('ebf4cbbf-3759-4b63-84c1-01bcf508317c','dasd');

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "library",
55
"require": {
66
"guzzlehttp/guzzle": "6.*",
7-
"php": ">=5.3.0"
7+
"php": ">=5.4"
88
},
99
"license": "MIT",
1010
"autoload": {

src/RestApis/TradingApis/PrivateApis/PrivateApis.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,20 @@ public function getBalance($account_id, $parameters = [])
4444
))->get();
4545
}
4646

47+
/**
48+
* @param string $account_id
49+
* @return \stdClass
50+
*/
51+
public function getSymbols($account_id)
52+
{
53+
return (new Response(
54+
$this->request([
55+
'method' => 'GET',
56+
'params' => []
57+
],
58+
$this->getEndPoint() . '/' . $account_id . '/symbols')
59+
))->get();
60+
}
4761

4862
/**
4963
* @param string $account_id

0 commit comments

Comments
 (0)