Module bar

Source
Expand description

Bar aggregate structures, data types and functionality.

Structs§

Bar
Represents an aggregated bar.
BarSpecification
Represents a bar aggregation specification including a step, aggregation method/rule and price type.
BarSpecificationBuilder
Builder for BarSpecification.
BarTypeParseError

Enums§

BarSpecificationBuilderError
Error type for BarSpecificationBuilder
BarType
Represents a bar type including the instrument ID, bar specification and aggregation source.

Functions§

get_bar_interval
Returns the bar interval as a TimeDelta.
get_bar_interval_ns
Returns the bar interval as UnixNanos.
get_time_bar_start
Returns the time bar start as a timezone-aware DateTime<Utc>. Returns the time bar start as a timezone-aware DateTime<Utc>.