Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
How to order a specific number of futures?

Hello,

I am using the below to order 2x ES, but the IDE returns a runtime error on that line.

order(context.ES, 2)

Can someone please advise how I can order just 2x ES?

Thank you.