Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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

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


Release history Release notifications

This version
History Node

1.0.0

History Node

0.1.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
realtime-stock-1.0.0.tar.gz (26.7 kB) Copy SHA256 hash SHA256 Source None Jul 28, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page