yahoofinancials icon indicating copy to clipboard operation
yahoofinancials copied to clipboard

get currency denomination for statements

Open windowpane opened this issue 5 years ago • 0 comments

Currently the get_financial_stmts() function has no way to let someone know what currency is being used for reporting. Yahoo finance sometimes reports financial statements in USD, CNY, RUB, and other currencies.

It would be a nice feature to also return what currency the income/cash/balance statements are reported in.

image

Relevant html snippet:

<span data-reactid="27">
<!-- react-text: 28 -->Currency in CNY. <!-- /react-text -->
<span data-reactid="29">All numbers in thousands</span>
</span>

It would be nice to include the denomination in the returned results.

e.g.,

{
'incomeStatementHistoryQuarterly': {
    'TICKER':  [ 
       {'2019-03-31': {
          'researchDevelopment': 30383000000,
          'effectOfAccountingCharges': None,
          'incomeBeforeTax': 1146941338000,
          'minorityInterest': 3299552533000,
            ....,
          'reportingCurrency': CNY }
       {'2018-12-31': {  ... } },
        ...
],
    'TICKER2': ...
 ...
}

windowpane avatar Aug 19 '19 02:08 windowpane