All Projects → AndrewRPorter → yahoo-historical

AndrewRPorter / yahoo-historical

Licence: MIT license
Downloads historical EOD (end of day) prices from yahoo finance

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to yahoo-historical

node-yahoo-finance2
Unofficial API for Yahoo Finance
Stars: ✭ 155 (+61.46%)
Mutual labels:  finance, yahoo, yahoo-finance
fhub
Python client for Finnhub API
Stars: ✭ 31 (-67.71%)
Mutual labels:  finance, pandas-dataframe
SwiftYFinance
The best Yahoo Finance library with the power of Swift
Stars: ✭ 30 (-68.75%)
Mutual labels:  yahoo, yahoo-finance
pinance
Python module(s) to get stock data, options data and news.
Stars: ✭ 70 (-27.08%)
Mutual labels:  finance, yahoo-api
FinanceMarketDataGrabber
Use Yahoo Finance or Google's 'hidden' Finance APIs to retrieve current stock and forex data as well as historic quotes
Stars: ✭ 42 (-56.25%)
Mutual labels:  historical-data, yahoo-finance
brapi
API ilimitada da Bovespa, moedas e crypto. Ganhe acesso aos dados de qualquer ação, moeda ou criptomoeda
Stars: ✭ 36 (-62.5%)
Mutual labels:  finance, yahoo-finance
Stocksera
Web application that provides alternative data to retail investors
Stars: ✭ 426 (+343.75%)
Mutual labels:  finance, yahoo-finance
stock-market-scraper
Scraps historical stock market data from Yahoo Finance (https://finance.yahoo.com/)
Stars: ✭ 110 (+14.58%)
Mutual labels:  finance, yahoo-finance
okama
Investment portfolio and stocks analyzing tools for Python with free historical data
Stars: ✭ 87 (-9.37%)
Mutual labels:  finance, historical-data
Finance-Robinhood
Trade stocks and ETFs with free brokerage Robinhood and Perl
Stars: ✭ 42 (-56.25%)
Mutual labels:  finance, historical-data
AIPortfolio
Use AI to generate a optimized stock portfolio
Stars: ✭ 28 (-70.83%)
Mutual labels:  finance, yahoo
yfMongo
MongoDb tool to store stock Yahoo Finance market data in a consistent way
Stars: ✭ 32 (-66.67%)
Mutual labels:  finance, yahoo-finance
Awesome Quant
A curated list of insanely awesome libraries, packages and resources for Quants (Quantitative Finance)
Stars: ✭ 8,205 (+8446.88%)
Mutual labels:  finance, yahoo-finance
rRofex
R library to connect to Matba Rofex's Trading API. Functionality includes accessing account data and current holdings, retrieving investment quotes, placing and canceling orders, and getting reference data for instruments.
Stars: ✭ 21 (-78.12%)
Mutual labels:  finance
bankster
Money Creation Made Easy
Stars: ✭ 30 (-68.75%)
Mutual labels:  finance
exactonline
Exact Online (accounting software) REST API Library in Python
Stars: ✭ 35 (-63.54%)
Mutual labels:  finance
yahoofantasy
A Python SDK for the Yahoo! Fantasy Sports API
Stars: ✭ 31 (-67.71%)
Mutual labels:  yahoo
Scrape-Finance-Data
My code for scraping financial data in Vietnam
Stars: ✭ 13 (-86.46%)
Mutual labels:  finance
astra-flash
Fork of Astra Flash components
Stars: ✭ 15 (-84.37%)
Mutual labels:  yahoo
starling-roundup
Round-up your Starling Bank transactions and transfer the proceeds to a savings goal
Stars: ✭ 17 (-82.29%)
Mutual labels:  finance

PyPi version Total downloads via Pip yahoo-historical build status

yahoo-historical

Installation

pip install --user yahoo-historical

Methods

  • get_historical()
  • get_dividends()
  • get_splits()

Example Usage

Below details the available method params for creating a Fetcher object.

Arguments

  • ticker: The ticker symbol to download historical data for
  • start: Start date as Unix timestamp

Optional Arguments

  • end: End date as Unix timestamp (defaults to time.time())
  • interval: Interval to fetch historical data (can be 1d, 1wk, 1mo, defaults to 1d)
from yahoo_historical import Fetcher
import datetime
import time

# create unix timestamp representing January 1st, 2007
timestamp = time.mktime(datetime.datetime(2007, 1, 1).timetuple())

data = Fetcher("AAPL", timestamp)
print(data.get_historical())
                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

Note that you can return a dictionary instead of a DataFrame by setting the as_dataframe flag to False.

from yahoo_historical import Fetcher

import datetime
import time

# create unix timestamp representing January 1st, 2007
timestamp = time.mktime(datetime.datetime(2007, 1, 1).timetuple())

data = Fetcher("AAPL", timestamp)
print(data.get_historical(as_dataframe=False))
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].