You are allowed to purchase stocks and otherwise invest your money so long as your activity does not constitute day trading. Day trading would be considered work. Working for anyone other than the sponsoring employer is a violation of your nonimmigrant status. You can read more about H-1B status at http://myattorneyusa.com/work-visas.
Answered on May 27th, 2016 at 3:15 PM