We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8a7ea44 + de31fd2 commit 5b58e39Copy full SHA for 5b58e39
1 file changed
php-binance-api.php
@@ -727,9 +727,9 @@ public function aggTrades(string $symbol)
727
* @return array with error message or array of market depth
728
* @throws \Exception
729
*/
730
- public function depth(string $symbol, int $limit)
+ public function depth(string $symbol, int $limit=100)
731
{
732
- if (isset($limit) === false || is_int($limit) === false)
+ if (is_int($limit) === false)
733
$limit = 100;
734
if (isset($symbol) === false || is_string($symbol) === false) {
735
// WPCS: XSS OK.
0 commit comments