Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconcistent Currency Application #853

Open
jbuddha opened this issue Dec 29, 2024 · 0 comments
Open

Inconcistent Currency Application #853

jbuddha opened this issue Dec 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jbuddha
Copy link

jbuddha commented Dec 29, 2024

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

 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

@jbuddha jbuddha added the bug Something isn't working label Dec 29, 2024
@jbuddha jbuddha changed the title Inconcistent Currencies Conversion Inconcistent Currency Application Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant