simplified load_stocklist

moved copy-pasta code to function