From 9a7c8d7e5cc57e180fcceb6ae1aa8779a4e2ee03 Mon Sep 17 00:00:00 2001 From: yzh-pelle <81404729+yzh-pelle@users.noreply.github.com> Date: Fri, 30 Jan 2026 08:42:58 +0300 Subject: [PATCH 1/2] fix: nullable types added to signatures According to #520 --- php-binance-api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php-binance-api.php b/php-binance-api.php index 68b9662..45eb761 100755 --- a/php-binance-api.php +++ b/php-binance-api.php @@ -607,7 +607,7 @@ public function cancelOpenOrders(string $symbol, array $params = []) * @return array with error message or array of orderDetails array * @throws \Exception */ - public function orders(string $symbol, ?int $limit = null, int $fromOrderId = null, array $params = []) + public function orders(string $symbol, ?int $limit = null, ?int $fromOrderId = null, array $params = []) { $request = [ "symbol" => $symbol, @@ -2058,7 +2058,7 @@ public function sorOrder(string $side, string $symbol, $quantity, $price, string * returns array containing the response * @throws \Exception */ - public function replaceOrder(string $side, string $symbol, $quantity, $price, string $type = "LIMIT", ?string $cancelOrderId = null, string $cancelOrigClientOrderId = null, bool $allowFailure = null, string $cancelRestrictions = null, string $orderRateLimitExceededMode = null, array $params = []) + public function replaceOrder(string $side, string $symbol, $quantity, $price, string $type = "LIMIT", ?string $cancelOrderId = null, ?string $cancelOrigClientOrderId = null, ?bool $allowFailure = null, ?string $cancelRestrictions = null, ?string $orderRateLimitExceededMode = null, array $params = []) { $request = $this->createSpotOrderRequest($side, $symbol, $quantity, $price, $type, $params); if (!is_null($cancelOrderId)) { From 84b9dda065ca3490b5d7524ea49759d1ea4d7dc9 Mon Sep 17 00:00:00 2001 From: yzh-pelle <81404729+yzh-pelle@users.noreply.github.com> Date: Fri, 30 Jan 2026 08:48:35 +0300 Subject: [PATCH 2/2] fix: rollingWindowPriceChange signature updated --- php-binance-api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php-binance-api.php b/php-binance-api.php index 45eb761..6605eb3 100755 --- a/php-binance-api.php +++ b/php-binance-api.php @@ -1316,7 +1316,7 @@ public function tradingDay(?string $symbol = null, ?array $symbols = null, array * @return array with error message or array of prevDay change * @throws \Exception */ - public function rollingWindowPriceChange(?string $symbol = null, array $symbols = null, string $windowSize = null, array $params = []) + public function rollingWindowPriceChange(?string $symbol = null, ?array $symbols = null, ?string $windowSize = null, array $params = []) { $request = []; if (!is_null($symbol) && is_string($symbol)) {