added buy and sell tracking