update stock api