Skip to content

Commit

Permalink
This closes #74
Browse files Browse the repository at this point in the history
Issue with missing signed request

Many thanks to zth1987
  • Loading branch information
dmzoneill committed Mar 15, 2018
1 parent ea2eac5 commit 1826120
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php-binance-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function orders($symbol, $limit = 500, $fromOrderId = 1) {
}
public function history($symbol, $limit = 500, $fromTradeId = 1) {
return $this->httpRequest("v3/myTrades", "GET", ["symbol"=>$symbol, "limit"=>$limit, "fromId"=>$fromTradeId], true);
}
}
public function useServerTime() {
$serverTime = $this->httpRequest("v1/time")['serverTime'];
$this->info['timeOffset'] = $serverTime - (microtime(true)*1000);
Expand Down Expand Up @@ -123,7 +123,7 @@ public function bookPrices() {
return $this->bookPriceData($this->httpRequest("v3/ticker/bookTicker"));
}
public function account() {
return $this->httpRequest("v3/account", true);
return $this->httpRequest("v3/account", "GET", [], true);
}
public function prevDay($symbol) {
return $this->httpRequest("v1/ticker/24hr", "GET", ["symbol"=>$symbol]);
Expand Down

0 comments on commit 1826120

Please sign in to comment.