All Projects → rubenafo → yfMongo

rubenafo / yfMongo

Licence: Apache-2.0 License
MongoDb tool to store stock Yahoo Finance market data in a consistent way

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to yfMongo

stock-market-scraper
Scraps historical stock market data from Yahoo Finance (https://finance.yahoo.com/)
Stars: ✭ 110 (+243.75%)
Mutual labels:  finance, stock-market, yahoo-finance
open-climate-investing
Application and data for analyzing and structuring portfolios for climate investing.
Stars: ✭ 20 (-37.5%)
Mutual labels:  finance, stock-market
GoPlan-app
An intuitive portfolio mangaer !
Stars: ✭ 27 (-15.62%)
Mutual labels:  finance, stock-market
Beibo
🤖 Predict the stock market with AI 用AI预测股票市场
Stars: ✭ 46 (+43.75%)
Mutual labels:  finance, stock-market
wallstreet
Stock Quotes and Charts for the Terminal
Stars: ✭ 75 (+134.38%)
Mutual labels:  finance, stock-market
web trader
📊 Python Flask game that consolidates data from Nasdaq, allowing the user to practice buying and selling stocks.
Stars: ✭ 21 (-34.37%)
Mutual labels:  finance, stock-market
node-yahoo-finance2
Unofficial API for Yahoo Finance
Stars: ✭ 155 (+384.38%)
Mutual labels:  finance, yahoo-finance
stocki
The CLI for fetching stock market data
Stars: ✭ 32 (+0%)
Mutual labels:  finance, stock-market
brapi
API ilimitada da Bovespa, moedas e crypto. Ganhe acesso aos dados de qualquer ação, moeda ou criptomoeda
Stars: ✭ 36 (+12.5%)
Mutual labels:  finance, yahoo-finance
dados-financeiros
Repositório de Fontes de Dados Financeiros do Brasil
Stars: ✭ 119 (+271.88%)
Mutual labels:  finance, stock-market
SwiftYFinance
The best Yahoo Finance library with the power of Swift
Stars: ✭ 30 (-6.25%)
Mutual labels:  stock-market, yahoo-finance
yliveticker
Get market data from Yahoo Finance websocket in near-real time.
Stars: ✭ 90 (+181.25%)
Mutual labels:  stock-market, yahoo-finance
Stocksera
Web application that provides alternative data to retail investors
Stars: ✭ 426 (+1231.25%)
Mutual labels:  finance, yahoo-finance
qtrn
⚠️ Deprecated, see https://github.com/piquette/qtrn ⚠️
Stars: ✭ 20 (-37.5%)
Mutual labels:  finance, stock-market
Stock-Analyzer
Application that calculates the key values from financial statements of publicly traded companies
Stars: ✭ 16 (-50%)
Mutual labels:  finance, stock-market
fhub
Python client for Finnhub API
Stars: ✭ 31 (-3.12%)
Mutual labels:  finance, stock-market
fundamentos
Download Bovespa Stock Market fundamentals with Python.
Stars: ✭ 80 (+150%)
Mutual labels:  finance, stock-market
pyEX
Python interface to IEX and IEX cloud APIs
Stars: ✭ 407 (+1171.88%)
Mutual labels:  finance, stock-market
Finance-Robinhood
Trade stocks and ETFs with free brokerage Robinhood and Perl
Stars: ✭ 42 (+31.25%)
Mutual labels:  finance, stock-market
stockscore
A python project to fetch stock financials/statistics and perform preliminary screens to aid in the stock selection process
Stars: ✭ 54 (+68.75%)
Mutual labels:  finance, stock-market

PyPI version
yfMongo

yfMongo is a simple command line app to store and manage Yahoo Finance stock data in a MongoDb database.
It allows you to build a local corpus of stock data that can be reused and updated easily wihout having to be constantly online.
The API access is handled using YahooFetcher .

Install

pip install yfm

Features

  • Retrieve stock data from Yahoo Finance using Yahoo tickers
  • Store tickers locally in MongoDb
  • Retrieve some indexes constituent data
  • Update tickers data daily
  • Fetch by date range
  • Export the data to JSON and CSV

Requirements

  • Python v2.6 at least
  • Pymongo python module
  • a running MongoDb instance

Database structure

By default yfMongo creates a database called yfmongo in your local MongoDb setup. Inside this database, two collections contain all the data:

  • symbols : tickers list
  • timeline : tickers data (opening price, closing, max, min, volumen and date)

Usage

yfm can be used as a command line tool to load symbols into the mongodb database or directly as a python module:

yfm add goog                        # add the 'goog' ticker to the database
yfm add mse  06/05/2013 12/05/2013  # add mse and fetch the data between 6th May 2013 and 12th May 2013.
yfm add index ftse                  # add the tickers for the index FTSE
yfm remove goog                     # removes GOOG from the db, ticker and timeline info
yfm update                          # for each ticker retrieve data since last day until today
yfm show mse                        # displays mse content

Directly from within python, tipycally to read from the database

import yfm
fetcher = yfm.fetcher()
fetcher.getTicker("goog")  # read from the db
fetcher.update() # same as 'yfm update'

Openshift integration

In order to use yfm in OpenShift, edit yfm file and override the following parameters: hostname = os.environ.get("OPENSHIFT_MONGODB_DB_HOST") port = os.environ.get("OPENSHIFT_MONGODB_DB_PORT") user = os.environ.get("OPENSHIFT_MONGODB_DB_USERNAME") password = os.environ.get("OPENSHIFT_MONGODB_DB_PASSWORD")

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].