Skip to main content

A package for getting a US equity earnings announcement calendar.

Project description

What is ecal?

ecal is a package for getting a US equity earnings announcement calendar.

For more documentation, please see http://ecal.readthedocs.io.

Installation

ecal can be easily installed with pip:

$ pip install ecal

Quickstart

import ecal
cal_df = ecal.get('2017-03-30')

The results will be an earnings calendar in a pandas Dataframe:

           ticker when
date
2017-03-30   AEHR  amc
2017-03-30   ANGO  bmo
2017-03-30   BSET   --
2017-03-30     FC  amc
2017-03-30    LNN  bmo
2017-03-30   SAIC  bmo
2017-03-30   TITN  bmo


*ticker* is the ticker symbol on NYSE or NASDAQ.

*when* can be: ``bmo`` which means *before market open*, ``amc`` which means *after market close* or ``--`` which means *no time reported*.

Caching

ecal supports caching so that repeated calls don’t actually make server calls. This is important as the source APIs are throttled, at approximately one second per call. Runtime caching in enabled by default but persistent on disk caching (via sqlite) is very easily used:

import ecal
ecal.default_cache = ecal.SqliteCache('ecal.db')
cal_df = ecal.get('2017-03-30')

Extension

ecal is very easy to extend in case you want to support another caching system or even use another earnings announcement provider. For more documentation, please see http://ecal.readthedocs.io.

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

ecal-1.0.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ecal-1.0.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file ecal-1.0.0.tar.gz.

File metadata

  • Download URL: ecal-1.0.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.4

File hashes

Hashes for ecal-1.0.0.tar.gz
Algorithm Hash digest
SHA256 dd608ae21e8630b564ba98896d70a5f46fc1df685c873ebe5b6cb1ac35c9003c
MD5 f2bde01b401c8aec7004b38b5900172c
BLAKE2b-256 5355c3a17429e089bbaa87f806f2a610b7a634549f861f6a4cb7a6dd6b3603f6

See more details on using hashes here.

File details

Details for the file ecal-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ecal-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.4

File hashes

Hashes for ecal-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 280e4ce60ebfbe68e20a983df3b8797cf49e874ebe8e63647734d9aa954745fe
MD5 b436de4f9d06fe15d9c06f881c29da86
BLAKE2b-256 f5aa6f58c6e21a4f0dfe5f4fc8f83eee7e15ee27e7c4bd98d00c3026a2428c7a

See more details on using hashes here.

Supported by

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