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
company_identifier: a ticker or a CIK code, eg 'msft'
674
-
statement_type: one of ('income', 'balance', 'cash', 'change-in-equity', 'comprehensive-income')
675
-
period_type: either 'annual' or 'quarterly'
676
-
all_periods: get all history or only the last four, True or False.
677
-
descending_dates: return columns in oldest -> newest order.
674
+
675
+
:param string company_identifier: a ticker or a CIK code, eg 'msft'
676
+
:param string statement_type: one of ('income', 'balance', 'cash', 'change-in-equity', 'comprehensive-income')
677
+
:param string period_type: 'annual' or 'quarterly'
678
+
:param string all_periods: get all history or only the last four, True or False.
679
+
:param bool descending_dates: return columns in oldest -> newest order.
678
680
681
+
:rtype: object
682
+
679
683
Returns:
680
-
An object with columns and line items lists. The columns have fiscal_period, period_start, period_end and instant values.
681
-
The line items have label, local_name (the XBRL tag name), tree_depth (the indent amount), is_subtotal (whether or not the line item is computed from above metrics) and facts.
682
-
The facts are in the same order as the columns and have fact_ids (an internal Calcbench ID), unit_of_measure (USD etc), effective_value (the reported value), and format_type.
683
-
684
-
Example:
685
-
{
686
-
"entity_name": "Microsoft Corp",
687
-
"name": "INCOME STATEMENTS",
688
-
"period_type": 2,
689
-
"columns": [
690
-
{"fiscal_period": "Y 2008",
691
-
"period_start": "2007-07-01",
692
-
"period_end": "2008-06-30",
693
-
"instant": false
694
-
},...],
695
-
"line_items" : [
696
-
{"label": "Revenue",
697
-
"local_name": "SalesRevenueNet",
698
-
"tree_depth": 3,
699
-
"is_subtotal": false,
700
-
"facts": [
701
-
{
702
-
"fact_id": 5849672,
703
-
"unit_of_measure": "USD",
704
-
"effective_value": 60420000000,
705
-
"format_type": "currency",
706
-
"text_fact_id": 5849351
707
-
},...]}
708
-
...]
709
-
}
684
+
An object with columns and line items lists. The columns have fiscal_period, period_start, period_end and instant values.
685
+
The line items have label, local_name (the XBRL tag name), tree_depth (the indent amount), is_subtotal (whether or not the line item is computed from above metrics) and facts.
686
+
The facts are in the same order as the columns and have fact_ids (an internal Calcbench ID), unit_of_measure (USD etc), effective_value (the reported value), and format_type.
<h1>Face Statements<aclass="headerlink" href="#face-statements" title="Permalink to this headline">¶</a></h1>
36
+
<dlclass="function">
37
+
<dtid="calcbench.face_statement">
38
+
<codeclass="sig-prename descclassname">calcbench.</code><codeclass="sig-name descname">face_statement</code><spanclass="sig-paren">(</span><emclass="sig-param">company_identifier</em>, <emclass="sig-param">statement_type</em>, <emclass="sig-param">period_type='annual'</em>, <emclass="sig-param">all_periods=False</em>, <emclass="sig-param">descending_dates=False</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#calcbench.face_statement" title="Permalink to this definition">¶</a></dt>
39
+
<dd><p>Face Statements.</p>
40
+
<p>face statements as reported by the filing company</p>
41
+
<dlclass="field-list simple">
42
+
<dtclass="field-odd">Parameters</dt>
43
+
<ddclass="field-odd"><ulclass="simple">
44
+
<li><p><strong>company_identifier</strong> (<em>string</em>) – a ticker or a CIK code, eg ‘msft’</p></li>
45
+
<li><p><strong>statement_type</strong> (<em>string</em>) – one of (‘income’, ‘balance’, ‘cash’, ‘change-in-equity’, ‘comprehensive-income’)</p></li>
46
+
<li><p><strong>period_type</strong> (<em>string</em>) – ‘annual’ or ‘quarterly’</p></li>
47
+
<li><p><strong>all_periods</strong> (<em>string</em>) – get all history or only the last four, True or False.</p></li>
48
+
<li><p><strong>descending_dates</strong> (<em>bool</em>) – return columns in oldest -> newest order.</p></li>
49
+
</ul>
50
+
</dd>
51
+
<dtclass="field-even">Return type</dt>
52
+
<ddclass="field-even"><p>object</p>
53
+
</dd>
54
+
</dl>
55
+
<p>Returns:
56
+
An object with columns and line items lists. The columns have fiscal_period, period_start, period_end and instant values.
57
+
The line items have label, local_name (the XBRL tag name), tree_depth (the indent amount), is_subtotal (whether or not the line item is computed from above metrics) and facts.
58
+
The facts are in the same order as the columns and have fact_ids (an internal Calcbench ID), unit_of_measure (USD etc), effective_value (the reported value), and format_type.</p>
0 commit comments