For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See:

can broker reject orders under certain condition?

  • I'd like to simulate the scenario in which order will be rejected under certain conditions, such as time etc.
    I look through the doc and didn't find anything like subclass or functions. is it possible? thanks in advanced

  • From line 244 in update() method:

            if not size:
                return  # empty update, skip all other calculations

    That should do it.

Log in to reply