소스 검색

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 {