Skip to content
/ tenform Public

Python package that utilizes requests and regex to make digging through the SEC database and analyzing 10 forms easy.

License

Notifications You must be signed in to change notification settings

tyfal/tenform

Repository files navigation

tenform

Documentation Status

Python package that utilizes requests and regex to make digging through the SEC database and analyzing 10 forms easy.

Usage

>>> from tenform.tenform import stock
>>> import pandas as pd
>>> import os, webbrowser

>>> s = stock('F')
>>> print(s.get_ticker)
<bound method stock.get_ticker of <Stock F>>

>>> l = s.tenk_links('2016-01-01','2018-01-01')
>>> print(l[0])
https://www.sec.gov/Archives/edgar/data/37996/000003799617000013/f1231201610-k.htm

>>> IncStmt = s.tenk_IS('2017-01-01', '2018-01-01')
>>> path = os.path.abspath('temp.html')
>>> url = 'file://' + path
>>> with open(path, 'w') as f:
>>>   f.write(IncStmt)
>>> webbrowser.open(url)
>>> os.remove('temp.html')

images/tenk_IS.png

Class

  • stock(ticker)

Functions

  • tenk_links(start_date='YYYY-MM-DD', end_date='YYYY-MM-DD')
  • tenk_IS(start_date='YYYY-MM-DD', end_date='YYYY-MM-DD')
  • tenq_links(start_date='YYYY-MM-DD', end_date='YYYY-MM-DD')
  • tenq_IS(start_date='YYYY-MM-DD', end_date='YYYY-MM-DD')

License

Credits

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

About

Python package that utilizes requests and regex to make digging through the SEC database and analyzing 10 forms easy.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published