mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
riskcontrol: add doc to PositionRiskControl
This commit is contained in:
parent
adbb6d7f93
commit
1f98731636
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user