diff --git a/src/Api/Account.php b/src/Api/Account.php index b2b965c..7000e9a 100644 --- a/src/Api/Account.php +++ b/src/Api/Account.php @@ -15,9 +15,13 @@ public function get() return $this->respond($this->http->get(self::ACCOUNTS_URI)); } - public function positions() + public function positions(?bool $showAvgPrice = null) { - return $this->respond($this->http->get(self::POSITIONS_URI)); + if($showAvgPrice == false) { + $showAvgPrice = null; + } + + return $this->respond($this->http->get(self::POSITIONS_URI, compact("showAvgPrice"))); } public function changeAccountLeverage(int $leverage)