Skip to main content

A python package to gather realtime stock quotes from Yahoo Finance. The package enables you to handle single stocks or portfolios, optimizing the nunber of requests necessary to gather quotes for a large number of stocks.

Project description

Realtime Stock

https://badge.fury.io/py/realtime-stock.svg https://img.shields.io/travis/condereis/realtime-stock.svg Documentation Status Updates

Realtime Stock is a Python package to gather realtime stock quotes from Yahoo Finance. The package enables you to handle single stocks or portfolios, optimizing the nunber of requests necessary to gather quotes for a large number of stocks.

Features

Stock class

  • Method to get stock’s latest price.

  • Method to get all stock’s information provided by Yahoo Finance.

  • Method get stock’s daily historical information.

  • Method download stock’s historical data from Yahoo Finance.

Utility functions

  • Function to request recent quotes about a list of tickers.

  • Function to get stock’s daily historical information.

  • Function to download historical data about a list of tickers.

Installation

To install Realtime Stock, run this command in your terminal:

$ pip install realtime-stock

Check here for further information on installation.

Basic Usage

For single stocks:

>>> from rtstock.stock import Stock
>>> stock = Stock('AAPL')
>>> stock.get_latest_price()
{
    'LastTradePriceOnly': '95.89',
    'LastTradeTime': '4:00pm'
}

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

1.0.0 (2016-07-27)

  • First release on PyPI.

  • Stock class implemented.

  • Function to request recent quotes about a list of tickers.

  • Function to get stock’s daily historical information.

  • Function to download historical data about a list of tickers..

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

realtime-stock-1.0.0.tar.gz (26.7 kB view details)

Uploaded Source

File details

Details for the file realtime-stock-1.0.0.tar.gz.

File metadata

File hashes

Hashes for realtime-stock-1.0.0.tar.gz
Algorithm Hash digest
SHA256 235f3978b89311ce2523b98c9d53acd3fbea6067603620bcfe1d2cbb9591a8cf
MD5 d554856f134e7ac8259c571ec3ab440b
BLAKE2b-256 95a1c80c9d783b2833c1e085dc5a9d34d255449e4b73d7e172fc5068539f8a56

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page