Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StrategyClient ¶
type StrategyClient struct {
// contains filtered or unexported fields
}
func NewStrategyClient ¶
func NewStrategyClient(strategy ingenium.Strategy, symbols []string, opts ...StrategyOption) *StrategyClient
func (*StrategyClient) Close ¶
func (c *StrategyClient) Close()
func (*StrategyClient) SendSignalEvent ¶
func (c *StrategyClient) SendSignalEvent(e ingenium.SignalEvent) error
type StrategyOption ¶
type StrategyOption func(*StrategyClient)
func WithNatsServer ¶
func WithNatsServer(server string) StrategyOption
WithNatsServer sets the nats-server address. Default is http://0.0.0.0:4022
Click to show internal directories.
Click to hide internal directories.