Commit 8ae121d 1 parent 3228c1a commit 8ae121d Copy full SHA for 8ae121d
File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
package delivery
2
2
3
3
import (
4
+ "strconv"
4
5
"testing"
5
6
6
7
"github.com/stretchr/testify/suite"
@@ -71,15 +72,15 @@ func (s *orderServiceTestSuite) TestCreateOrder() {
71
72
"type" : orderType ,
72
73
"timeInForce" : timeInForce ,
73
74
"quantity" : quantity ,
74
- "reduceOnly" : reduceOnly ,
75
+ "reduceOnly" : strconv . FormatBool ( reduceOnly ) ,
75
76
"price" : price ,
76
77
"newClientOrderId" : newClientOrderID ,
77
78
"stopPrice" : stopPrice ,
78
- "closePosition" : closePosition ,
79
+ "closePosition" : strconv . FormatBool ( closePosition ) ,
79
80
"activationPrice" : activationPrice ,
80
81
"callbackRate" : callbackRate ,
81
82
"workingType" : workingType ,
82
- "priceProtect" : priceProtect ,
83
+ "priceProtect" : strconv . FormatBool ( priceProtect ) ,
83
84
"newOrderRespType" : newOrderResponseType ,
84
85
})
85
86
s .assertRequestEqual (e , r )
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package futures
2
2
3
3
import (
4
4
"context"
5
+ "strconv"
5
6
"testing"
6
7
7
8
"github.com/adshao/go-binance/v2/common"
@@ -69,16 +70,16 @@ func (s *orderServiceTestSuite) TestCreateOrder() {
69
70
"timeInForce" : timeInForce ,
70
71
"positionSide" : positionSide ,
71
72
"quantity" : quantity ,
72
- "reduceOnly" : reduceOnly ,
73
+ "reduceOnly" : strconv . FormatBool ( reduceOnly ) ,
73
74
"price" : price ,
74
75
"newClientOrderId" : newClientOrderID ,
75
76
"stopPrice" : stopPrice ,
76
77
"workingType" : workingType ,
77
78
"activationPrice" : activationPrice ,
78
79
"callbackRate" : callbackRate ,
79
- "priceProtect" : priceProtect ,
80
+ "priceProtect" : strconv . FormatBool ( priceProtect ) ,
80
81
"newOrderRespType" : newOrderResponseType ,
81
- "closePosition" : closePosition ,
82
+ "closePosition" : strconv . FormatBool ( closePosition ) ,
82
83
})
83
84
s .assertRequestEqual (e , r )
84
85
})
You can’t perform that action at this time.
0 commit comments