Skip to content

Commit

Permalink
Merge pull request #12 from llomgui/patch-2
Browse files Browse the repository at this point in the history
Add postPositionSwitchMode
  • Loading branch information
zhouaini528 authored Aug 5, 2022
2 parents 097173f + f325cec commit f466bcd
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/Api/Linear/Privates.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,26 @@ public function postPositionTradingStop(array $data=[]){
return $this->exec();
}

/*
*POST /private/linear/position/switch-mode
* */
public function postPositionSwitchMode(array $data=[]){
$this->type='POST';
$this->path='/private/linear/position/switch-mode';
$this->data=$data;
return $this->exec();
}

/*
*POST /private/linear/tpsl/switch-mode
* */
public function postTpslSwitchMode(array $data=[]){
$this->type='POST';
$this->path='/private/linear/tpsl/switch-mode';
$this->data=$data;
return $this->exec();
}

/*
*GET /private/linear/trade/execution/list
* */
Expand Down

0 comments on commit f466bcd

Please sign in to comment.