pub struct StepFeeds {
pub reference: Option<f64>,
pub deriv: Option<DerivativesTick>,
pub orderbook: Option<OrderBook>,
pub trades: Option<Vec<TradePrint>>,
pub cross_section: Option<CrossSection>,
}Expand description
One bar’s optional side feeds, as a JSON document.
RunRequest carries the whole run’s feeds as parallel arrays, which only
works when every bar is known up front. A streaming caller has one bar at a
time, so it needs the same information in per-bar shape: this is that shape,
and it deserialises from the same field names a RunRequest element uses.
Every field is optional — an absent feed is simply not supplied to the bar.
Fields§
§reference: Option<f64>Reference-series close for pairwise indicators.
deriv: Option<DerivativesTick>Derivatives tick for derivatives indicators and funding.
orderbook: Option<OrderBook>Order-book snapshot for order-book and spread indicators.
trades: Option<Vec<TradePrint>>Trades that printed within this bar, for trade-flow indicators.
cross_section: Option<CrossSection>Market cross-section for this bar, for breadth indicators.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StepFeeds
impl<'de> Deserialize<'de> for StepFeeds
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StepFeeds
impl RefUnwindSafe for StepFeeds
impl Send for StepFeeds
impl Sync for StepFeeds
impl Unpin for StepFeeds
impl UnsafeUnpin for StepFeeds
impl UnwindSafe for StepFeeds
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more