wrote the main functions

added base and update functions, they return a dictionary that returns 'name','price','previous','open' for the base function and just price for the update function