agents

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BarHistoryResults

type BarHistoryResults struct {
	DataSourceID      int
	Ticker            string
	Interval          interval.Interval
	IntervalStart     time.Time
	IntervalEnd       time.Time
	FirstBarTimestamp time.Time
	BarGroups         []*ent.BarGroupCreate
	Bars              [][]*ent.BarRecordCreate
	BarCount          int
}

type BarRequester

type BarRequester interface {
	DataSourceId() int
	Name() string
	MaxTimeRange(intervalValue interval.Interval) (start time.Time, end time.Time)
	BarRequest(ctx context.Context, ticker string, intervalValue interval.Interval, start, end time.Time) (*BarHistoryResults, error)
}

type DividendRequester

type DividendRequester interface {
	Name() string
	DividendRequest(ctx context.Context, ticker string, start, end time.Time) ([]*ent.DividendCreate, []time.Time, error)
}

type EntitySearchResults

type EntitySearchResults struct {
	Ticker string
	Name   string
}

type EntitySearcher

type EntitySearcher interface {
	EntitySearch(ctx context.Context, ticker string, limit int) ([]EntitySearchResults, error)
	Entity(ctx context.Context, ticker string) (*ent.EntityCreate, error)
}

type MarketHoursRequester

type MarketHoursRequester interface {
	Name() string
	MarketHoursRequest(ctx context.Context, start, end time.Time) ([]*ent.MarketHoursCreate, []time.Time, error)
}

type SplitRequester

type SplitRequester interface {
	Name() string
	SplitRequest(ctx context.Context, ticker string, start, end time.Time) ([]*ent.SplitCreate, []time.Time, error)
}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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