Skip to content

Commit 621013e

Browse files
author
Max Grim
committed
fix orders: Illegal characters
FIX - Illegal characters found in parameter \'orderId\'; legal range is \'^[0-9]{1,20}$\'.
1 parent f8ff111 commit 621013e

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
@@ -449,7 +449,7 @@ public function openOrders(string $symbol = null)
449449
* @return array with error message or array of orderDetails array
450450
* @throws \Exception
451451
*/
452-
public function orders(string $symbol, int $limit = 500, int $fromOrderId = -1, array $params = []) {
452+
public function orders(string $symbol, int $limit = 500, int $fromOrderId = 0, array $params = []) {
453453
$params["symbol"] = $symbol;
454454
$params["limit"] = $limit;
455455
if ( $fromOrderId ) $params["orderId"] = $fromOrderId;

0 commit comments

Comments
 (0)