Go library for getting current and historical exchange rates, Forex and Crypto currency conversion with no authentication using Free foreign exchange rates API
Hey!
I am just checking this lib for my company but there is something that its clear for me.
Is there a reason why ex.ConvertTo("BTC", 10) takes integers instead of float or float64?
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)
}