Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

retrieve after hours stock information from Nasdaq

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: ‘’.


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 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 install


The source file can be downloaded here:

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

import after_hours


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

This version
History Node


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 (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