Documentation
¶
Index ¶
- func Register(typeName string, factory Factory)
- type Config
- type Engine
- type Factory
- type StrategyActorBase
- func (s *StrategyActorBase) CancelAllOrders(accountID int, symbolID int)
- func (s *StrategyActorBase) CancelOrder(clientOrderID int, accountID int)
- func (s *StrategyActorBase) GetCatalog() *catalog.Catalog
- func (s *StrategyActorBase) ReqHistoricalKline(symbolID int, interval common.Interval, startTimeNs, endTimeNs uint64, ...)
- func (s *StrategyActorBase) SubmitOrder(accountID int, symbolID int, side common.Side, orderType common.OrderType, ...) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine manages the lifecycle of multiple strategy actors. It constructs actors from config entries using the factory registry, registers them with the MsgBus, and manages their lifecycle.
type StrategyActorBase ¶
func NewStrategyActorBase ¶
func (*StrategyActorBase) CancelAllOrders ¶
func (s *StrategyActorBase) CancelAllOrders(accountID int, symbolID int)
func (*StrategyActorBase) CancelOrder ¶
func (s *StrategyActorBase) CancelOrder(clientOrderID int, accountID int)
func (*StrategyActorBase) GetCatalog ¶
func (s *StrategyActorBase) GetCatalog() *catalog.Catalog
func (*StrategyActorBase) ReqHistoricalKline ¶
func (s *StrategyActorBase) ReqHistoricalKline(symbolID int, interval common.Interval, startTimeNs, endTimeNs uint64, limit int)
ReqHistoricalKline requests historical candles. The data engine publishes TopicEventRespHistoricalKline when the HTTP response is ready. startTimeNs/endTimeNs are nanoseconds; 0 omits that bound. limit 0 uses venue default.
func (*StrategyActorBase) SubmitOrder ¶
Click to show internal directories.
Click to hide internal directories.