added last parameter for last price only