Skip to content

Commit

Permalink
User Universal Transfer bug fix (#319)
Browse files Browse the repository at this point in the history
* added user universal transfer method to Binance Spot

* bug fixed: changed  types into type body field inside user universal transfer method

* fixed test on User Universal Transfer
  • Loading branch information
amaioli committed Oct 9, 2021
1 parent 13013b3 commit caa1c40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion v2/user_universal_transfer.go
Expand Up @@ -63,7 +63,8 @@ func (s *CreateUserUniversalTransferService) Do(ctx context.Context) (*CreateUse
endpoint: "/sapi/v1/asset/transfer",
secType: secTypeSigned,
}
r.setParam("types", s.types)

r.setParam("type", s.types)
r.setParam("asset", s.asset)
r.setParam("amount", s.amount)
if v := s.fromSymbol; v != nil {
Expand Down
2 changes: 1 addition & 1 deletion v2/user_universal_transfer_test.go
Expand Up @@ -31,7 +31,7 @@ func (s *userUniversalTransferTestSuite) TestUserUniversalTransfer() {

s.assertReq(func(r *request) {
e := newSignedRequest().setParams(params{
"types": types,
"type": types,
"asset": asset,
"amount": amount,
"fromSymbol": fromSymbol,
Expand Down

0 comments on commit caa1c40

Please sign in to comment.