riskcontrol: add doc to PositionRiskControl

This commit is contained in:
c9s 2023-07-04 21:33:40 +08:00
parent adbb6d7f93
commit 1f98731636
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -10,6 +10,9 @@ import (
"github.com/c9s/bbgo/pkg/types"
)
// PositionRiskControl controls the position with the given hard limit
// TODO: add a decorator for the order executor and move the order submission logics into the decorator
//
//go:generate callbackgen -type PositionRiskControl
type PositionRiskControl struct {
orderExecutor *bbgo.GeneralOrderExecutor