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

MYR/USD returning nil #2

Open
cryptoknight2021 opened this issue Jun 14, 2021 · 1 comment
Open

MYR/USD returning nil #2

cryptoknight2021 opened this issue Jun 14, 2021 · 1 comment

Comments

@cryptoknight2021
Copy link

MYR/USD returning nil for now. This has been working for the past week.

func checkForex() (fr *big.Float) {
// Create a new Exchange instance and set USD as the base currency for the exchange rates and conversion
ex := exchange.New("USD")
// convert 1 USD to MYR
// fmt.Println(ex.ConvertTo("MYR", 1))
fr, err := ex.ConvertTo("MYR", 1)
if err != nil {
fmt.Println(err)
return
}
return (fr)
}

@rehhouari
Copy link

rehhouari commented Oct 1, 2021

Hey, this repository is not maintained
I forked it and made little changes
I tried this code snippet and it worked

https://github.com/rehhouari/exchange

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants