Industry guru Dave Taylor offers tech support on technical and business topics, including iPhone, iPod, Microsoft Windows, Sony PSP, cellphones, online advertising, CSS, Web design, business, Unix, Linux, SEO, Mac OS X, and shell script programming.     


How do I add stock quotes to my Web page?

I would like to add the days current stock on my web page. I read your answer to someones questions about adding the current weather, I would like to do the same but with stocks.


Dave's Answer:

There are a bunch of ways you can do this, including writing some software to scrape specific stock data off a site like Yahoo Finance, but there are better solutions out there, including one from Financial Content.com, a company that actually grew out of one of my own startups.

Their solution isn't very flexible, but if all you seek is the ability to specify a few ticket symbols and have a nice set of financial data on your page, then their Market Snapshot for Business Blogs and Websites could be the perfect match.

First, you specify the ticket symbols you seek:

Financial Content's Ticket Symbol entry

then you grab their JavaScript code. For example, here's what I get when I use their default set of four tech stocks:

<script src=http://web-2.0.financialcontent.com/blogsnapshot? Account=breitbart&OutputMode=js&Ticker=GOOG+YHOO+EBAY+MSFT></script>

The result:

Nice, simple, attractive and professional.

Hope that helps you get running with your own financial content on your site!


More Useful HTML, JavaScript and Web Site Programming Articles:
✔   How to Create Predefined Google Image Search Links?
Thanks for the Amazon URL [see Creating Amazon Search Links]. That worked beautifully. In fact, I sent you $5.00 for coffee in thanks....
✔   Can I embed a Facebook search box on my blog site?
I've seen your articles about how to add a Twitter or Google search box on a Web page, but I have a tougher...
✔   Can I use CSS for drop shadows on my blog?
I want to give my site a bit of a facelift and add some neat graphical elements. One of which is drop shadows....
✔   How can I embed interactive photo panoramas on my site/blog?
I read through your blog entry about how to take panoramic photos with iOS 6 and an iPhone 5 and got enthused. I've...
✔   How can I create a Twitter search URL shortcut?
I'd like to add a few Twitter search links to my Web site. Is that possible, or does Twitter prohibit this sort of...

Let's stay in touch!
Sign up for my weekly AskDaveTaylor Newsletter and you'll receive even more tech and gadget help right to your inbox, along with exclusive news and industry updates. It's good stuff. I promise!
    Enter your name: and your email addr:  





Categorized: HTML, JavaScript and Web Site Programming   (Article 6699, Written by )
Tagged: business blogs, financial content, stock information, stock quotes
Previous: How do I delete a contact in LinkedIn?
Next: How do I monitor my daughter's MySpace account?




Reader Comments To Date: 16

Nate said, on January 19, 2007 4:15 PM:

Yahoo recently added the ability to put quotes and charts on your website:

http://finance.yahoo.com/badges/

Darren said, on July 11, 2008 2:22 AM:

This is perfect what I need dave the only problem is that I need information from the London Stock exchange not the NASDAQ!

Any ideas on how i can change the code???

Jared said, on September 15, 2008 1:17 PM:

I'm having the same problem. I need the data from the Toronto Stock Exchange and the TSX Venture exchange!

rebecca said, on September 24, 2008 10:06 PM:

Thanks for the easy, helpful info! Love it!

Steve said, on September 29, 2008 11:29 PM:

Does yahoo mind if people take info off their website and repost it on their own? Where does financialcontent.com get their info? Do they take it from yahoo?

Marc said, on February 24, 2009 1:07 PM:

Doesn't work anymore...
This was neat and simple to use but Financialcontent changed their stuff or Breibart's account as terminated

paul said, on September 28, 2009 3:14 AM:

please i need the codes for the NIGERIAN stock exchange. how can i add codes for THE NIGERIA STOCK EXCHAGE on my website.

Gabriel said, on March 23, 2010 4:22 PM:

Well, I need this for the Lima Stock Exchange. I think we are looking for the same thing. Please, I one of us found the question tell the others. I'll do. Thanks.

PATRICIA GREGER said, on September 30, 2011 9:02 AM:

I RECENTLY BOUGHT SOME STOCK AND WISH TO ADD IT TO MY PORTFOLIO. CAN'T FIND A WAY TO ADD IT.

Dave Taylor said, on October 1, 2011 12:39 AM:

Patricia, do you mean adding it to your AOL portfolio? And are you running AOL for Windows or for Mac?

Azurwebdev said, on January 28, 2012 5:08 PM:

Hello,

to insert finance Javasript quotes into html, you can check into the webmaster section of Forexpros. You just have to copy/past the code, and their finance charts are of high quality. I used them for my website.

innam said, on May 3, 2012 7:35 PM:

very nice article to read here. keep it up man :)

hiren said, on June 13, 2012 11:12 PM:

code is not working.. will you explain this in details? I want to implement live stock market data on my php website.

Sruti Arora said, on April 4, 2013 9:34 PM:

i am also interested to implement on my website www.smilegroup.in i am looking for stock quotation of Indian stock exchange like NSE, BSE like this.

pls any one reply how to add widgets on my website.

John Bersell said, on April 8, 2013 12:24 PM:

I just want to add F to my MSN Homepage. How do I do that?

Starbucks coffee cup I do have a lot to say, and questions of my own for that matter, but first I'd like to say thank you, Dave, for all your helpful information by buying you a cup of coffee!

I do have a comment, now that you mention it!











I will never send you any unsolicited email. Ever.






Check This Out Too...

 
Look for Answers
Need Help? Ask Dave Taylor!


Follow Me on Pinterest

Find Me on Google+
ADT on G+
© 2002 - 2013 by Dave Taylor. All Rights Reserved.

Note: This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this web site or on any linked site. Further, please note that by submitting a question or comment you're agreeing to my terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site. My lawyer says "Thanks".
"Ask Dave Taylor®" is a registered trademark of Intuitive Systems, LLC.