Limit orders
Alex_Kollaros
Posts: 7
What are the arguments for "Buy Limit BATS at Script Price"? Is there a time in force value?
Thanks
Tagged:
Comments
All limit orders are created as GTX (Good through Extended) unless the title of the voodoo indicates IOC or a specific order type isn't available in the extended hours. A "Peg" order type for example, which is only good during core hours, would have a DAY Time in Force. There is nothing in the title of the voodoo that indicates this.
Awesome Chris! Thanks. Do we have any public scripts that put a limit order and then cancel after X number of seconds?
That's how I did it..
self.id = order.algo_sell(md.symbol, voodooGuid, 'init',order_quantity=orderShares, price=md.L1.bid, allow_multiple_pending=True, user_key=None, collect=trade_data )
self.orderTime = event.timestamp
self.stateF = 1
if self.stateF == 1:
self.cancelOrders(event,md,order,service,account)
def cancelOrders(self, event, md, order, service, account):