Struct MLFeatures

Source
pub struct MLFeatures {
Show 33 fields pub spread: Decimal, pub mid_price: Decimal, pub order_imbalance: Decimal, pub queue_imbalance: Decimal, pub liquidity_shocks: Decimal, pub order_book_pressure: Decimal, pub order_book_entropy: Decimal, pub weighted_imbalance: Decimal, pub book_slope: Decimal, pub vpin: Decimal, pub trade_intensity: Decimal, pub mid_price_volatility: Decimal, pub order_cancel_estimated_rate: Decimal, pub order_book_imbalance: Decimal, pub order_book_depth: Decimal, pub price_volatility: Decimal, pub decay_rates: Decimal, pub decay_rates_mean: Decimal, pub rolling_price_impact: Decimal, pub harmonic_oscillations: Decimal, pub bursts_in_trading_activity: Decimal, pub asymmetry_index: Decimal, pub volume_to_price_sensitivity: Decimal, pub ofi_simple: Decimal, pub ofi_detailed: Decimal, pub order_book_curvature: Decimal, pub directional_volume_intensity: Decimal, pub price_displacement_ratio: Decimal, pub trade_size_momentum: Decimal, pub imbalance_sensitivity: Decimal, pub volatility_sync_order_flow: Decimal, pub cumulative_market_order_flow: Decimal, pub price_volume_divergence: Decimal,
}
Expand description

Machine learning features container Machine learning features container.

Fields§

§spread: Decimal

The bid-ask spread.

§mid_price: Decimal

The mid-price.

§order_imbalance: Decimal

The order imbalance.

§queue_imbalance: Decimal

The queue imbalance.

§liquidity_shocks: Decimal

The liquidity shocks.

§order_book_pressure: Decimal

The order book pressure.

§order_book_entropy: Decimal

The order book entropy.

§weighted_imbalance: Decimal

The weighted imbalance.

§book_slope: Decimal

The order book slope.

§vpin: Decimal

The Volume-Synchronized Probability of Informed Trading (VPIN).

§trade_intensity: Decimal

The trade intensity.

§mid_price_volatility: Decimal

The mid-price volatility.

§order_cancel_estimated_rate: Decimal

The estimated rate of order cancellations.

§order_book_imbalance: Decimal

The order book imbalance.

§order_book_depth: Decimal

The order book depth.

§price_volatility: Decimal

The price volatility.

§decay_rates: Decimal

The decay rates.

§decay_rates_mean: Decimal

The mean of the decay rates.

§rolling_price_impact: Decimal

The rolling price impact.

§harmonic_oscillations: Decimal

The harmonic oscillations.

§bursts_in_trading_activity: Decimal

The bursts in trading activity.

§asymmetry_index: Decimal

The asymmetry index.

§volume_to_price_sensitivity: Decimal

The volume to price sensitivity.

§ofi_simple: Decimal

The simple Order Flow Imbalance (OFI).

§ofi_detailed: Decimal

The detailed Order Flow Imbalance (OFI).

§order_book_curvature: Decimal

The order book curvature.

§directional_volume_intensity: Decimal

The directional volume intensity.

§price_displacement_ratio: Decimal

The price displacement ratio.

§trade_size_momentum: Decimal

The trade size momentum.

§imbalance_sensitivity: Decimal

The imbalance sensitivity.

§volatility_sync_order_flow: Decimal

The volatility synchronized order flow.

§cumulative_market_order_flow: Decimal

The cumulative market order flow.

§price_volume_divergence: Decimal

The price volume divergence.

Implementations§

Source§

impl MLFeatures

Source

pub fn to_vec(&self) -> Vec<f64>

Convert to feature vector for ML models

Trait Implementations§

Source§

impl Clone for MLFeatures

Source§

fn clone(&self) -> MLFeatures

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MLFeatures

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> ErasedDestructor for T
where T: 'static,