Page 3 of 5 FirstFirst 12345 LastLast
Results 31 to 45 of 73
  1. #31

    Default

    Can you please reply me on my 2 questions i had asked.

  2. #32
    Administrator Hassan-HS's Avatar
    Join Date
    Jun 2013
    Posts
    795

    Default

    Hello


    After calling login method one of the following events will be raised.
    1-AllDataAreLoaded means that the API has loaded all needed data from the sever.
    2-InvalidUsernamePassword means your credential is invalid

    Please don't call any property or method before receiving "AllDataAreLoaded" event, if you face problem with receiving the mentioned events you have to turn the DEP off as I told you in a previous post.

  3. #33

    Default

    Hi,

    I am able to received these event and but no idea how to call property ? can you please explain that.

  4. #34

    Default

    com.jacob.com.ComFailException: Invoke of: Name
    Source: VertexFXClientAPI10
    Description: Object variable or With block variable not set

  5. #35

    Default

    com.jacob.com.ComFailException: Can't get object clsid from progid

  6. #36
    Administrator Rawan-HS's Avatar
    Join Date
    Apr 2015
    Posts
    411

    Default

    Dear

    we have created a small vb.net sample about client API (Events and methods) , wish it help you .
    Attached Files Attached Files

  7. #37

    Default

    Syntax
    ReadOnly Property Account(ByRef AccountID As Long) As VertexFXClientAPI.COAccount
    This property takes the account ID and returns an object of type COAccount.

    object of type COAccount==> My question is that what are the properties of that object "
    COAccount"

    I am able to call all the properties list here in this link
    http://www.hybrid-solutions.com/support/index.php?/Knowledgebase/Article/View/2061
    except those who return an object with specific type like Account property with object type VertexFXClientAPI.COAccount and VertexFXClientAPI10.COOrder and some others
    I called the property like this
    new ActiveXComponent("VertexFXClientAPI10.CVertexFXCli entAPI").getProperty("LoginUsername").getString()) ;
    as I mention earlier in the post but unable to find the way to call the property like Account, OrderByID and other properties that returns the some sort of object. Please can you explain how to get the object of these properties.

    2nd thing the code your give me was very helpful. When I call the same method "
    AccountSummaries" after AllDataAreLoaded event
    long accountID = 1234573405;
    double balance = 0;
    double fltp = 0;
    double credit = 0;
    double equity = 0;
    double marginreq = 0;
    double margin_level = 0;
    double effmargin = 0;
    Dispatch.call(Vertex.vertexClient, "AccountSummaries",new Variant(accountID),vbalance,vfltp,vcredit,vequity, vmarginreq,vmargin_level,veffmargin)

    It return me 1. according to CallingResultsEnum the Successfully result but I am unable to see the values even in debug mode. I mean where are the values of AccountSummaries has been save.
    Same is the case with AccountHistory function.

    Please of you have the sample client in java as you send earlier. I will be very thank full to you.
    I could assist you regarding the java prospective by sending you the eclipse project of e vertex demo version.
    You can easily run it in your environment. The issue is the objects? how can I get the Account,
    COSymbol and COOrder e.t.c objects..

    Thanks.



    Attached Files Attached Files

  8. #38
    Administrator Hassan-HS's Avatar
    Join Date
    Jun 2013
    Posts
    795

    Default

    Hello,

    We are already developing a Java sample for you and we will pass it for you once it finished, but you can find the documentation for COAccount class here

  9. #39

    Default

    Hi Hassan,

    Thanks I appreciate your efforts and hope for your soon response that help me to complete my development on this weekend.

  10. #40

    Default

    Hi Hassan,
    Please send me your email address its difficult to sen you private message there is no reply button and other options. One more thing unfortunately I shift to the default mobile style of this forum. Please help me to revert it back to standard style.
    Mean while I am preparing a e-mail for you.

  11. #41
    Administrator Rawan-HS's Avatar
    Join Date
    Apr 2015
    Posts
    411

    Default

    Dear

    can you try now , or you can reply here about private massage

  12. #42

    Default

    Hi..
    Import that project in eclipse. You can download eclipse simple one from internet if you don't have. If you do not have installed java then installed that first.


    To import project in eclipse fallow this link http://agile.csc.ncsu.edu/SEMaterial...import_export/ (extract the VertexDemo.rar)
    then download jacob jar file from here http://danadler.com/jacob/
    how to add library to java project in eclipse please see this link http://www.oxfordmathcenter.com/drupal7/node/44
    I assume that you have installed the vertexAPI 10.5 or above.
    After configuration there are two files Vertex and VertexEvents.
    When you run that Vertex by right click on the file and run as java application it login to my demo account and VertexEvents start triggering.
    How you know how to registered the dll file with windows.
    If you have any question please let me know.

    Thanks,

  13. #43
    Administrator Rawan-HS's Avatar
    Join Date
    Apr 2015
    Posts
    411

    Default

    Ok , thanx for you

  14. #44
    Administrator Rawan-HS's Avatar
    Join Date
    Apr 2015
    Posts
    411

    Default

    Is there a specific Path I must put the vertex Client Dll ?

  15. #45

    Default

    When you install the vertex api. make sure it has an entery in the registry.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to define a function in VTL Script
    By magicmao2014 in forum VertexFX API/VTL Forum
    Replies: 4
    Last Post: 06-01-2014, 08:56 AM
  2. VTL Script CloseAllWithBenifit
    By imranhashmi92 in forum VertexFX API/VTL Forum
    Replies: 1
    Last Post: 05-15-2014, 03:00 PM
  3. help needed in VTL script
    By tarun in forum VertexFX API/VTL Forum
    Replies: 1
    Last Post: 03-06-2014, 06:44 AM
  4. How to call MarketInfo (MQL) in VTL?
    By diannt in forum VertexFX API/VTL Forum
    Replies: 45
    Last Post: 01-09-2014, 02:35 PM

Tags for this Thread

Posting Permissions

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