All Projects → mohabmes → pystocklib

mohabmes / pystocklib

Licence: MIT license
Python library to Fetch & Analyze Stock Market data.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pystocklib

Stocksent
A Python library for sentiment analysis of various tickers from the latest news by trusted sources, and tools to plot results. 📈📊📰
Stars: ✭ 35 (+52.17%)
Mutual labels:  sentiment-analysis, stock-market
stocktwits-sentiment
Stocktwits market sentiment analysis in Python with Keras and TensorFlow.
Stars: ✭ 23 (+0%)
Mutual labels:  sentiment-analysis, stock-market
Finance-Robinhood
Trade stocks and ETFs with free brokerage Robinhood and Perl
Stars: ✭ 42 (+82.61%)
Mutual labels:  stock-market, historical-data
NSEDownload
Python Library to get historical, adjusted data and generate trailing returns of stocks and indices on the NSE
Stars: ✭ 65 (+182.61%)
Mutual labels:  stock-market, historical-data
Bulbea
🐗 🐻 Deep Learning based Python Library for Stock Market Prediction and Modelling
Stars: ✭ 1,585 (+6791.3%)
Mutual labels:  sentiment-analysis, stock-market
Stocksight
Stock market analyzer and predictor using Elasticsearch, Twitter, News headlines and Python natural language processing and sentiment analysis
Stars: ✭ 1,037 (+4408.7%)
Mutual labels:  sentiment-analysis, stock-market
Steward
A stock portfolio manager that provides neural net based short-term predictions for stocks and natural language processing based analysis on community sentiments.
Stars: ✭ 25 (+8.7%)
Mutual labels:  sentiment-analysis, stock-market
Stock Market Prediction Web App Using Machine Learning And Sentiment Analysis
Stock Market Prediction Web App based on Machine Learning and Sentiment Analysis of Tweets (API keys included in code). The front end of the Web App is based on Flask and Wordpress. The App forecasts stock prices of the next seven days for any given stock under NASDAQ or NSE as input by the user. Predictions are made using three algorithms: ARIMA, LSTM, Linear Regression. The Web App combines the predicted prices of the next seven days with the sentiment analysis of tweets to give recommendation whether the price is going to rise or fall
Stars: ✭ 101 (+339.13%)
Mutual labels:  sentiment-analysis, stock-market
Stock market sentiment analysis
股市情感分析
Stars: ✭ 130 (+465.22%)
Mutual labels:  sentiment-analysis, stock-market
mftool
Python library for getting real-time Mutual Funds data in India
Stars: ✭ 76 (+230.43%)
Mutual labels:  stock-market, historical-data
rosette-elasticsearch-plugin
Document Enrichment plugin for Elasticsearch
Stars: ✭ 25 (+8.7%)
Mutual labels:  sentiment-analysis
intrinio-realtime-python-sdk
Intrinio Python SDK for Real-Time Stock Prices
Stars: ✭ 79 (+243.48%)
Mutual labels:  stock-market
CPSC540Project
Project on financial forecasting using ML. Made by Anson Wong, Juan Garcia & Gudbrand Tandberg
Stars: ✭ 128 (+456.52%)
Mutual labels:  stock-market
stock-market-scraper
Scraps historical stock market data from Yahoo Finance (https://finance.yahoo.com/)
Stars: ✭ 110 (+378.26%)
Mutual labels:  stock-market
char-cnn-text-classification-tensorflow
Simple Convolutional Neural Network (CNN) for sentiment classification of Chinese movie reviews.
Stars: ✭ 55 (+139.13%)
Mutual labels:  sentiment-analysis
converse
Conversational text Analysis using various NLP techniques
Stars: ✭ 147 (+539.13%)
Mutual labels:  sentiment-analysis
open-climate-investing
Application and data for analyzing and structuring portfolios for climate investing.
Stars: ✭ 20 (-13.04%)
Mutual labels:  stock-market
COVID-19-Tweet-Classification-using-Roberta-and-Bert-Simple-Transformers
Rank 1 / 216
Stars: ✭ 24 (+4.35%)
Mutual labels:  sentiment-analysis
SqueezePredictor
A python script that predicts a stock's susceptibility to a short squeeze.
Stars: ✭ 36 (+56.52%)
Mutual labels:  stock-market
Scon-ABSA
[CIKM 2021] Enhancing Aspect-Based Sentiment Analysis with Supervised Contrastive Learning
Stars: ✭ 17 (-26.09%)
Mutual labels:  sentiment-analysis

pystocklib

Python package for Stock Market analysis. (Historical Data, News analysis, visual, Empirical Mode Decomposition)

Features

  • Historical Data
    • load_csv
    • get_date, get_open, get_high, get_low, get_close, get_adj, get_volume
    • retrieve_col_data
    • create_csv
    • moving_average
    • high_minus_low
    • standard_deviation
    • info_plot
  • News analysis
    • extract_news
    • get_sentiment
    • get_news
    • get_result
  • visual
    • plot_fig
    • save_fig
  • Empirical Mode Decomposition (EMD)
    • get_trend
    • get_modes
    • save_figure

How to use

Get the historical data


hist = HistoricalData('AAPL', from_date=[2005, 1, 1], to_date=[2018, 3, 1])

price = hist.get_high()

# or use: hist.retrieve_col_data('Open') 'Date', 'Open', 'High', 'Low', 'Adj', 'Close', 'Volume'

Output
            Date        Open        High         Low       Close   Adj Close      Volume
0     2007-01-03   12.327143   12.368571   11.700000   10.812462   11.971429   309579900
1     2007-01-04   12.007143   12.278571   11.974286   11.052453   12.237143   211815100
2     2007-01-05   12.252857   12.314285   12.057143   10.973743   12.150000   208685400
3     2007-01-08   12.280000   12.361428   12.182858   11.027935   12.210000   199276700
4     2007-01-09   12.350000   13.282857   12.164286   11.944029   13.224286   837324600
5     2007-01-10   13.535714   13.971429   13.350000   12.515617   13.857142   738220000
6     2007-01-11   13.705714   13.825714   13.585714   12.360788   13.685715   360063200
7     2007-01-12   13.512857   13.580000   13.318571   12.208535   13.517143   328172600



Plot & Generate CSV file


hist.create_csv()

plot(price)

Output

CSV File
AAPL-data.png

Load data from csv file


hist = HistoricalData()

hist.load_csv('AAPL')

hist.info_plot('Close')

Output

AAPL info

Apply EMD & show the figure


emd = EMD(price)

emd.save_figure('AAPL-trend', type='trend') # type => trend, all, modes, ds

Output

AAPL-trend AAPL-trend

Calc The SD


sdv = hist.standard_deviation('Open')

print(sdv)

Output
if 0 < sdv < 25
	then it will be considered as 'SAFE'
Otherwise
	it's 'RISKY'



Gather News & analysis it


news = News('Apple')

result = news.get_result()

Output
{
	'news': [
		{
			'text': 'Apple May Be Working on High-End Headphones and a Cheaper MacBook Air',
			'a': 'http://fortune.com/2018/03/10/apple-headphones-macbook-air/',
			'website': 'fortune.com',
			'sentiment': 0.6
		},
		{
			'text': "Apple's December 2016 Quarter Seems To Have Confused A Lot Of People",
			'a': 'https://www.forbes.com/sites/chuckjones/2018/apples-14-week-december-2016/',
			'website': 'forbes.com',
			'sentiment': -0.4
		}
		...
		...
		...
	],
	'sentiment': 77.4
}

Credit

License

MIT License Copyright (c) 2018 mohabmes

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].