Syntax
Public Sub TransactionLog(ByVal ClientID As String, ByVal AccountID As String, ByVal TicketOrder As String, ByVal Trans As Short, ByVal TransType As Short, ByVal TransSubType As Short, ByVal IP As String, ByVal Amount As Double, ByVal WhoType As Short, ByVal WhoID As Integer, ByVal Method As String, ByVal Commission As Double, ByVal Interest As Double, ByVal Price As Double, ByVal ClosePrice As Double, ByVal SymbolID As Integer, ByVal BuySell As VertexFXBridgeAPI.OperationTypeEnum, ByVal TicketOrder2 As String, ByVal TransTime As String, ByVal TransID As Integer, ByVal RefSymbolPrice As Double, ByVal ProfitLoss As Double)
This event fired when a transaction done in Backoffice side.
Parameters
Key | Description |
ClientID | The ID of Client |
AccountID | The ID of account |
TicketOrder | The ID of the Ticket/Order |
Trans | The status of transaction its value equal either of: 1 mean New, 2 Update 3 Delete |
TransType |
The Type of the transaction, its value equal either of: 1 means New Position, 2 liquidate Position, 3 Money Transaction (depends on TransSubType value), 4 Take Profit/StopLoss Transaction, 5 Limit/Stop Transactions. |
TransSubType |
If the TransType equal (3 Money Transaction), then its value equal: 1 means “Deposit”, -1 “Withdrawal”, 2 “Adjusment”, 3 “Credit In”, -3 “Credit Out”. If the TransType equal (5 Limit/Stop Transaction), then its value equal: 1 means “Buy Limit Type”, -1 “Sell Limit Type”, 2 “Buy Stop Type”, -2 “Sell Stop Type” |
IP | The IP address |
Amount | Amount of lots |
WhoType | Its value either of 1 means Dealer or 2 mean client |
WhoID | Dealer ID (If its value less then 0, this means by system) |
Method | The method of transaction |
Commission | Commission value |
Interest | Interest value |
Price | Price of open position |
ClosePrice | Closing Price |
SymbolID | ID Of symbol |
BuySell | Define buy or sell (1 Buy Type, -1 Sell Type) |
TicketOrder2 | Open position ID if TranType equal 2 (Liquidate Position) |
TransTime | The time of the Transaction |
TransID | The ID of the Transaction |
RefSymbolPrice | The Reference Symbols Close Price |
ProfitLoss | Profit loss value |
See Also