pub struct TickMidpoint {
pub timestamp: OffsetDateTime,
pub price: f64,
pub size: i32,
}Expand description
The historical tick’s description. Used when requesting historical tick data with whatToShow = MIDPOINT
Fields§
§timestamp: OffsetDateTimetimestamp of the historical tick.
price: f64historical tick price.
size: i32historical tick size
Trait Implementations§
Source§impl Clone for TickMidpoint
impl Clone for TickMidpoint
Source§fn clone(&self) -> TickMidpoint
fn clone(&self) -> TickMidpoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TickMidpoint
impl Debug for TickMidpoint
Source§impl<'de> Deserialize<'de> for TickMidpoint
impl<'de> Deserialize<'de> for TickMidpoint
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
Source§impl PartialEq for TickMidpoint
impl PartialEq for TickMidpoint
Source§impl Serialize for TickMidpoint
impl Serialize for TickMidpoint
Source§impl TickDecoder<TickMidpoint> for TickMidpoint
impl TickDecoder<TickMidpoint> for TickMidpoint
Source§const MESSAGE_TYPE: IncomingMessages = IncomingMessages::HistoricalTick
const MESSAGE_TYPE: IncomingMessages = IncomingMessages::HistoricalTick
Message discriminator emitted by TWS for this tick type.
Source§fn decode(
message: &mut ResponseMessage,
) -> Result<(Vec<TickMidpoint>, bool), Error>
fn decode( message: &mut ResponseMessage, ) -> Result<(Vec<TickMidpoint>, bool), Error>
Decode a batch of ticks, returning the payload and an end-of-stream flag.
impl Copy for TickMidpoint
impl StructuralPartialEq for TickMidpoint
Auto Trait Implementations§
impl Freeze for TickMidpoint
impl RefUnwindSafe for TickMidpoint
impl Send for TickMidpoint
impl Sync for TickMidpoint
impl Unpin for TickMidpoint
impl UnwindSafe for TickMidpoint
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