Skip to content

Commit 203fdad

Browse files
authored
order and depth are fixed
1 parent 7b930c0 commit 203fdad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

php-binance-api.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,7 @@ public function depth(string $symbol, int $limit = 100, array $params = [])
13001300
"symbol" => $symbol,
13011301
"limit" => $limit,
13021302
];
1303-
$json = $this->spotRequest("v1/depth", "GET", array_merge($request, $params), true);
1303+
$json = $this->spotRequest("v1/depth", "GET", array_merge($request, $params));
13041304
if (is_array($json) === false) {
13051305
echo "Error: unable to fetch depth" . PHP_EOL;
13061306
$json = [];
@@ -1799,6 +1799,8 @@ public function order(string $side, string $symbol, $quantity, $price, string $t
17991799

18001800
if ($type === "MARKET" && isset($params['isQuoteOrder']) && $params['isQuoteOrder']) {
18011801
unset($request['quantity']);
1802+
unset($params['quantity']);
1803+
unset($params['isQuoteOrder']);
18021804
$request['quoteOrderQty'] = $quantity;
18031805
}
18041806

0 commit comments

Comments
 (0)