diff --git a/php-binance-api.php b/php-binance-api.php index ef85cfa..48c70e0 100755 --- a/php-binance-api.php +++ b/php-binance-api.php @@ -910,7 +910,7 @@ public function historicalTrades(string $symbol, int $limit = 500, int $tradeId "symbol" => $symbol, "limit" => $limit, ]; - if ($fromTradeId > 0) { + if ($tradeId > 0) { $parameters["fromId"] = $tradeId; } else { // if there is no tradeId given, we can use v3/trades, weight is 1 and not 5