Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
dirname committed May 13, 2021
1 parent 0c5d945 commit 54c2cfd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
19 changes: 13 additions & 6 deletions spot/client/trade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,14 @@ func TestTradeClient_GetAllOCOOrder(t1 *testing.T) {
formID: 0,
startTime: 0,
endTime: 0,
limit: 400,
limit: 4100,
recv: 1000,
}, model.APIErrorResponse{Code: -2014, Message: "API-key format invalid."}, false},
{"TestTradeClient_GetAllOCOOrder", fields{binance.NewPrivateUrlBuilder(config.SpotRestHost, "", "")}, args{
formID: 0,
startTime: 0,
endTime: 0,
limit: -4100,
recv: 1000,
}, model.APIErrorResponse{Code: -2014, Message: "API-key format invalid."}, false},
// TODO: Add test cases.
Expand Down Expand Up @@ -894,11 +901,11 @@ func TestTradeClient_NewOCO(t1 *testing.T) {
stopClientOrderId: "test",
stopLimitTimeInForce: "",
newOrderRespType: "test",
quantity: decimal.Decimal{},
price: decimal.Decimal{},
limitIcebergQty: decimal.Decimal{},
stopPrice: decimal.Decimal{},
stopLimitPrice: decimal.NewFromInt(100),
quantity: decimal.NewFromInt(1),
price: decimal.NewFromInt(1),
limitIcebergQty: decimal.NewFromInt(1),
stopPrice: decimal.NewFromInt(1),
stopLimitPrice: decimal.NewFromInt(1),
stopIcebergQty: decimal.Decimal{},
recv: 0,
}, false, true},
Expand Down
7 changes: 7 additions & 0 deletions spot/client/wallet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ func TestWalletClient_AccountDividendRecord(t *testing.T) {
limit: -10,
recv: 10,
}, nil, false},
{"TestWalletClient_AccountDividendRecord", fields{binance.NewPrivateUrlBuilder("", "", "")}, args{
asset: "test",
startTime: 10,
endTime: 10,
limit: -10,
recv: 10,
}, nil, true},
// TODO: Add test cases.
}
for _, tt := range tests {
Expand Down

0 comments on commit 54c2cfd

Please sign in to comment.