based on https://github.com/ChangYeoun/OptimusG_Stock