All Projects → pdevty → googlefinance-client-python

pdevty / googlefinance-client-python

Licence: MIT License
googlefinance.client is a python client library for google finance api.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to googlefinance-client-python

mlp stock
Stock price prediction using ensemble MLP in PyTorch.
Stars: ✭ 25 (-71.59%)
Mutual labels:  stock
Time-Series-Transformer
A data preprocessing package for time series data. Design for machine learning and deep learning.
Stars: ✭ 123 (+39.77%)
Mutual labels:  stock
alpaca
A TypeScript Node.js library for the https://alpaca.markets REST API and WebSocket streams.
Stars: ✭ 100 (+13.64%)
Mutual labels:  stock
bitcoin-stock-to-flow
Stock-to-Flow ratio and price for Bitcoin
Stars: ✭ 19 (-78.41%)
Mutual labels:  stock
uzerp
uzERP - Open Source Business Management
Stars: ✭ 41 (-53.41%)
Mutual labels:  stock
stock-news-sentiment-analysis
This program uses Vader SentimentIntensityAnalyzer to calculate the news headline overall sentiment for a stock
Stars: ✭ 21 (-76.14%)
Mutual labels:  stock
stocklist
Stock data collection and analysis
Stars: ✭ 27 (-69.32%)
Mutual labels:  stock
larapos
Laravel Point of sale with invoice full source code free download pos apps.
Stars: ✭ 38 (-56.82%)
Mutual labels:  stock
IEX CPP API
Unofficial C++ Lib for the IEXtrading API
Stars: ✭ 34 (-61.36%)
Mutual labels:  stock
sse-option-crawler
SSE 50 index options crawler 上证50期权数据爬虫
Stars: ✭ 17 (-80.68%)
Mutual labels:  stock
fishing-funds
基金,大盘,股票,虚拟货币状态栏显示小应用,基于Electron开发,支持MacOS,Windows,Linux客户端,数据源来自天天基金,蚂蚁基金,爱基金,腾讯证券,新浪基金等
Stars: ✭ 424 (+381.82%)
Mutual labels:  stock
stocki
The CLI for fetching stock market data
Stars: ✭ 32 (-63.64%)
Mutual labels:  stock
quanttrader
Backtest and live trading in Python
Stars: ✭ 139 (+57.95%)
Mutual labels:  stock
QT StockFigure
QT显示股票分时线
Stars: ✭ 16 (-81.82%)
Mutual labels:  stock
dipiper
基于nodejs的股票数据爬虫
Stars: ✭ 83 (-5.68%)
Mutual labels:  stock
Base-On-Relation-Method-Extract-News-DA-RNN-Model-For-Stock-Prediction--Pytorch
基於關聯式新聞提取方法之雙階段注意力機制模型用於股票預測
Stars: ✭ 33 (-62.5%)
Mutual labels:  stock
StockChart
StockChart是一款适用于Android的高扩展性、高性能股票图开发库,轻松完成各种子图的组合,还能灵活的定制自己的子图满足复杂的业务需求。
Stars: ✭ 62 (-29.55%)
Mutual labels:  stock
Stock WeChat
微信股价预警提示【由于微信封禁第三方 API,本项目不再维护】
Stars: ✭ 65 (-26.14%)
Mutual labels:  stock
algorithmic-market-prediction
Implementation of Algorthmic Prediction of Candle Patterns
Stars: ✭ 21 (-76.14%)
Mutual labels:  stock
streamdeck-stockticker
Stock Ticker plugin for Stream Deck
Stars: ✭ 29 (-67.05%)
Mutual labels:  stock

googlefinance.client

googlefinance.client is a python client library for google finance api

Installation

$ pip install googlefinance.client

Usage

from googlefinance.client import get_price_data, get_prices_data, get_prices_time_data

# Dow Jones
param = {
	'q': ".DJI", # Stock symbol (ex: "AAPL")
	'i': "86400", # Interval size in seconds ("86400" = 1 day intervals)
	'x': "INDEXDJX", # Stock exchange symbol on which stock is traded (ex: "NASD")
	'p': "1Y" # Period (Ex: "1Y" = 1 year)
}
# get price data (return pandas dataframe)
df = get_price_data(param)
print(df)
#                          Open      High       Low     Close     Volume
# 2016-05-17 05:00:00  17531.76   17755.8  17531.76  17710.71   88436105
# 2016-05-18 05:00:00  17701.46  17701.46  17469.92  17529.98  103253947
# 2016-05-19 05:00:00  17501.28  17636.22  17418.21  17526.62   79038923
# 2016-05-20 05:00:00  17514.16  17514.16  17331.07   17435.4   95531058
# 2016-05-21 05:00:00  17437.32  17571.75  17437.32  17500.94  111992332
# ...                       ...       ...       ...       ...        ...

params = [
	# Dow Jones
	{
		'q': ".DJI",
		'x': "INDEXDJX",
	},
	# NYSE COMPOSITE (DJ)
	{
		'q': "NYA",
		'x': "INDEXNYSEGIS",
	},
	# S&P 500
	{
		'q': ".INX",
		'x': "INDEXSP",
	}
]
period = "1Y"
# get open, high, low, close, volume data (return pandas dataframe)
df = get_prices_data(params, period)
print(df)
#            .DJI_Open  .DJI_High  .DJI_Low  .DJI_Close  .DJI_Volume  \
# 2016-07-20   18503.12   18562.53  18495.11    18559.01    85840786   
# 2016-07-21   18582.70   18622.01  18555.65    18595.03    93233337   
# 2016-07-22   18589.96   18590.44  18469.67    18517.23    86803016   
# 2016-07-23   18524.15   18571.30  18491.59    18570.85    87706622   
# 2016-07-26   18554.49   18555.69  18452.62    18493.06    76807470   
# ...               ...        ...       ...         ...         ...   

params = [
	# Dow Jones
	{
		'q': ".DJI",
		'x': "INDEXDJX",
	},
	# NYSE COMPOSITE (DJ)
	{
		'q': "NYA",
		'x': "INDEXNYSEGIS",
	},
	# S&P 500
	{
		'q': ".INX",
		'x': "INDEXSP",
	}
]
period = "1Y"
interval = 60*30 # 30 minutes
# get open, high, low, close, volume time data (return pandas dataframe)
df = get_prices_time_data(params, period, interval)
print(df)
#                      .DJI_Open  .DJI_High  .DJI_Low  .DJI_Close  .DJI_Volume  \
# 2016-07-19 23:00:00   18503.12   18542.13  18495.11    18522.47            0   
# 2016-07-19 23:30:00   18522.44   18553.30  18509.25    18546.27            0   
# 2016-07-20 00:00:00   18546.20   18549.59  18519.77    18539.93            0   
# 2016-07-20 00:30:00   18540.24   18549.80  18526.99    18534.18            0   
# 2016-07-20 01:00:00   18534.05   18540.38  18507.34    18516.41            0   
# ...                        ...        ...       ...         ...          ...   

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
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].