Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error for sample code #8

Open
victorconan opened this issue Nov 14, 2021 · 0 comments
Open

Error for sample code #8

victorconan opened this issue Nov 14, 2021 · 0 comments

Comments

@victorconan
Copy link

When changing the sample code's year from 2016 to 2015, as below.

stock = Stock('AAPL')

period = 'quarterly' # or 'annual', which is the default
year = 2015 # can use default of 0 to get the latest
quarter = 1 # 1, 2, 3, 4, or default value of 0 to get the latest
# using defaults to get the latest annual, can simplify to stock.get_filing()
filing = stock.get_filing(period, year, quarter)

# financial reports (contain data for multiple years)
income_statements = filing.get_income_statements()
balance_sheets = filing.get_balance_sheets()
cash_flows = filing.get_cash_flows()

will get the below error:

cik for AAPL is 320193
getting ['10-Q', '10-Q/A'] filing info from https://www.sec.gov/Archives/edgar/full-index/2015/QTR1/master.idx
Processing SGML at https://www.sec.gov/Archives/edgar/data/320193/0001193125-15-023697.txt

AttributeError: 'DocumentText' object has no attribute 'xml'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant