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
I'm trying to get enterprise value for ticker AMX.
The Enterprise Value(data.defaultKeyStatistics.enterpriseValue) returned by above call is 1621,345,566,720 (1621B) but as per Yahoo Finance web UI the value is 77.86B which is close if I consider 1621B as MXN and convert them to USD, the numbers are close.
The attribute data.financialData.financialCurrency is MXN; So, my guess is that I should convert other values to USD by multiplying with the exchange rate from MXN to USD.
However, same is not true for other parameters which are present in data.financialData
data.finanialData.ebitda - 276B without any exchange rate conversion and is close to the number on Yahoo Finance UI
same is true for totalDebt. No conversion required. Even the stock price is shown in USD.
Is there any way to specify which currency we want for all the data?
Minimal Reproduction
let data = await yahooFinance.quoteSummary('AMX', {modules: ['price', 'defaultKeyStatistics', 'financialData']})
Environment
Browser or Node: Node
Node version (if applicable):
Npm version:
Browser verion (if applicable):
Library version (e.g. 1.10.1):
Additional Context
The text was updated successfully, but these errors were encountered:
Bug Report
Describe the bug
I'm trying to get enterprise value for ticker AMX.
The Enterprise Value(data.defaultKeyStatistics.enterpriseValue) returned by above call is 1621,345,566,720 (1621B) but as per Yahoo Finance web UI the value is 77.86B which is close if I consider 1621B as MXN and convert them to USD, the numbers are close.
The attribute data.financialData.financialCurrency is MXN; So, my guess is that I should convert other values to USD by multiplying with the exchange rate from MXN to USD.
However, same is not true for other parameters which are present in data.financialData
data.finanialData.ebitda - 276B without any exchange rate conversion and is close to the number on Yahoo Finance UI
same is true for totalDebt. No conversion required. Even the stock price is shown in USD.
Is there any way to specify which currency we want for all the data?
Minimal Reproduction
Environment
Browser or Node: Node
Node version (if applicable):
Npm version:
Browser verion (if applicable):
Library version (e.g.
1.10.1
):Additional Context
The text was updated successfully, but these errors were encountered: