Results 1 to 2 of 2
  1. #1
    Senior Member
    Join Date
    May 2014
    Posts
    139

    Default BOAPI 11 - UpdateClosedPosition

    Hello

    I am doing the following with BOAPI 11

    1. Open a trade in client terminal with some comment and close it

    2. From BOAPI modifying this closed trade with UpdateClosedPosition method. Consider this line of code
    Code:
    UpdateClosedPosition(5002, 3123723, 0.1, 1.13352, 1, 0, 0, 0.7, 1, "")
    Here the part actually gets modified is the profit. (This is done on mostly non usd pairs like USD/JP, AUD/USD)

    In the history tab, the trade gets updated. But apithrows an error. Two messages comes

    1. VertexFXBOAPI11 Run-Time error "91" & 2. HSCLientDLL11 Run-time error "13" Type mismatch

    Please check this and guide me

    Thanks

  2. #2
    Administrator Rawan-HS's Avatar
    Join Date
    Apr 2015
    Posts
    339

    Default

    Dear Edakad

    Quote Originally Posted by Edakad View Post
    Hello

    I am doing the following with BOAPI 11

    1. Open a trade in client terminal with some comment and close it

    2. From BOAPI modifying this closed trade with UpdateClosedPosition method. Consider this line of code
    Code:
    UpdateClosedPosition(5002, 3123723, 0.1, 1.13352, 1, 0, 0, 0.7, 1, "")
    Here the part actually gets modified is the profit. (This is done on mostly non usd pairs like USD/JP, AUD/USD)

    In the history tab, the trade gets updated. But apithrows an error. Two messages comes

    1. VertexFXBOAPI11 Run-Time error "91" & 2. HSCLientDLL11 Run-time error "13" Type mismatch

    Please check this and guide me

    Thanks
    Please let me know which version of BO API did you use ...

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VertexFX BOAPI 11
    By Edakad in forum VertexFX API/VTL Forum
    Replies: 4
    Last Post: 04-01-2019, 10:55 AM
  2. BOAPI Issue
    By Edakad in forum VertexFX API/VTL Forum
    Replies: 1
    Last Post: 01-02-2018, 12:48 PM
  3. BOAPI Selecting Accounts
    By Edakad in forum VertexFX API/VTL Forum
    Replies: 1
    Last Post: 12-28-2017, 06:32 AM
  4. How to get account list from BOAPI
    By nhasan in forum VertexFX API/VTL Forum
    Replies: 30
    Last Post: 06-12-2016, 09:52 AM
  5. isChildOf Property in BOAPI
    By mercury in forum VertexFX API/VTL Forum
    Replies: 2
    Last Post: 06-01-2011, 02:38 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
  •