Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Open Long based on amount of cash

Hi, i am newbie on quantopian. I would like to know how to open a position based on an amount of dollar of share instead of quantity,
for instance buy 1000 usd of share of Apple.

Thank you