Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
orders, fills and notifications..

hi guys,

I love quantopian and I haven't played much with Q2 yet but I'm noticing
some of the inconveniences of Q1 remain

namely, my orders don't get filled quickly - even though I use
market orders and stop orders most of the times... sometimes
the day ends and the order is not filled properly!
yes, i'm using liquid instruments like SPY..

with Q2 i see that at least u get a notification that says "so and so order
failed to fill, canceling" which is better than Q1... but the question still arises:

  1. how can i guarantee that my order will be filled NOW at the time of writing
    the order() function - at the market price

  2. how can I check inside the code that I have actually been filled? is there any
    alert, notification or postback? sometimes I get filled twice on intraday stuff
    because context.portfolio has 0 positions and I think multiple orders get filled
    at the same time...

thanks!