Announcement

Collapse
No announcement yet.

Problem with VB Sample code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with VB Sample code

    I downloaded the VB Sample code from Customer Support - eSignal File Share - Most Active Groups (last 30 days) - ActiveX development.
    When I ran the program, no matter what I entered in the "Quote Symbol" (YM H5 or ES H5 or ES #F), and click "Request Quote" the program does not do anything. When I entered the commodity name in the "History Symbol" (YM H5 or ES H5 or ES #F), and entered 1 day for "History Interval" and click "Request History" the program does not do anything either.

    The event esignal_OnQuoteChanged is never fired to assign the Bid, Ask and Last Price for that commodity.

    Is this the correct sample code for VB to get quote ? How can I fix this problem ?

    Thanks.

  • #2
    Have you added ActiveX API to your account? If not you will need to do that via the Account Maintenance web page.

    Cheers... George

    Comment


    • #3
      Thank you.
      What does it mean by adding ActiveX API to my account ? In my VB project, under Project - References, IESignal is already included.
      I went to Account Maintenance web page, but no matter what user name and password I entered, they were invalid. I tried the username and password that I used to download eSignal product, and it was invalid also.

      The version I am using is 7.8 (Build 285) 12/01/2004. I saw another posting on this forum that somebody else is having problem with version 7.8 and has to roll it back to 7.7. Where can I get version 7.7 ?

      I also tried the following, and it did not work, either.
      Dim quote as IEsignal.Basicquote

      esignal.RequestSymbol "ES H5", true
      quote = esignal.GetBasicquote "ES H5"
      edtBid.text = str$(quote.dBid)
      edtLast.etxt = str$(quote.dLast)

      Thank you.

      Comment


      • #4
        That is incorrect usage of the GetBasicQuote function. You should wait until you receive no the OnQuoteChanged event before calling GetBasicQuote. That is your only indication that the data is available before being able to retrieve the data values from the quote.

        Comment


        • #5
          Thank you.
          OnQuoteChanged event is never fired.
          I tried the VB Sample code without modifiying it, and OnQuoteChanged event is never fired also.
          Thanks.

          Comment


          • #6
            Have you added "ActiveX Development" to your list of services on your account? Does IsEntitled() return TRUE?

            Once you add that service, you will have TRUE returned for the IsEntitled() function, which will indicate that you can use the functions in the API. You can call in and speak to a sales representative if you are having problems adding the service.

            Comment


            • #7
              Thanks.
              eSignal.IsEntitled() returns 0.
              Thanks.

              Comment

              Working...
              X