Useful stock SQL datasets?

后端 未结 7 1072
隐瞒了意图╮
隐瞒了意图╮ 2021-01-31 11:11

Does anyone know of any resources that provide good, useful stock datasets? For example, I\'ve downloaded a SQL script that includes all of the U.S. states, cities, and zipcode

相关标签:
7条回答
  • 2021-01-31 11:34

    If you're looking for time series data, check out Quandl. The great thing here is that it has tons of different data sets (stocks, economics, health, education, etc.) but accessible all by one easy, RESTful API. If programming isn't your thing, then there is a free Excel plug in that lets you easily grab the data into your spreadsheet.

    0 讨论(0)
  • 2021-01-31 11:41

    Lots of links to open data sets here:

    http://readwrite.com/2008/04/09/where_to_find_open_data_on_the/

    although I doubt any of them will generate SQL statements for you.

    0 讨论(0)
  • Stock symbols are problematic, they can be different for every trade execution venue and pretty much all are held as protected intellectual property of the venue or data vendor, e.g. Thomson Reuters, Bloomberg, Nasdaq, NYSE.

    0 讨论(0)
  • 2021-01-31 11:47

    Shadowman, better if you say detail list of what you want.

    • Blacklisted IP addresses - Ad? Xxx? Fraud?
    • Names of colleges/universities - All in the world? Wouldn't it be too much?

    Here is an idea how to drop down a list of something - this is how I do that:

    For example, I need a list of colleges/universities in California.

    1. I google for: colleges california wikipedia. Then open the first found item there;
    2. By using mouse I select all the colleges and universities from there to clipboard;
    3. Open Excel and paste copied names into the first row+column;
    4. In the second cell of the first row write templated script, like:

      ="INSERT INTO Colleges (state, name) VALUES ('CA', '" & RC[-1] & "');"
      

      This should produce something like

      INSERT INTO Colleges (state, name) VALUES ('CA', 'Academy of Art University, San Francisco');
      INSERT INTO Colleges (state, name) VALUES ('CA', 'Allied American University, Laguna Hills (Online)');
      INSERT INTO Colleges (state, name) VALUES ('CA', 'American Jewish University, Los Angeles');
      INSERT INTO Colleges (state, name) VALUES ('CA', 'American Sports University, San Bernardino');
      INSERT INTO Colleges (state, name) VALUES ('CA', 'Anaheim University, Anaheim (Online)');
      INSERT INTO Colleges (state, name) VALUES ('CA', 'Antioch University, Culver City');
      -- etc...
      
    5. Then just copy generated script and use it for your database
    0 讨论(0)
  • 2021-01-31 11:49

    http://www.data.gov/ has a lot of different datasets but most are not "stock".

    0 讨论(0)
  • 2021-01-31 11:51

    The MySQL documentation site has a list to a downloadable dataset already in SQL format, ready for use in a database.

    1. Download the dataset, such as the world database: http://downloads.mysql.com/docs/world_innodb.sql.gz
    2. Change directory into the folder you downloaded to, e.g. cd Downloads
    3. Unzip gunzip world_innodb.sql.gz
    4. Login to mysql and create a world database

    $ mysql mysql> create database world mysql> quit

    1. Import the contents of the mysqldump file using cat

    cat world_innodb.sql | mysql world

    This dataset is idea for learners, looking to practice their SQL.

    0 讨论(0)
提交回复
热议问题