Automatic Historical Stock Price Dataset Generation Using Python

08/25/2023
by   Arunima Mandal, et al.
0

With the dynamic political and economic environments, the ever-changing stock markets generate large amounts of data daily. Acquiring up-to-date data is crucial to enhancing predictive precision in stock price behavior studies. However, preparing the dataset manually can be challenging and time-demanding. The stock market analysis usually revolves around specific indices such as S P500, Nasdaq, Dow Jones, the New York Stock Exchange (NYSE), etc. It is necessary to analyze all the companies of any particular index. While raw data are accessible from diverse financial websites, these resources are tailored for individual company data retrieval and there is a big gap between what is available and what is needed to generate large datasets. Python emerges as a valuable tool for comprehensively collecting all constituent stocks within a given index. While certain online sources offer code snippets for limited dataset generation, a comprehensive and unified script is yet to be developed and publicly available. Therefore, we present a comprehensive and consolidated code resource that facilitates the extraction of updated datasets for any particular time period and for any specific stock market index and closes the gap. The code is available at https://github.com/amp1590/automatic_stock_data_collection.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
09/09/2020

Forecasting financial markets with semantic network analysis in the COVID-19 crisis

This paper uses a new textual data index for predicting stock market dat...
research
01/17/2023

Leveraging Vision-Language Models for Granular Market Change Prediction

Predicting future direction of stock markets using the historical data h...
research
09/24/2019

Exploring Graph Neural Networks for Stock Market Predictions with Rolling Window Analysis

Recently, there has been a surge of interest in the use of machine learn...
research
10/03/2022

Sentiment Analysis of ESG disclosures on Stock Market

In this paper, we look at the impact of Environment, Social and Governan...
research
06/17/2020

A Tweet-based Dataset for Company-Level Stock Return Prediction

Public opinion influences events, especially related to stock market mov...
research
05/09/2016

Stochastic Portfolio Theory: A Machine Learning Perspective

In this paper we propose a novel application of Gaussian processes (GPs)...
research
09/22/2020

A rapidly updating stratified mix-adjusted median property price index model

Homeowners, first-time buyers, banks, governments and construction compa...

Please sign up or login with your details

Forgot password? Click here to reset