Mariner Backtesting - IEX midpoint limit buy Logic

Check Logic

Accept the order if the limit is greater than 0

Fill Logic

Fill the order at the midpoint of the bid/ask on IEX if the last price on IEX is less than the midpoint and the midpoint locks or crosses the limit.

midpoint = (ask + bid) / 2.0

 

See the ARCA Midpoint limit buy page for general examples on how midpoint orders are filled.

The number of shares filled is the symbol's ask_size * lot_size or order shares, whichever is smaller. If the number of shares filled doesn't completely fill the order, the remainder of the order is put back into the queue for later fill attempts. This fill takes liquidity.

Cancel Logic

The order can be cancelled at any time