Page 2 of 4 FirstFirst 1234 LastLast
Results 16 to 30 of 46
  1. #16
    Administrator Hassan-HS's Avatar
    Join Date
    Jun 2013
    Posts
    795

    Post Bo api

    Dear Sir,


    I suggest a better way to monitor the transaction at the real time, you can use TransactionLog event which is raised on each transaction that done in your system.


    Code:
    Event TransactionLog(ByRef Account As VertexFXBOAPI10.COAccount, ByRef TicketOrder As Integer, ByRef Trans As Short, _
     ByRef TransType As Short, ByRef TransSubType As Short, ByRef IP As String, ByRef Amount As Double, _
     ByRef WhoType As Short, ByRef WhoID As Integer, ByRef Method As String, ByRef Commission As Double, _
     ByRef Interest As Double, ByRef Price As Double, ByRef ClosePrice As Double, ByRef SymbolID As Integer, _
     ByRef BuySell As VertexGeneral10.OperationTypeEnum, ByRef TicketOrder2 As Integer, ByRef TransTime As String, _
     ByRef TransID As Integer, ByRef RefSymbolPrice As Double, ByRef ProfitLoss As Double)

    This scenario is for the executed limit orders.

    • If the Trans equal 3 that means the transaction is delete
    • And if the TransType equal 5 that means "Limit/Stop Orders"
    • And the Method is "Done"

    Thats means the (Limit/Stop) order #(TicketOrder2) is executed and the position is #(TicketOrder2)
    This scenario is for the executed manage orders.

    • Trans equal 3 which means delete.
    • TransType equal 4 which means "TP/SL Orders"
    • Method equal "Done"

    Thats means the (TP/SL) order #(TicketOrder2) is executed and the position is #(TicketOrder2)

  2. #17
    Dataflow
    Guest

    Default

    Dear sir,
    we are using the _transactionlog event to get the transactions that occur on the spot.
    However we didn't understand how we get a transaction time (transtime) of year 2004 of a transaction that is taking place now.

    Thank you in advance.

    Regards.

  3. #18
    Administrator Hassan-HS's Avatar
    Join Date
    Jun 2013
    Posts
    795

    Post Boapi

    Hello,

    When the order is taking place the transaction-log is raised, in this case the TicketOrder2 parameter hold the ID of the order that placed in 2004, so you can generate a Transaction-log report using this query to get the all info about this order including the time of the order:
    Code:
    StartFromClientID = API.RootID
    FromDate=""
    ToDate=""
    TicketOrder= the order ID (TicketOrder2 )
    Trans ="1"
    transType ="5"
    Account =""
    BuySell =""
    LotsAmount =""
    SymbolID =""
    Price= ""
    ClosePrice =""
    WhoType =""
    WhoID =""
    IP=""
    Method=""
    
    
    
    vParams = StartFromClientID & "," & FromDate & "," & ToDate & "," & TicketOrder & "," & Trans & "," & transType & "," & Account & "," & BuySell & "," & LotsAmount & "," & SymbolID & "," & Price & "," & ClosePrice & "," & WhoType & "," & WhoID & "," & IP & "," & Method
    API.RequestReport(VertexFXBOAPI10.ManagerReportsTypeEnum.TransactionsLogReport, vParams)

    The result will be received using this event.
    Last edited by Hassan-HS; 06-04-2014 at 02:27 PM.

  4. #19
    Dataflow
    Guest

    Default

    Hello,
    we used TransactionLog event and we got the following transaction:

    2004-06-14 09:43:00.000 1411755 [COLOR="rgb(46, 139, 87)"]1[/COLOR] 2 411157 -1 0.10000 168 16690.00000 0

    When we called the RequestReport and gave as parameters two transtime From: 04-06-2014 and To: 05-06-2014 we received the following transaction when the ReportDataReceived event fired:

    2014-06-04 00:00:00.000 1411755
    [COLOR="rgb(46, 139, 87)"]1[/COLOR] 2 411157 -1 0.10000 168 16690.00000 0

    both transactions have the same TicketOrder 1411755 colored above in yellow
    but they have different transTime colored above in red

    notice that they both have action 1 colored in green which is "New"

    Please can you clarify what is the difference between these two transactions.
    What is the position of the account? Is he holding 0.2(0.1 from each transaction)?

    If these transactions are the same, why each event is giving us different dates?

  5. #20
    Administrator Hassan-HS's Avatar
    Join Date
    Jun 2013
    Posts
    795

    Default

    Hello,

    The transactions are the same, but the TransTime is different because the transaction report returns the TransTime as server time, and you can convert it to dealer time as following.

    Code:
     Public StringValues As New VertexGeneral10.CStringValues
    TransTimeAsDealerTime = StringValues.FormatGMTDate(TransTime, API.GMTOffset, API.ServerGMTOffset, VertexGeneral10.GMTConvertTypeEnum.ServerToClient, "-", , VertexGeneral10.DateFormatsEnum.YYYYspMMspDD_HHspNNspSS)

    Was this answer helpful? your feedback about this answer is important, let me know what you think.

  6. #21
    Dataflow
    Guest

    Default

    We tried it and it worked.
    We had the date 14/06/2004 and now we have the date 04/06/2014.
    Is this what we should have got?

    Thank you in advance.

  7. #22
    Administrator Hassan-HS's Avatar
    Join Date
    Jun 2013
    Posts
    795

    Default

    Hello,

    According to your previous post this is what you will get,and this case happens due to wrong date conversion (string to date), now till me is the API met all your requirements?

  8. #23
    Dataflow
    Guest

    Default

    Hello,
    how can we get from the transactionlog event or the RequestReport event the ID of the custodian(Depository) where each order is made? For example, Alpari, Penson etc.

    We'll be waiting your reply as soon as possible.
    Thank you in advance.

  9. #24
    Administrator Hassan-HS's Avatar
    Join Date
    Jun 2013
    Posts
    795

    Default

    Hello,


    I'm sorry, I'm not sure about "the ID of the custodian(Depository)" could you tell me what it means?

  10. #25
    Administrator Hassan-HS's Avatar
    Join Date
    Jun 2013
    Posts
    795

    Default

    Hello,
    I'm still waiting your reply, however if you mean how to monitor the covered orders with the LPs please read the following:

    You can monitor the covered orders using the coverage account for each LP, which is mirror all orders covered with LP in your VertexFX Back Office.

    ex:

    when the bridge cover a order with LP X, it will reflect it on the coverage account which is 10000.

    BO Coverage Account ///////// LP Name

    10000//////////////////////////////// X


    So when the event fire and the account ID equal 10000, that means this order already opened with LP X.


    Note:

    If you do not mind, please tell me the idea of ​​your project, so i can guide you to the best way to perform it.

  11. #26
    Dataflow
    Guest

    Default

    Dear Sir,

    We are doing a project like a bridge between the 2 systems.

    We are doing a project that take from your API all the tickets that are liquidate for all clients that we have for the
    username in order to put them in tables.

    we are trying to do a bridging reconciliation
    We reconcile Dataflow ClientID with VertexFX ClientID and Dataflow Symbols with VertexFX Symbols

    and here we need A custodian Id to reconcile it with our system.

    till now everything went good but we need to know the tickets'' depository or custodian because this detail
    is mandatory at my side.

    I mean by Custodian where the client(account) has purchased his item ex 0.1 EUR/USd at Alpari or penson or ....

    Is this info available at your side.

  12. #27
    Administrator Hassan-HS's Avatar
    Join Date
    Jun 2013
    Posts
    795

    Default

    Hello,


    Do you want to map VertexFX orders with Dataflow orders, so you need to key for each order or something else? is the custodian something like liquidity provider?
    Last edited by Hassan-HS; 06-17-2014 at 06:44 AM.

  13. #28
    Dataflow
    Guest

    Default

    yeah maybe it is something like that.
    like the bank where the order will be liquidate.

    yeah we are mapping the orders from vertex and insert them in our dataflow orders tables.

    So can you advise us about the liquidity provider? what can be?

  14. #29
    Administrator Hassan-HS's Avatar
    Join Date
    Jun 2013
    Posts
    795

    Default

    Hello,


    You can mapping our orders/position using it's ID, anyway please provide with a full cycle of your project.

  15. #30
    Dataflow
    Guest

    Default

    Dear sirs,
    we have a time mismatch problem for the same TicketOrder.
    The company that we are working for has an application designed by you. The transactionLog event when fired in this application gives a time of 7:36 for the TicketOrder 1425993.
    However in your API 10.2.0 it gives a time of 3:36 for the same TicketOrder.
    We figured out that the time shown in the company application is in GMT. Is this correct?
    What about your API?
    Is there any conversion method so we can have it in GMT time or in our local time?
    Please advise us how to solve this issue.

    Regards.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How can we read positions from history in local script
    By nhasan in forum VertexFX API/VTL Forum
    Replies: 2
    Last Post: 05-18-2014, 12:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •