Skip to content

Commit dc8e6fd

Browse files
thebusteddmzoneill
authored andcommitted
Fix undefined variable
On the method historicalTrades variable $fromTradeId is undefined. Change $fromTradeId to $tradeId
1 parent 4f968eb commit dc8e6fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php-binance-api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ public function historicalTrades(string $symbol, int $limit = 500, int $tradeId
910910
"symbol" => $symbol,
911911
"limit" => $limit,
912912
];
913-
if ($fromTradeId > 0) {
913+
if ($tradeId > 0) {
914914
$parameters["fromId"] = $tradeId;
915915
} else {
916916
// if there is no tradeId given, we can use v3/trades, weight is 1 and not 5

0 commit comments

Comments
 (0)