From ff0d3b249e28e385a0a535ce301d5b0804d858a1 Mon Sep 17 00:00:00 2001 From: time0x Date: Sat, 8 Jan 2022 10:10:29 +0800 Subject: [PATCH] add v5 system api --- src/Api/OkexV5/System.php | 18 ++++++++++++++++++ src/OkexV5.php | 8 ++++++++ 2 files changed, 26 insertions(+) create mode 100644 src/Api/OkexV5/System.php diff --git a/src/Api/OkexV5/System.php b/src/Api/OkexV5/System.php new file mode 100644 index 0000000..b3ef109 --- /dev/null +++ b/src/Api/OkexV5/System.php @@ -0,0 +1,18 @@ +type='GET'; + $this->path='/api/v5/system/status'; + + $this->data=$data; + return $this->exec(); + } +} \ No newline at end of file diff --git a/src/OkexV5.php b/src/OkexV5.php index feeb657..be77064 100644 --- a/src/OkexV5.php +++ b/src/OkexV5.php @@ -10,6 +10,7 @@ use Lin\Okex\Api\OkexV5\Market; use Lin\Okex\Api\OkexV5\Publics; use Lin\Okex\Api\OkexV5\SubAccount; +use Lin\Okex\Api\OkexV5\System; use Lin\Okex\Api\OkexV5\Trade; class OkexV5 @@ -93,4 +94,11 @@ public function subaccount(){ public function trade(){ return new Trade($this->init()); } + + /** + * + * */ + public function system(){ + return new System($this->init()); + } }