#[repr(C)]pub enum BarAggregation {
Show 16 variants
Tick = 1,
TickImbalance = 2,
TickRuns = 3,
Volume = 4,
VolumeImbalance = 5,
VolumeRuns = 6,
Value = 7,
ValueImbalance = 8,
ValueRuns = 9,
Millisecond = 10,
Second = 11,
Minute = 12,
Hour = 13,
Day = 14,
Week = 15,
Month = 16,
}
Expand description
The aggregation method through which a bar is generated and closed.
Variants§
Tick = 1
Based on a number of ticks.
TickImbalance = 2
Based on the buy/sell imbalance of ticks.
TickRuns = 3
Based on sequential buy/sell runs of ticks.
Volume = 4
Based on traded volume.
VolumeImbalance = 5
Based on the buy/sell imbalance of traded volume.
VolumeRuns = 6
Based on sequential runs of buy/sell traded volume.
Value = 7
Based on the ‘notional’ value of the instrument.
ValueImbalance = 8
Based on the buy/sell imbalance of trading by notional value.
ValueRuns = 9
Based on sequential buy/sell runs of trading by notional value.
Millisecond = 10
Based on time intervals with millisecond granularity.
Second = 11
Based on time intervals with second granularity.
Minute = 12
Based on time intervals with minute granularity.
Hour = 13
Based on time intervals with hour granularity.
Day = 14
Based on time intervals with day granularity.
Week = 15
Based on time intervals with week granularity.
Month = 16
Based on time intervals with month granularity.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for BarAggregation
impl AsRef<str> for BarAggregation
Source§impl Clone for BarAggregation
impl Clone for BarAggregation
Source§fn clone(&self) -> BarAggregation
fn clone(&self) -> BarAggregation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for BarAggregation
impl Debug for BarAggregation
Source§impl<'de> Deserialize<'de> for BarAggregation
impl<'de> Deserialize<'de> for BarAggregation
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Display for BarAggregation
impl Display for BarAggregation
Source§impl FromStr for BarAggregation
impl FromStr for BarAggregation
Source§impl Hash for BarAggregation
impl Hash for BarAggregation
Source§impl IntoEnumIterator for BarAggregation
impl IntoEnumIterator for BarAggregation
type Iterator = BarAggregationIter
fn iter() -> BarAggregationIter ⓘ
Source§impl IntoPy<Py<PyAny>> for BarAggregation
impl IntoPy<Py<PyAny>> for BarAggregation
Source§impl Ord for BarAggregation
impl Ord for BarAggregation
Source§fn cmp(&self, other: &BarAggregation) -> Ordering
fn cmp(&self, other: &BarAggregation) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for BarAggregation
impl PartialEq for BarAggregation
Source§impl PartialOrd for BarAggregation
impl PartialOrd for BarAggregation
Source§impl PyClass for BarAggregation
impl PyClass for BarAggregation
Source§impl PyClassImpl for BarAggregation
impl PyClassImpl for BarAggregation
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
Source§type ThreadChecker = SendablePyClass<BarAggregation>
type ThreadChecker = SendablePyClass<BarAggregation>
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
PyAny
by default, and when you declare
#[pyclass(extends=PyDict)]
, it’s PyDict
.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
Source§impl PyClassNewTextSignature<BarAggregation> for PyClassImplCollector<BarAggregation>
impl PyClassNewTextSignature<BarAggregation> for PyClassImplCollector<BarAggregation>
fn new_text_signature(self) -> Option<&'static str>
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a BarAggregation
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a BarAggregation
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut BarAggregation
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut BarAggregation
Source§impl PyMethods<BarAggregation> for PyClassImplCollector<BarAggregation>
impl PyMethods<BarAggregation> for PyClassImplCollector<BarAggregation>
fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for BarAggregation
impl PyTypeInfo for BarAggregation
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
§fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
§fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
object
is an instance of this type or a subclass of this type.§fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool
fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool
object
is an instance of this type.Source§impl Serialize for BarAggregation
impl Serialize for BarAggregation
Source§impl TryFrom<&str> for BarAggregation
impl TryFrom<&str> for BarAggregation
impl Copy for BarAggregation
impl Eq for BarAggregation
impl StructuralPartialEq for BarAggregation
Auto Trait Implementations§
impl Freeze for BarAggregation
impl RefUnwindSafe for BarAggregation
impl Send for BarAggregation
impl Sync for BarAggregation
impl Unpin for BarAggregation
impl UnwindSafe for BarAggregation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> FromPyObject<'_> for Twhere
T: PyClass + Clone,
impl<T> FromPyObject<'_> for Twhere
T: PyClass + Clone,
§fn extract_bound(obj: &Bound<'_, PyAny>) -> Result<T, PyErr>
fn extract_bound(obj: &Bound<'_, PyAny>) -> Result<T, PyErr>
§impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
§fn from_py_object_bound(ob: Borrowed<'_, 'py, PyAny>) -> Result<T, PyErr>
fn from_py_object_bound(ob: Borrowed<'_, 'py, PyAny>) -> Result<T, PyErr>
§impl<T> PyErrArguments for T
impl<T> PyErrArguments for T
§impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
Source§impl<T> Separable for Twhere
T: Display,
impl<T> Separable for Twhere
T: Display,
Source§fn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String
fn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String
SeparatorPolicy
. Read more