Documentation
¶
Index ¶
- type OBTest
- func (o *OBTest) Handle(ev msgbus.Event, bus *msgbus.MsgBus)
- func (o *OBTest) OnDepthSnapshot(snapshot event.DepthSnapshot)
- func (o *OBTest) OnDepthUpdate(update event.DepthUpdate)
- func (o *OBTest) OnInit(config map[string]any)
- func (o *OBTest) OnRespDepthSnapshot(snapshot event.RespDepthSnapshot)
- func (o *OBTest) OnStart()
- func (o *OBTest) OnStop()
- type OBTestConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OBTest ¶
type OBTest struct {
strategy.StrategyActorBase // Embed StrategyBase for Actor + StrategyCommon
// contains filtered or unexported fields
}
OBTest is a debugging strategy that subscribes to one orderbook and prints debug messages.
func (*OBTest) Handle ¶
Handle overrides StrategyBase.Handle to dispatch events to OBTest's typed callbacks. This is necessary because Go doesn't have virtual method dispatch.
func (*OBTest) OnDepthSnapshot ¶
func (o *OBTest) OnDepthSnapshot(snapshot event.DepthSnapshot)
OnDepthSnapshot processes depth snapshots.
func (*OBTest) OnDepthUpdate ¶
func (o *OBTest) OnDepthUpdate(update event.DepthUpdate)
OnDepthUpdate processes depth updates. Note: Snapshot requests are now handled automatically by DataEngine.
func (*OBTest) OnRespDepthSnapshot ¶
func (o *OBTest) OnRespDepthSnapshot(snapshot event.RespDepthSnapshot)
OnReqDepthSnapshot processes the response to a depth snapshot request.
type OBTestConfig ¶
type OBTestConfig struct {
SymbolUniversalTicker string `yaml:"symbol_universal_ticker"`
}
OBTestConfig is the configuration for the OBTest strategy.
Click to show internal directories.
Click to hide internal directories.