Sweep to Fill

View as MarkdownOpen in Claude

Sweep-to-fill orders are useful when a trader values speed of execution over price. A sweep-to-fill order identifies the best price and the exact quantity offered/available at that price, and transmits the corresponding portion of your order for immediate execution. Simultaneously it identifies the next best price and quantity offered/available, and submits the matching quantity of your order for immediate execution.

Products: CFD, STK, WAR (SMART only)

More on Sweep to Fill Orders

1order = Order()
2order.action = action
3order.orderType = "LMT"
4order.totalQuantity = quantity
5order.lmtPrice = price
6order.sweepToFill = True