Syntax
Public Overrides Function AcceptOrder(ByVal BOOrderID As String, Optional ByVal AtPrice As Double = 0 )As TransResult
This function accepts the orders, it will return an object of typeTransResultthat represents a fail or success result.
Parameters
Key | Description |
BOOrderID | Order ID to recognize the order we want to accept |
AtPrice | Order will be accepted at this price, 0 means accept the order at the open price. |
Return Value
It will return an object of typeTransResult.
Sample
Public Sub OrderTimedOut (ByVal OrderID As String) Dim Result As VertexFXBridgeAPI.TransResult Result=BO.GetBO.AcceptOrder (OrderID) End Sub
See Also