You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SEC-API provides financial statements in separate tables such as BalanceSheet, StatementsOfIncome and many others.
But looking at some of the companies/cik the xbrl_to_json api is providing data from some other tables which does not belong to the Balancesheet or the StatementsOfIncome
One such company is 0000764897
If we select only the RevenueFromContractWithCustomerExcludingAssessedTax of the company in StatementsOfIncome,
it gives some extra data which is not present in StatementsOfIncome, rather in some other tables.
from sec_api import XbrlApi
xbrlApi = XbrlApi(api_key)
url = "https://www.sec.gov/Archives/edgar/data/0000764897/000156459021018959/brst-10k_20201231.htm"
json_statements = xbrlApi.xbrl_to_json(htm_url=url)
revenues = [rev for rev in json_statements['StatementsOfIncome']['RevenueFromContractWithCustomerExcludingAssessedTax']
if rev['period']['endDate'] == '2020-12-31']
print(revenues)
SEC-API provides financial statements in separate tables such as
BalanceSheet
,StatementsOfIncome
and many others.But looking at some of the companies/cik the
xbrl_to_json
api is providing data from some other tables which does not belong to theBalancesheet
or theStatementsOfIncome
One such company is
0000764897
If we select only the
RevenueFromContractWithCustomerExcludingAssessedTax
of the company inStatementsOfIncome
,it gives some extra data which is not present in
StatementsOfIncome
, rather in some other tables.Output:
Extra data are fetched from the following tables,
The text was updated successfully, but these errors were encountered: