Skip to content

Commit 21d8fc6

Browse files
authored
Add missing argument in depthCache method
Add missing argument to avoid the following error: "Too few arguments to function Binance\API::depth()" when using depth cache via WebSockets
1 parent e2c432d commit 21d8fc6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

php-binance-api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1764,7 +1764,7 @@ public function depthCache($symbols, callable $callback)
17641764
echo "depthCache({$symbol})) Could not connect: {$e->getMessage()}" . PHP_EOL;
17651765
$loop->stop();
17661766
});
1767-
$this->depth($symbol);
1767+
$this->depth($symbol, 100);
17681768
foreach ($this->depthQueue[$symbol] as $data) {
17691769
//TODO:: WTF ??? where is json and what should be in it ??
17701770
$this->depthHandler($json);

0 commit comments

Comments
 (0)