Jarloo

Menu

Download Stock Symbols

The BATS Exchange offers a nice download of all the stock symbols they offer. They have both CSV and XML downloads you can use to get the data. Here are the URL’s:

Bats Exchange Symbol Download (CSV)

Bats Exchange Symbol Download (XML)

C# Code for Downloading Stock Symbols

If your using C# you can easily get the XML data using LINQ:

string url = "http://www.batstrading.com/market_data/symbol_listing/xml/";

XDocument doc = XDocument.Load(url);

var symbols = from s in doc.Root.Element("symbols").Elements("symbol")
                select new {Name = s.Attribute("name").Value};
            
foreach (var symbol in symbols)
{
    Console.WriteLine(symbol.Name);
}

Categories:   Code, Finance

Comments

  • Posted: July 15, 2012 10:32

    Wayne

    I was doing a little research into how to organize all the information one would receive as a result of downloading and pushing it into a database for analysis. The big challenge that I'm having is that there are alot of stocks that are interlisted. The solution seems to be to use the ISIN - Internation Securities Identification Number (http://en.wikipedia.org/wiki/International_Securities_Identification_Number). The challenge I'm finding is that there doesn't seem to a be a place where I can download a complete master list. You can only find bits and pieces of the list on the internet. Any ideas if Yahoo or Google would have this information buried in their databases where we can access it?
  • Posted: December 2, 2015 03:57

    luis

    dear friends. i need the same function (or call to one web service) for donwload one list of all symbols in the world in XML format. thanks!!!!!
    • Posted: December 16, 2015 21:07

      Kelly Elias

      To get all the world's symbols is a tall order. If you want specific exchanges you can usually just go to them and get that data. EodData has a good list for North American exchanges. I'm not familiar with ones out side of North America.