U.S. stock markets are drawing global investors, but trading can be challenging for them. San Mateo-based startup Alpaca is addressing this by providing an API…