Questions tagged [xbrl]

XBRL is the eXtensible Business Reporting Language. XBRL is an XML-based syntax for exchanging facts that carry their own context, and that are reported against taxonomies. Today, XBRL is mostly used for submitting financial reports to regulatory authorities.

XBRL is an XML-based standard developed and promoted by XBRL International Incorporated, a not-for-profit consortium of agencies and companies.

It extensively uses XML and related technologies such as XML Schema, XLink, XPath, XML namespaces in order to reduce the uncertainty around the transmission of financial information.

An XBRL taxonomy defines the list of items that can be reported, and their datatypes. Taxonomy linkbases provide additional information, such as the labels that should be displayed to users (label linkbase), references (reference linkbases), dimensions (definition linkbase), validation rules (calculation and formula linkbases).

An XBRL instance is a list of facts that conforms with one or more taxonomies.

XBRL is used most often in a use case of financial regulation. Financial reports are provided by regulated entities to a regulatory agency. These XBRL instances typically use a 'base taxonomy' that captures the concepts of an accounting framework, such as US GAAP or IFRS. In some regulatory reporting, companies also create extension taxonomies. These extension taxonomies provide additional accounting concepts that the company uses, but which are not provided in the base taxonomy.

Base taxonomies often contain thousands of concepts, and are maintained by the owners of the intellectual property of the framework they capture. In the case of US GAAP, this is the Financial Accounting Standards Board.

226 questions
1
vote
1 answer

XBRL and its link and xlink specification mapping from xml to C# classes

I want to model XBRL (consisting of one XSD and many included XSD files and a bunch of referenced linkbases which themselves have xlink elements that point to elements within themselves of outside themselves). I want to be able to do some automatic…
Rad
  • 933
  • 1
  • 15
  • 32
1
vote
3 answers

Inconsistent tags between XBRL files from the SEC (EDGAR)

I'm parsing every XBRL files from the SEC through EDGAR in order to retrieve some data (in json format on python). I have no problem parsing those files. My problem lies in the structure of the XBRL files provided by the SEC, i noticed that some…
Omar Sow
  • 15
  • 3
1
vote
2 answers

How to parse this XML using php

I have the following XML (XBRL) file 0000027419
user503853
1
vote
1 answer

What is the frame attribution in xbrl's terminology?

To get all tesla's asset value at every financial report with sec's RESTful api: https://data.sec.gov/api/xbrl/companyconcept/CIK0001318605/us-gaap/Assets.json Open units--USD in the json,records in it,some record with frame attribution some…
showkey
  • 482
  • 42
  • 140
  • 295
1
vote
1 answer

Build financial table from EDGAR XBRL files

When companies submit their reports to SEC, a number of files are made available. E.g. the latest 10-K of AAPL. From this even the SEC website (and many others) make the tables as structured data. What I would like to do is to reproduce it myself,…
jollytall
  • 117
  • 8
1
vote
2 answers

How can extract an income statement from all company concepts?

All company concepts in xbrl format can be extracted with sec's RESTful api. For example,i want to get tesla's concepts in xbrl format in 2020, get the tesla's cik and the url for api. cik='1318605' url =…
showkey
  • 482
  • 42
  • 140
  • 295
1
vote
1 answer

What is the difference between a concept and a label in XBRL, and do all listed companies share the same US GAAP labels?

Let me show tesla's company facts data with sec's RESTful api: https://data.sec.gov/api/xbrl/companyfacts/CIK0001318605.json You can see all labels in 'facts ---- us-gaap' such as…
showkey
  • 482
  • 42
  • 140
  • 295
1
vote
1 answer

Parse id from XBRL file with BeautifulSoup

I have an issue with scraping an XBRL file using Beautifulsoup. Code: openxbrl = open(file.file_path, 'r') readxbrl = openxbrl.read() contextsoup = xbrlsoup.findAll('xbrli:context') print(contextsoup) Gives the following output (sample, there…
Bob
  • 13
  • 3
1
vote
2 answers

Deserialize XML with elements that differ by attribute

I have this snippet of XML (actually it's XBRL, but that is based on XML)
Hanno
  • 1,017
  • 11
  • 18
1
vote
2 answers

XBRL label names differ between instance and calculation documents

I have what is, probably, a very stupid question, but I'm stumped by it and would appreciate any help. I'm trying to gather xbrl data from SEC filings using Python and BeautifulSoup. One problem I'm having is that certain line items are referred to…
jmaloney13
  • 225
  • 1
  • 8
1
vote
0 answers

XBRL / Finstr issue with SEC data in R

I am trying to download the XBRL data from the SEC site, using the finstr package in R. The vignette references Apple financial statements from 2013-14. I am going after Abbott (CIK 1800) for mine. I've looked through the data records on the SEC…
1
vote
2 answers

Is there a programmatic way to determine what the most recent context is for an SEC Filing?

If I'm trying to read an SEC XBRL filing, is there a way to programatically determine what the most recent context is? Or does the naming of a context follow a particular pattern? For example, if I am trying to read the AAPL Q2 2020 SEC Filing,…
steve8918
  • 1,820
  • 6
  • 27
  • 38
1
vote
1 answer

In XBRL, is the same presentation network valid for all the contexts in a single SEC filing?

Are presentation networks/hierarchies independent of the contexts of the facts that populate them? For example, within an instance document, I see many facts that are duplicated for concepts, but with different contexts. Obviously this is because…
steve8918
  • 1,820
  • 6
  • 27
  • 38
1
vote
1 answer

Reading and parsing a XBRL file in Perl (or converting into normal XML / JSON!)

I'm drawing a blank on this. XBRL seems to be based on XML - yet there seems to be no agreed structure for it. I'm taking data from http://download.companieshouse.gov.uk/en_monthlyaccountsdata.html , and I want to parse the file into usable data How…
Andrew Newby
  • 4,941
  • 6
  • 40
  • 81