Announcement

Collapse
No announcement yet.

How to determine a bad ticker

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

  • How to determine a bad ticker

    How can I determine a bad ticker string? It appears that GetRequestHistory() returns a valid handle even if I ask for a garbage ticker. I tried using GetGetTitle(), but it returns null for valid some tickers like 'w k8'.

    thanks.

  • #2
    You can use the IsValidSymbol method. It returns 1 if the symbol is valid and 0 otherwise. Note that the symbol string you pass to this method must be in uppercase.

    Comment


    • #3
      I got winsig.tlb from the C++ Example & I don't seem to have that function availible. Am I missing someting?

      Its not in the docs I have either.
      Last edited by jrthomas; 03-06-2008, 03:57 PM.

      Comment


      • #4
        That method should be part of the eSignal hook object. Just like the way you would call IsEntitled().

        Comment


        • #5
          Not working here. IsEntitled() works fine (and all the other functions do too):

          bool b = (*m_piHooks)->GetIsEntitled();

          but not:

          bool b = (*m_piHooks)->IsValidSymbol(TickerName);

          I get this error:

          error C2039: 'IsValidSymbol' : is not a member of 'IHooks'

          & like I said that function is not in "Esignal Developer Reference.doc" either, which found on this page:


          btw, I'm using the C++. Could I have an old version of the winsig.tlb possibly?

          Comment


          • #6
            OK, I figured it out. I have to import "winsig.exe" from the Esignal folder, not winsig.tlb as you C++ example does.

            Is this documented anywhere?

            Comment


            • #7
              Your winsig.tlb could be outdated. However, our C++ sample does indicate to import winsig.exe in stdafx.h. For future references, winsig.exe should be used.

              Comment

              Working...
              X