Finished the rearchitecture for stocksOrder

fixed #27