Skip to content
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

Update v5_asset_service.go #177

Merged
merged 1 commit into from
Jun 28, 2024
Merged

Update v5_asset_service.go #177

merged 1 commit into from
Jun 28, 2024

Conversation

grkamil
Copy link
Contributor

@grkamil grkamil commented Jun 28, 2024

https://bybit-exchange.github.io/docs/v5/asset/unitransfer

It should be fromMemberId, not fromMemberID (and toMemberId, not toMemberID)

Also, fromAccountType can be equal to toAccountType

e.g you can transfer from one spot subaccount to another spot subaccount

https://bybit-exchange.github.io/docs/v5/asset/unitransfer

It should be fromMemberId, not fromMemberID (and toMemberId, not toMemberID)

Also, fromAccountType can be equal to toAccountType

e.g you can transfer from one spot subaccount to another spot subaccount
Comment on lines -171 to -173
if p.FromAccountType == p.ToAccountType {
return fmt.Errorf("toAccountType and fromAccountType must differ")
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines -153 to +154
FromMemberID int `json:"fromMemberID"`
ToMemberID int `json:"toMemberID"`
FromMemberID int `json:"fromMemberId"`
ToMemberID int `json:"toMemberId"`
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Owner

@hirokisan hirokisan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution!

@hirokisan hirokisan merged commit 7b1d4c2 into hirokisan:main Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants