#[non_exhaustive]pub struct TradePage {
pub trades: Vec<Tick>,
pub end_of_history: bool,
pub continue_before: Option<DateTime<Utc>>,
}Expand description
One page of trades. A page without trades ends scroll-back like end_of_history does, unless
it names where older trades continue with continue_before.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.trades: Vec<Tick>Oldest first; trades sharing a time keep their order. They feed order flow only: bars come
from Datafeed::history. The chart drops invalid trades and takes as many as its trade
store has room for, up to the oldest trade it holds: later ones are left to the live stream.
A trade with an id the chart already holds is dropped, so history and live
trades join exactly when both carry ids. Without ids, only trades older than every held
trade are taken, and live trades at or before the newest trade a page added are dropped:
trades at the boundary instant may be lost, never counted twice.
end_of_history: boolNothing exists before the oldest returned trade.
continue_before: Option<DateTime<Utc>>On a page without trades: older trades exist, and the chart asks again for those before
this instant, which must be earlier than request.before; see
HistoryPage::continue_before.
Implementations§
Trait Implementations§
impl StructuralPartialEq for TradePage
Auto Trait Implementations§
impl Freeze for TradePage
impl RefUnwindSafe for TradePage
impl Send for TradePage
impl Sync for TradePage
impl Unpin for TradePage
impl UnsafeUnpin for TradePage
impl UnwindSafe for TradePage
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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