php-binance-api.php
public function history(string $symbol, int $limit = 500, int $fromTradeId = -1)
    {
        $parameters = [
            "symbol" => $symbol,
            "limit" => $limit,
        ];
        if ($fromTradeId > 0) {
            $parameters["fromId"] = $fromTradeId;
        }

        return $this->httpRequest("v3/myTrades", "GET", $parameters, true);
    }
public function history(string $symbol, int $limit = 500, int $fromTradeId = -1)
    {
        $parameters = [
            "symbol" => $symbol,
            "limit" => $limit,
        ];
        if ($fromTradeId > 0) {
            $parameters["fromId"] = $fromTradeId;
        }

        return $this->httpRequest("v3/myTrades", "GET", $parameters, true);
    }
public function history ( string $ symbol , int $ limit = 500 , int $ fromTradeId = - 1 ) { $ parameters = [ "symbol" => $ symbol , "limit" => $ limit , ] ; if ( $ fromTradeId > 0 ) { $ parameters [ "fromId" ] = $ fromTradeId ; } return $ this -> httpRequest ( "v3/myTrades" , "GET" , $ parameters , true ) ; }
history Get the complete account trade history for all or a specific currency

$allHistory = $api->history();
$BNBHistory = $api->history("BNBBTC");
$limitBNBHistory = $api->history("BNBBTC",5);
$limitBNBHistoryFromId = $api->history("BNBBTC",5,3);

@param $symbol string the currency symbol
@param $limit int the amount of orders returned
@param $fromTradeId int (optional) return the orders from this order onwards. negative for all
@return array with error message or array of orderDetails array
@throws \Exception
history Get the complete account trade history for all or a specific currency