Create a Simple Stock Ticker using jQuery and Yahoo Finance API

You may also like...

35 Responses

  1. irfan says:

    hi i want to know that it work good but when i am going to open that in browser it starts downloading the source code why it is not just opening reply asap thanks in advance

    • Admin says:

      Hi Irfan,
      Have you tested demo in your browser?
      If it’s work then explain more about your issue.
      Because we have tested demo multiple time and it work good.

  2. irfan says:

    hi yeah i had tested that before but i have an issue the same and the issue is that when i run the code using webstrom it open in browser and download a new page which contain the code and a html page ! and i dont know how to change it ! kindly resolve that for me !

  3. irfan says:

    and one more issue i had changed all the indexes code names to my name which i want to show but i cant be able to see that ! is this code is hardcoded some where ?!

  4. Admin says:

    Hello Irfan,

    Can you check with the other browser as IE, Chrome and Mozilla please.

    Also Yes code name as Hard code in this line var CNames = “^FTSE,HSBA.L,SL.L,BATS.L,BLND.L,FLG.L,RBS.L,RMG.L,VOD.L”;

    Please put your code name over there.

  5. Leon says:

    Love this! Thanks for this article.

  6. Rosalyn says:

    Write more, thats all I have to say. Literally, it seems as though you relied on the
    video to make your point. You clearly know what youre talking about, why waste your intelligence on just posting videos to your weblog when you could be giving us something informative to read?

  7. Lida says:

    Right now it seems like BlogEngine is the top blogging platform available right now. (from what I’ve read) Is that what you are using on your blog?

  8. Tabitha says:

    What’s up to every body, it’s my first go to see of this weblog; this web site contains amazing and actually
    good information in support of visitors.

  9. Edwin says:

    My brother recommended I might like this web site. He was totally right.
    This put up truly made my day. You can not imagine
    simply how much time I had spent for this info! Thanks!

  10. John says:


    I struggle to make the ticker responsive… If I replace the absolute sizes for container and container wrap from px to % it breaks the layout.
    Do you have a suggestion how to get this done (in JSfiddle)?


    • Admin says:

      Hi John,
      You can update width in two classes (‘container’, ‘.container .wrap’) from px to % and it’s become responsive. If you still have any query then explain briefly then we can help you.
      So keep in touch…

      Share articles with your friends…

  11. Jon says:

    I can’t seem to get Down Jones Industrial Average to work, ^DJI

  12. Raghu says:

    i am getting error like” Cannot read property ‘offsetWidth’ of undefined” can any one suggest on it.

    • Admin says:

      Hello Raghu,

      Can you please download the source code and compare it with your code.
      Hope you will get the error.

      If anything then let us know.

  13. Naga says:

    cool! Thanks for sharing is now integrated at

  14. nirbhay says:

    Love this! Thanks for this article

  15. pakistani stocks not avalable on yahoo finanace says:

    I missed the wor NOT in the line.
    But Pakistan Stock Quotes are NOT available in the Yahoo Finanace.

  16. Avadhoot Dandekar says:

    This is awesome and works !! But this does not render data for BSE and NSE. Anything missing

  17. Shane says:

    When I added this to my website and load it in chrome i get this error in the browser… “Your connection to this site is not private because the site loaded an insecure script.”. When I checked which script it was referring to it was the queries.yahooapis… script. when i try to load the page in safari it wont show the ticker either.

  18. Mario says:

    Your code has helped me a lot.I am really thankful but when i change the interval to 5s it starts from the beginning breaking the continuous flow which is noticable.I wonder if there is a solution for that.

  19. Danny Gilbert says:

    It works fine as a HTML page but when I use it into a VIEW from my ASP.NET project (MVC), it does not work. I always see an error on line: $(“#dvStockTicker”).jStockTicker({interval: 30, speed: 2});
    –> Object doesn’t support property or method ‘jStockTicker’

    But in fact, the method is done.

  20. Chand says:

    Thank you!!!!!

  21. Josef says:

    Hi I like your script but would like to have more information displayed. I would only need one stock symbol to show, but would like to see in addition to what is displayed right now the following:
    Best Bid; Best Ask; Authorized Shares; Outstanding Shares; Market Cap.
    The stock is trading on the OTC.
    Thank you,

  22. Rohit says: do i add indian companies from NSE or BSE?the symbols only work for FTSE? thanx

  23. Harry Espino says:

    Yahoo finance API is not available anymore. I have moved to MarketXLS after this change, much more reliable data.

  24. alex says:

    Yahoo Finance API ist nicht mehr verfügbar. Gibt es Alternativen?

Leave a Reply to Edwin Cancel reply

Your email address will not be published. Required fields are marked *

× seven = 49

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">