|
...
|
...
|
@@ -91,7 +91,21 @@ class Api |
|
|
|
{
|
|
|
|
$path = '/api/v5/account/positions';
|
|
|
|
$method = 'GET';
|
|
|
|
return self::request($path, $method, $param, $this->apiInfo);
|
|
|
|
return $this->request($path, $method, $param, $this->apiInfo);
|
|
|
|
}
|
|
|
|
//设置账户模式
|
|
|
|
public function setAccountLevel($param)
|
|
|
|
{
|
|
|
|
$path = '/api/v5/account/set-account-level';
|
|
|
|
$method = 'POST';
|
|
|
|
return $this->request($path, $method, $param, $this->apiInfo);
|
|
|
|
}
|
|
|
|
//设置持仓模式
|
|
|
|
public function setPositionMode($param)
|
|
|
|
{
|
|
|
|
$path = '/api/v5/account/set-position-mode';
|
|
|
|
$method = 'POST';
|
|
|
|
return $this->request($path, $method, $param, $this->apiInfo);
|
|
|
|
}
|
|
|
|
|
|
|
|
//-------------------------------------
|
...
|
...
|
|