This code was made with the help of PcCamel to get a series of actions to profit from a shop that allows buying and selling items. There are a lot fo things that can be added here like an analysis of old buy and sell prices for better profits.
You too guys can contribute to this project and help improve it.