This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Project Description

Python module after_hours can retrieve pre-market prices and after-hours trading prices from Nasdaq for a given stock symbol

-Created by Jason Lewris

-License: The MIT License

-Developer Home Page: ‘https://github.com/datawrestler’.


Requirements

Python 2.7/3.4+

Method Overview

Method Name Description
pre_latest Returns latest pre market price
pre_high Returns high pre market price
pre_low Returns low pre market price
pre_volume Returns volume pre market price
pre_market_avg Returns avg pre market prices
pre_market_sse pre market standard sqaure error
pre_market_sd pre market standard deviation
ah_latest Returns latest after hours price
ah_high Returns high after hours price
ah_low Returns low after hours price
ah_volume Returns after hours volume
ah_all Returns all after hours prices
ah_avg Returns after hours average price
ah_sse After hours standard sqaure error
ah_sd After hours standard deviation

Installation

Installation is done using pip install:

pip install after_hours

Alternative installation can be done by downloading the source files directly from github, navigating to the directory through terminal and running the following:

python setup.py install

Note

The source file can be downloaded here: https://github.com/datawrestler/after-hours/tarball/0.1

After installation, the package is ready for use. Simply import it into your python script with the following:

import after_hours

Examples

>>> import after_hours
>>> print(after_hours.ah_latest('aapl'))
    ('aapl', 102.18)

>>> print(after_hours.ah_high('aapl'))
    ('aapl', 109.055, '16:09:59 PM')

>>> print(after_hours.ah_low('aapl'))
    ('aapl', 102.1, '19:58:46 PM')

>>> print(after_hours.ah_volume('aapl'))
    ('aapl', '2,140,117')

>>> print(after_hours.ah_all('aapl'))
    ('aapl', ['19:59', '19:57', '19:53'], [102.18, 102.16, 102.11], ['100', '10', '10']

>>> print(after_hours.ah_avg('aapl'))
    ('aapl', 102.22793048

>>> print(after_hours.ah_sse('aapl'))
    ('aapl', 0.572312)

>>> print(after_hours.ah_sd('aapl'))
    ('aapl', 0.0835429)
Release History

Release History

0.1.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
after_hours-0.1.1.zip (9.4 kB) Copy SHA256 Checksum SHA256 Source Aug 27, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting