portfolio

package
v0.0.0-...-b8850bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 6 Imported by: 1

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL