Skip to content

Commit 86c95ca

Browse files
committed
fix MarginBorrowRepayService
1 parent 3d3dd48 commit 86c95ca

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

v2/margin_service.go

+5-10
Original file line numberDiff line numberDiff line change
@@ -240,18 +240,13 @@ func (s *MarginBorrowRepayService) Do(ctx context.Context, opts ...RequestOption
240240
secType: secTypeSigned,
241241
}
242242
m := params{
243-
"asset": s.asset,
244-
"amount": s.amount,
245-
"type": string(s._type),
243+
"asset": s.asset,
244+
"isIsolated": s.isIsolated,
245+
"symbol": s.symbol,
246+
"amount": s.amount,
247+
"type": string(s._type),
246248
}
247249
r.setFormParams(m)
248-
if s.isIsolated {
249-
r.setParam("isIsolated", "TRUE")
250-
}
251-
if s.symbol != "" {
252-
r.setParam("symbol", s.symbol)
253-
}
254-
255250
res = new(TransactionResponse)
256251
data, err := s.c.callAPI(ctx, r, opts...)
257252
if err != nil {

0 commit comments

Comments
 (0)