Skip to content

Commit

Permalink
add v5 system api
Browse files Browse the repository at this point in the history
  • Loading branch information
time0x committed Jan 8, 2022
1 parent 3a6481a commit ff0d3b2
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 ff0d3b2

Please sign in to comment.