Documentation ¶
Index ¶
- Constants
- Variables
- type Actions
- type Adjust
- func (adj *Adjust) Accum(tbk io.TimeBucketKey, _ *functions.ArgumentMap, cols io.ColumnInterface) (*io.ColumnSeries, error)
- func (adj *Adjust) GetInitArgs() []io.DataShape
- func (adj *Adjust) GetOptionalArgs() []io.DataShape
- func (adj *Adjust) GetRequiredArgs() []io.DataShape
- func (adj *Adjust) New(_ *functions.ArgumentMap, args ...interface{}) (uda.AggInterface, error)
- func (adj *Adjust) Output() *io.ColumnSeries
- type CARows
- type CacheKey
- type RateChange
- type RateChangeCache
- type RateChangeGetter
Constants ¶
View Source
const CacheLifetime = 24 * time.Hour
Variables ¶
View Source
var RateChangeCacheMap = map[CacheKey]RateChangeCache{}
View Source
var (
RounderNum = math.Pow(decimal, roundToDecimals)
)
Functions ¶
This section is empty.
Types ¶
type Actions ¶
type Actions struct { Symbol string Tbk *io.TimeBucketKey Rows *CARows }
func NewCorporateActions ¶
func (*Actions) RateChangeEvents ¶
func (act *Actions) RateChangeEvents(includeSplits, includeDividends bool) []RateChange
type Adjust ¶
type Adjust struct { uda.AggInterface AdjustDividend bool AdjustSplit bool CatalogDir *catalog.Directory // contains filtered or unexported fields }
func (*Adjust) Accum ¶
func (adj *Adjust) Accum(tbk io.TimeBucketKey, _ *functions.ArgumentMap, cols io.ColumnInterface, ) (*io.ColumnSeries, error)
func (*Adjust) GetInitArgs ¶
func (*Adjust) GetOptionalArgs ¶
func (*Adjust) GetRequiredArgs ¶
func (*Adjust) New ¶
func (adj *Adjust) New(_ *functions.ArgumentMap, args ...interface{}) (uda.AggInterface, error)
func (*Adjust) Output ¶
func (adj *Adjust) Output() *io.ColumnSeries
type CARows ¶
type CARows struct { EntryDates []int64 TextNumbers []int64 UpdateTextNumbers []int64 DeleteTextNumbers []int64 NotificationTypes []byte Statuses []byte UpdatedNotificationTypes []byte SecurityTypes []byte VoluntaryMandatoryCodes []byte EffectiveDates []int64 RecordDates []int64 ExpirationDates []int64 NewRates []float64 OldRates []float64 Rates []float64 }
func CARowsFromColumnSeries ¶ added in v4.1.18
func CARowsFromColumnSeries(cs *io.ColumnSeries) (*CARows, error)
type RateChange ¶
type RateChange struct { Textnumber int64 Epoch int64 Type enum.NotificationType Rate float64 }
func GetRateChanges ¶
func GetRateChanges(symbol string, includeSplits, includeDividends bool, catalogDir *catalog.Directory, ) []RateChange
type RateChangeCache ¶
type RateChangeCache struct { Changes []RateChange Access int64 CreatedAt time.Time }
type RateChangeGetter ¶
type RateChangeGetter func(string, bool, bool) []RateChange
Click to show internal directories.
Click to hide internal directories.