Skip to content

Commit 5b58e39

Browse files
author
Jon Eyrick
authored
Default depth $limit parameter
2 parents 8a7ea44 + de31fd2 commit 5b58e39

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

php-binance-api.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,9 +727,9 @@ public function aggTrades(string $symbol)
727727
* @return array with error message or array of market depth
728728
* @throws \Exception
729729
*/
730-
public function depth(string $symbol, int $limit)
730+
public function depth(string $symbol, int $limit=100)
731731
{
732-
if (isset($limit) === false || is_int($limit) === false)
732+
if (is_int($limit) === false)
733733
$limit = 100;
734734
if (isset($symbol) === false || is_string($symbol) === false) {
735735
// WPCS: XSS OK.

0 commit comments

Comments
 (0)