浏览代码

BTC306

- tests
Alexey Kim 6 月之前
父节点
当前提交
e2ea194523
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. 13 0
      strategy/btc306_test.go

+ 13 - 0
strategy/btc306_test.go

@@ -214,6 +214,19 @@ func Test__ibkr_ShouldClosePositions(t *testing.T) {
 			},
 			want: nil,
 		},
+		{
+			args: args{
+				portfolio: newStubPortfolio(
+					PositionStub{
+						symbol: "569311092",
+						size:   10938,
+						price:  8.24685045,
+					}),
+				proba: 0.9972525825782994,
+				time:  "2024-09-03T04:00:00Z",
+			},
+			want: []string{"569311092"},
+		},
 	}
 
 	for _, tt := range tests {