implemented buy, sell, getStock and getTradedStocks without db access