Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PortfolioClient ¶
type PortfolioClient struct {
// contains filtered or unexported fields
}
func NewPortfolioClient ¶
func NewPortfolioClient(portfolio ingenium.Portfolio, strategies []string, opts ...PortfolioOption) *PortfolioClient
func (*PortfolioClient) Close ¶
func (i *PortfolioClient) Close()
func (*PortfolioClient) SendOrder ¶
func (i *PortfolioClient) SendOrder(order ingenium.OrderEvent)
type PortfolioOption ¶
type PortfolioOption func(*PortfolioClient)
func WithNatsServer ¶
func WithNatsServer(server string) PortfolioOption
WithNatsServer sets the nats-server address. Default is http://0.0.0.0:4022 or read from env var NATS_SERVER if set
Click to show internal directories.
Click to hide internal directories.