-
Notifications
You must be signed in to change notification settings - Fork 99
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
Docs don't show how to use the forex.Quote #5
Comments
Maybe some lines in the documentation that the symbols are like |
Hey @jrmiller82, check out https://godoc.org/github.com/piquette/finance-go/forex for the exposed functions in the forex package. They are:
List returns a forex.Iter struct that can be used like- symbols := []string{"GBPUSD=X", "AUDUSD=X"}
iter := forex.List(symbols)
for iter.Next() {
pairQuote := iter.ForexPair()
fmt.Println(pairQuote)
}
if iter.Err() != nil {
fmt.Println(iter.Err())
} The forex symbols can be found at https://finance.yahoo.com/currencies. But you're right, I need to include some more information. Make sure you're using the tip of master, it is stable. Use |
I can't get the forex.Quote("EURUSD") function to work. Am I not specifying the symbol correctly?
The text was updated successfully, but these errors were encountered: