Skip to content

Commit

Permalink
Merge pull request #6 from Time02/master
Browse files Browse the repository at this point in the history
add v5 system api
  • Loading branch information
zhouaini528 authored Jan 13, 2022
2 parents 3a6481a + ff0d3b2 commit 49a1232
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/Api/OkexV5/System.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php
namespace Lin\Okex\Api\OkexV5;

use Lin\Okex\Request;

class System extends Request{

/**
* GET /api/v5/system/status
* */
public function getStatus(array $data=[]){
$this->type='GET';
$this->path='/api/v5/system/status';

$this->data=$data;
return $this->exec();
}
}
8 changes: 8 additions & 0 deletions src/OkexV5.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -93,4 +94,11 @@ public function subaccount(){
public function trade(){
return new Trade($this->init());
}

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

0 comments on commit 49a1232

Please sign in to comment.