able to accept stock name as first parameter