-
Notifications
You must be signed in to change notification settings - Fork 678
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
add sub transfer history API #461
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add unit test as well, thanks!
chatgpt |
Code Review: This pull request adds two new services to the Binance API client: The The Both services seem to be useful additions that provide more functionality to users of the Binance API client, so the changes seem good. |
chatgpt: please tell me if there is any improvement for the code:
|
AI Code Review: The code seems okay but there is one possible improvement that can be made. The Size method is setting the The correct implementation should be:
Another suggestion is to add error handling in case the endpoint is not set correctly in the switch statement. This would ensure that the code handles unexpected cases and returns a meaningful error message. |
r.setParam("current", *s.current) | ||
} | ||
if s.size != nil { | ||
r.setParam("size", *s.current) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you intend to use *s.size
?
chatgpt: please tell me if there is any improvement in following code:
|
AI Code Review: I cannot determine if there are any bugs in this code as it is only a code snippet and does not include any information about the variables or functions it interacts with. |
AI Code Review: The code looks good, but here are a few minor suggestions:
func (s *SubTransferHistoryService) Do(ctx context.Context) ([]*SubTransfer, error) { Other than that, the code seems to follow Go's idiomatic style and is well-structured. |
What is the problem?
Need to add new API to get transfer history
https://binance-docs.github.io/apidocs/spot/en/#transfer-to-master-for-sub-account