Event raised when a trade occurs (Update is also raised).
Namespace:
T4.APIAssembly: T4API.20 (in T4API.20.dll)
Syntax
| C# |
|---|
public event Order..::.OrderFillEventHandler OrderFill |
| Visual Basic (Declaration) |
|---|
Public Event OrderFill As Order..::.OrderFillEventHandler |
| Visual C++ |
|---|
public: event Order..::.OrderFillEventHandler^ OrderFill { void add (Order..::.OrderFillEventHandler^ value); void remove (Order..::.OrderFillEventHandler^ value); } |
Remarks
Occurs when an order gets filled, either partially or completely. This event will be raised for each fill the order gets so a 10 lot order that gets filled in two 5 lots will receive two OrderFill events, even if the fill prices are the same.
The OrderUpdate event is also called when an order receives a fill.
If an order gets filled while the API is disconnected from the server then you will NOT get an OrderFill event. You either need to check the order details individually or check the Position details.