This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
json: cannot unmarshal string into Go struct field Quote.quote.latestPrice of type float64 #64
Comments
Looks like the symbol ADABNB doesn't return all the fields. We should probably update the code to handle JSON response with only partial data. JSON response for
|
you can add e.g. // Quote models the data returned from the IEX Cloud /quote endpoint.
type Quote struct {
Symbol string `json:"symbol,omitempty" |
lfaoro
added a commit
to lfaoro/iexcloud
that referenced
this issue
Aug 19, 2021
fix goinvest#64 certain symbols don't return all the data e.g. "ADABNB" using the 'omitempty' tag, the unmarshaler will not error out if a field is missing Signed-off-by: Leonardo Faoro <lfaoro@gmail.com>
lfaoro
added a commit
to lfaoro/iexcloud
that referenced
this issue
Aug 19, 2021
fix goinvest#64 certain symbols don't return all the data e.g. "ADABNB" using the 'omitempty' tag, the unmarshaler will not error out if a field is missing Signed-off-by: Leonardo Faoro <lfaoro@gmail.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When I try to execute:
I receive error:
The original message from IEXCloud is:
The text was updated successfully, but these errors were encountered: