Skip to content

Commit

Permalink
php
Browse files Browse the repository at this point in the history
  • Loading branch information
php committed Sep 13, 2024
1 parent 48b6f1e commit 7a18153
Show file tree
Hide file tree
Showing 15 changed files with 155 additions and 205 deletions.
55 changes: 28 additions & 27 deletions okex-php-sdk-api-v5/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions okex-php-sdk-api-v5/rapiDemo.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@
// $res = $obj -> getCurrencies('USDC');
// 获取资金账户余额
//$res = $obj -> getBalance('BTC');
// 获取不可交易资产
//$res = $obj -> nonTradableAssets('BTC');
//获取账户资产估值
//$res = $obj -> assetValuation('BTC');
// 资金划转
Expand All @@ -148,8 +150,16 @@
//$res = $obj -> cancelWithdrawal('');
//获取提币记录
//$res = $obj -> getWithdrawalHistory('','','','','','','');
//获取充值/提现的详细状态
//$res = $obj -> depositWithdrawStatus('','','','','','','');
//小额资产兑换
//$res = $obj -> convertDustAssets('');
//获取交易所列表(公共)
//$res = $obj -> exchangeList('');
//申请月结单 (近一年)
//$res = $obj -> monthlyStatement('');
//获取月结单 (近一年)
//$res = $obj -> getMonthlyStatement('');
//获取余币宝余额
//$res = $obj -> getPiggyBalance('');
// 余币宝申购/赎回
Expand Down
37 changes: 37 additions & 0 deletions okex-php-sdk-api-v5/src/FundingApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,4 +242,41 @@ public function positionsHistory($instType='',$instId='',$mgnMode='',$type='',$a

return $this->request('/api/v5/account/positions-history',$params, 'GET');
}

public function nonTradableAssets($ccy='')
{
$params = [
'ccy' => $ccy,
];

return $this->request('/api/v5/asset/non-tradable-assets',$params, 'GET');
}

public function depositWithdrawStatus($wdId='',$txId='',$ccy='',$to='',$chain='')
{
$params = [
'wdId' => $wdId,
'txId' => $txId,
'ccy' => $ccy,
'to' => $to,
'chain' => $chain,
];

return $this->request('/api/v5/asset/deposit-withdraw-status',$params, 'GET');
}

public function exchangeList()
{

return $this->request('/api/v5/asset/exchange-list','', 'GET');
}

