Documentation ¶
Index ¶
- Variables
- func SetLogger(logger *zap.Logger)
- type Candles
- func (c *Candles) GetFigi() string
- func (c *Candles) GetPeriod() time.Duration
- func (c *Candles) GetSeries() *techan.TimeSeries
- func (c *Candles) Load(ctx context.Context, from time.Time, to time.Time) error
- func (c *Candles) OnTick(cc *techan.Candle)
- func (c *Candles) RemoveSubscriber(candleChan alex.CandleChan) bool
- func (c *Candles) Subscribe() (candleChan alex.CandleChan, err error)
- func (c *Candles) Unsubscribe(candleChan alex.CandleChan) error
- type Client
- func (c *Client) CreateAccount(name string) alex.Account
- func (c *Client) GetInstrument(figi string) alex.Instrument
- func (c *Client) LoadData(figi string) (err error)
- func (c *Client) Now() time.Time
- func (c *Client) PrintResult()
- func (c *Client) Printf(format string, arg ...any) (n int, err error)
- func (c *Client) Run() error
Constants ¶
This section is empty.
Variables ¶
View Source
var POSITION_NOT_NEED_ORDERS alex.TargetPosition = (*order)(&order{})
Functions ¶
Types ¶
type Candles ¶
type Candles struct {
// contains filtered or unexported fields
}
func NewCandles ¶
func (*Candles) GetSeries ¶
func (c *Candles) GetSeries() *techan.TimeSeries
func (*Candles) RemoveSubscriber ¶
func (c *Candles) RemoveSubscriber(candleChan alex.CandleChan) bool
func (*Candles) Unsubscribe ¶
func (c *Candles) Unsubscribe(candleChan alex.CandleChan) error
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetInstrument ¶
func (c *Client) GetInstrument(figi string) alex.Instrument
func (*Client) PrintResult ¶
func (c *Client) PrintResult()
Click to show internal directories.
Click to hide internal directories.