We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
More information about this issue can be found in the following PR comment
A/C
map[string]interface{}
GetAsString
GetAsFloat
The text was updated successfully, but these errors were encountered:
After some thoughts I think the best way would be to make the user pass a response object that we would populate.
currently the user need to do something like this:
newton := newton.New("", "") q := &query.OpenOrders{} response, _ := newton.Do(q) resp := response.Body.(*query.OpenOrdersResponse) fmt.Println((*resp)[0].Price)
Which I think is not ideal, a better way to do this would be:
newton := newton.New("", "") q := &query.OpenOrders{} r := query.OpenOrdersResponse{} responseCode, _ := newton.Do(q,&r) fmt.Println(r[0].Price)
What you think about this @akhtariev ?
Sorry, something went wrong.
That looks good to me. Maybe we could even make it as part of a response package? So it would be:
response
r := response.OpenOrders{}
Yes great idea, I will work on this when I have some spare time.
No branches or pull requests
More information about this issue can be found in the following PR comment
A/C
map[string]interface{}
GetAsString
andGetAsFloat
implementedThe text was updated successfully, but these errors were encountered: