Class IcebergOrder
java.lang.Object
com.quantfinlib.execution.IcebergOrder
Iceberg order state machine: shows only a small display tranche of the full
quantity and reloads automatically when the visible portion fills. Display
sizes can be randomized to make the iceberg harder to detect.
-
Constructor Summary
ConstructorsConstructorDescriptionIcebergOrder(long totalQty, long displayQty) IcebergOrder(long totalQty, long displayQty, double randomizePct, long seed) -
Method Summary
Modifier and TypeMethodDescriptionlongbooleanbooleanonFill(long qty) Records a fill against the visible tranche.longlong
-
Constructor Details
-
IcebergOrder
public IcebergOrder(long totalQty, long displayQty) -
IcebergOrder
public IcebergOrder(long totalQty, long displayQty, double randomizePct, long seed) - Parameters:
randomizePct- display-size jitter, e.g. 0.2 = ±20% (0 = fixed)
-
-
Method Details
-
onFill
public boolean onFill(long qty) Records a fill against the visible tranche. Returns true when the tranche was exhausted and a fresh one was loaded (i.e. the working order should be re-submitted at the back of the queue). -
visibleQty
public long visibleQty() -
remainingQty
public long remainingQty() -
isComplete
public boolean isComplete()
-