Page 2 of 4 FirstFirst 1234 LastLast
Results 16 to 30 of 57
  1. #16
    somilshah
    Guest

    Default

    Hi Hassan,

    Our Director Mr. Gaurang Ratnagar has signed a agreement with you for the ISV 17 Jun 2014.

    You can reply us one by one on our query. I will look forward for you reply as soon as possible so that we can deliver with the solution to connect with you.


    Many Thanks,
    Somil Shah

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

    Default

    Dear Somil,
    - Please provide a sample user name and password.
    This sample is for login with this credentials (username:USER2556 password:GSVI ).
    Code:
    http://159.253.137.70/webtrader/WebService.svc/Login?username=USER2556&password=GSVI

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

    Default

    - We are trying to put some symbol in this webservices but it doesn’t work perferly.
    EX :http://159.253.137.70/webtrader/WebS.../GetSymbol?USD
    Please check the description of calling result value using this link.

  4. #19
    Administrator Hassan-HS's Avatar
    Join Date
    Jun 2013
    Posts
    795

    Default

    4) How to get list of all symbols:
    Code:
    http://159.253.137.70/webtrader/WebService.svc/GetAllSymbols?AccountID=100126
    Note: you must login before using this method.

    Code:
    http://159.253.137.70/webtrader/WebService.svc/Login?username=USER2556&password=GSVI

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

    Default

    5) Get Quotes for All types of Instrumental Types and Favorites
    Code:
    http://159.253.137.70/webtrader/WebService.svc/GetNewTick?
    The GetNewTick operation checks if any symbol data changed and returns a List(of Symbols) which holds all Symbols with their corresponding Bid/Ask, High/Low and Quote time.
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
    
        <title>GetNewTick</title>
    
    <script src="http://code.jquery.com/jquery-latest.js"></script>
    
    </head>
    
    <script >
    
        var urlStr = "http://74.54.46.178/vertexweb10/WebService.svc";
    
        function startGetNewTick() {
    
            $.getJSON(urlStr + "/GetNewTick?callback=?", onSuccessResultAction);
    
        }
    
        function onSuccessResultAction(dataResult) {
    
            result = eval('(' + dataResult + ')');
    
            if (result == -201) {
    
                var errDetail = "http://www.hybrid-solutions.com/support/index.php?/Knowledgebase/Article/View/1964"
    
                $("#resultAction").html("Error Code : " + dataResult + "<br/>" + " for more details see the follwing link: " + errDetail.link(errDetail));
    
            }
    
            if (result.Symbols.length > 0) {
    
                var myTable = '<table border="1px"><thead>' +
    
                                      '<tr><th>Symbol </th><th> Bid</th>' +
    
                                      '<th >Ask</th><th>High</th><th>Low</th><th>Time</th></tr></thead><tbody>';
    
                for (var i = 0; i <= result.Symbols.length - 1; i++) {
    
                    myTable += "<tr>"
    
                    myTable += "<td>" + result.Symbols[i].I + "</td>"
    
                    myTable += "<td>" + result.Symbols[i].A + "</td>"
    
                    myTable += "<td>" + result.Symbols[i].B + "</td>"
    
                    myTable += "<td>" + result.Symbols[i].H + "</td>"
    
                    myTable += "<td>" + result.Symbols[i].L + "</td>"
    
                    //myTable += "<td>" + result.Symbols[i].LastQuoteTime + "</td>"
    
                    myTable += "</tr>"
    
                }
    
                myTable += '</tbody></table>';
    
                $("#resultAction").html(myTable);
    
            }
    
            else { $("#resultAction").html("No Price Update"); }
    
            setTimeout('startGetNewTick()', '2000');
    
        }
    
        $(document).ready(function () {
    
            jQuery.support.cors = true;
    
            $("#progress").ajaxStart(function () { $(this).css("display", "block"); });
    
            $("#progress").ajaxComplete(function () { $(this).css("display", "none"); });
    
            function onSuccessResult(response) {
    
                response = eval('(' + response + ')')
    
                if (response.UserId == -1 || response.UserId == -207) {
    
                    $("#resultData").html("Invalid username or password");
    
                }
    
                else if (response.UserId == -231) {
    
                    $("#resultData").html("You must have at least one account");
    
                }
    
                else if (response == null || response == "" || response.UserId < 0) {
    
                    $("#resultData").html("Error while login.Please try later");
    
                }
    
                else {
    
                    $("#resultData").html("SuccessResult ... UserId is :" + response.UserId);
    
                }
    
            }
    
            $("#resultAction").ajaxError(function (result) { $(this).html('An error occured'); });
    
            function onErrorResult(result) {
    
                alert('Service call faild : ' + result.status + ' ' + result.statusText);
    
            }
    
            $("#btnLogin").click(function () {
    
                $.getJSON(urlStr + "/Login?username=" + $("#txtusername").val() + "&password=" + $("#txtpassword").val() + "&callback=?", onSuccessResult);
    
            });
    
            $("#btnAction").click(function () {
    
                startGetNewTick();
    
            });
    
        });
    
    </script>
    
    <body>
    
    <table border="1px">
    
     <tbody>
    
     <tr>
    
    <td>
    
    username: <input type="text" id="txtusername" value="support"/>
    
    password: <input type="text" id="txtpassword" value="support"/>
    
    <button id="btnLogin"> Login </button>
    
    </td>
    
    </tr>
    
      <tr>
    
          <td>AccountID: <input type="text" id="txtAccountID"  value ="12347298" /> </td> 
    
          <td><button id="btnAction"> Start GetNewTick </button></td>
    
      </tr>
    
    </tbody>
    
    </table>
    
    <div id="resultData"> </div>
    
    <div id="resultAction"> </div>
    
    <div style="display:none" id="progress">Loading ... </div>
    
    </body>
    
    </html>
    That means you have to call this method on each XXX milliseconds to get the prices.

  6. #21
    Administrator Hassan-HS's Avatar
    Join Date
    Jun 2013
    Posts
    795

    Default

    Finally, please note that any WCF application needs to have special approval from HS legal department according to the ISV agreement before going live.

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

    Default

    Dear somil,

    Please contact OTradeTech dealing room to get a account with full privilege, since any requesting operation have to be authenticated before

  8. #23
    somilshah
    Guest

    Default

    Hello,

    Hassan our Director Mr. Gaurang has signed the ISV form with you.

    I request you to please reply us as soon as possible you can respond our query handling on single at a time.


    Many Thanks,
    Somil Shah

  9. #24
    somilshah
    Guest

    Default

    Hi Hassan,

    I will ask OTrade to followup with you for this as we are only doing the development for this mobile application for them.


    Many Thanks,
    Somil Shah

  10. #25
    somilshah
    Guest

    Default

    Hi Hassan,

    Can you please reply me with the solution for other questions also asked in the document.


    Many Thanks,
    Somil Shah

  11. #26
    somilshah
    Guest

    Default

    Hi Hassan,

    Can you please reply me with the solution for other questions also asked in the document.


    Many Thanks,
    Somil Shah

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

    Default

    Hi Somil

    I'm already answered your all questions , in next please make sure to post your issues one by one (NO ATTACHMENTS)
    Last edited by Hassan-HS; 08-04-2014 at 01:24 PM.

  13. #28
    somilshah
    Guest

    Default WCF Method and API Modification

    Hello Hassan,

    We are currently using the API provided by you which is WCF Method to pass the command while developing the application. at the moment the major issue we have found is the api checks for the login details in session/cookies to authenticate and while developing a mobile application this would not be possible.

    We need modification in this api insteard of checking the login details in session/cookies.. need to authenticate using AccountID

    Can you please do the modification or provide us with a solution to this so that we can use the WCF API and Method provided by you to the Mobile Application.

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

    Default

    Hello ,


    This feature is illogical, because if anyone knows my account number can do trade for example.

  15. #30
    somilshah
    Guest

    Default

    Hi Hassan,

    Thank you for your reply

    This would not be based on account number but first a login would be done and then further after authentication all command to WCF would be sent using the account number.

    Can you please help us then how do we work this with the current WCF API as when we send the command to WCF for login it is completed and the next command sent shows and error message which is login required.


    Many Thanks,
    Somil Shah

Thread Information

Users Browsing this Thread

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

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
  •