public function getMonthlyStatement($month='')
{
$params = [
'month' => $month,
];

return $this->request('/api/v5/asset/monthly-statement',$params, 'GET');
}
}
59 changes: 30 additions & 29 deletions okex-php-sdk-api-v5/vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,32 +75,33 @@
},
{
"name": "myclabs/deep-copy",
"version": "1.11.1",
"version_normalized": "1.11.1.0",
"version": "1.12.0",
"version_normalized": "1.12.0.0",
"source": {
"type": "git",
"url": "https://github.com/myclabs/DeepCopy.git",
"reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c"
"reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/7284c22080590fb39f2ffa3e9057f10a4ddd0e0c",
"reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c",
"url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c",
"reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c",
"shasum": ""
},
"require": {
"php": "^7.1 || ^8.0"
},
"conflict": {
"doctrine/collections": "<1.6.8",
"doctrine/common": "<2.13.3 || >=3,<3.2.2"
"doctrine/common": "<2.13.3 || >=3 <3.2.2"
},
"require-dev": {
"doctrine/collections": "^1.6.8",
"doctrine/common": "^2.13.3 || ^3.2.2",
"phpspec/prophecy": "^1.10",
"phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13"
},
"time": "2023-03-08T13:26:56+00:00",
"time": "2024-06-12T14:39:25+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
Expand All @@ -125,7 +126,7 @@
],
"support": {
"issues": "https://github.com/myclabs/DeepCopy/issues",
"source": "https://github.com/myclabs/DeepCopy/tree/1.11.1"
"source": "https://github.com/myclabs/DeepCopy/tree/1.12.0"
},
"funding": [
{
Expand Down Expand Up @@ -573,51 +574,51 @@
},
{
"name": "phpunit/phpunit",
"version": "8.5.38",
"version_normalized": "8.5.38.0",
"version": "8.5.39",
"version_normalized": "8.5.39.0",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "1ecad678646c817a29e55a32c930f3601c3f5a8c"
"reference": "172ba97bcf97ae6ef86ca256adf77aece8a143fe"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/1ecad678646c817a29e55a32c930f3601c3f5a8c",
"reference": "1ecad678646c817a29e55a32c930f3601c3f5a8c",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/172ba97bcf97ae6ef86ca256adf77aece8a143fe",
"reference": "172ba97bcf97ae6ef86ca256adf77aece8a143fe",
"shasum": ""
},
"require": {
"doctrine/instantiator": "^1.3.1",
"doctrine/instantiator": "^1.5.0",
"ext-dom": "*",
"ext-json": "*",
"ext-libxml": "*",
"ext-mbstring": "*",
"ext-xml": "*",
"ext-xmlwriter": "*",
"myclabs/deep-copy": "^1.10.0",
"phar-io/manifest": "^2.0.3",
"phar-io/version": "^3.0.2",
"myclabs/deep-copy": "^1.12.0",
"phar-io/manifest": "^2.0.4",
"phar-io/version": "^3.2.1",
"php": ">=7.2",
"phpunit/php-code-coverage": "^7.0.12",
"phpunit/php-file-iterator": "^2.0.4",
"phpunit/php-code-coverage": "^7.0.17",
"phpunit/php-file-iterator": "^2.0.6",
"phpunit/php-text-template": "^1.2.1",
"phpunit/php-timer": "^2.1.2",
"phpunit/php-timer": "^2.1.4",
"sebastian/comparator": "^3.0.5",
"sebastian/diff": "^3.0.2",
"sebastian/environment": "^4.2.3",
"sebastian/exporter": "^3.1.5",
"sebastian/global-state": "^3.0.0",
"sebastian/object-enumerator": "^3.0.3",
"sebastian/resource-operations": "^2.0.1",
"sebastian/type": "^1.1.3",
"sebastian/diff": "^3.0.6",
"sebastian/environment": "^4.2.5",
"sebastian/exporter": "^3.1.6",
"sebastian/global-state": "^3.0.5",
"sebastian/object-enumerator": "^3.0.5",
"sebastian/resource-operations": "^2.0.3",
"sebastian/type": "^1.1.5",
"sebastian/version": "^2.0.1"
},
"suggest": {
"ext-soap": "To be able to generate mocks based on WSDL files",
"ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage",
"phpunit/php-invoker": "To allow enforcing time limits"
},
"time": "2024-04-05T04:31:23+00:00",
"time": "2024-07-10T11:43:00+00:00",
"bin": [
"phpunit"
],
Expand Down Expand Up @@ -654,7 +655,7 @@
"support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
"security": "https://github.com/sebastianbergmann/phpunit/security/policy",
"source": "https://github.com/sebastianbergmann/phpunit/tree/8.5.38"
"source": "https://github.com/sebastianbergmann/phpunit/tree/8.5.39"
},
"funding": [
{
Expand Down
16 changes: 8 additions & 8 deletions okex-php-sdk-api-v5/vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => 'bigxia/ok-v5',
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'reference' => '69420f25b340d864c158d74b78716f9699eada37',
'reference' => '48b6f1e7fe3dc440be099839d130781942146f60',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand All @@ -13,7 +13,7 @@
'bigxia/ok-v5' => array(
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'reference' => '69420f25b340d864c158d74b78716f9699eada37',
'reference' => '48b6f1e7fe3dc440be099839d130781942146f60',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand All @@ -29,9 +29,9 @@
'dev_requirement' => false,
),
'myclabs/deep-copy' => array(
'pretty_version' => '1.11.1',
'version' => '1.11.1.0',
'reference' => '7284c22080590fb39f2ffa3e9057f10a4ddd0e0c',
'pretty_version' => '1.12.0',
'version' => '1.12.0.0',
'reference' => '3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c',
'type' => 'library',
'install_path' => __DIR__ . '/../myclabs/deep-copy',
'aliases' => array(),
Expand Down Expand Up @@ -101,9 +101,9 @@
'dev_requirement' => false,
),
'phpunit/phpunit' => array(
'pretty_version' => '8.5.38',
'version' => '8.5.38.0',
'reference' => '1ecad678646c817a29e55a32c930f3601c3f5a8c',
'pretty_version' => '8.5.39',
'version' => '8.5.39.0',
'reference' => '172ba97bcf97ae6ef86ca256adf77aece8a143fe',
'type' => 'library',
'install_path' => __DIR__ . '/../phpunit/phpunit',
'aliases' => array(),
Expand Down
12 changes: 0 additions & 12 deletions okex-php-sdk-api-v5/vendor/myclabs/deep-copy/.github/FUNDING.yml

This file was deleted.

Loading

0 comments on commit 7a18153

Please sign in to comment.