pub struct GetMdHistoryRequestQuery {
pub conid: i32,
pub period: String,
pub bar: String,
pub exchange: Option<String>,
pub outside_rth: Option<bool>,
pub start_time: Option<String>,
pub direction: Option<GetMdHistoryRequestQueryDirection>,
pub source: Option<String>,
}Fields§
§conid: i32IB contract ID of the requested instrument.
- Example:
265_598i32
period: StringA time duration away from startTime into the future to be divided into bars of the specified width. Supported Period Sizes
min- Minutesh- Hour(s)d- Day(s)w- Week(s)m- Month(s)y- Year(s)
- Example:
"6d".to_string()
bar: StringThe width of the bars into which the interval determined by period and startTime will be divided. It is not required that bar evenly divide period; partial bars can be returned. Supported Bar Sizes
S- Second(s)min- Minute(s)h- Hour(s)d- Day(s)w- Week(s)m- Month(s)
- Example:
"5min".to_string()
exchange: Option<String>Exchange (or SMART) from which data is requested.
- Example:
Some("NASDAQ".to_string())
outside_rth: Option<bool>Indicates whether data outside of regular trading hours should be included in response.
start_time: Option<String>A fixed UTC date-time reference point for the historical data request, from which the specified period extends. Format is YYYYMMDD-hh:mm:ss. If omitted, the current time is used, and direction must be omitted or 1.
- Example:
Some("20231018-16:00:00".to_string())
direction: Option<GetMdHistoryRequestQueryDirection>Indicates whether data should begin or end at the start time.
-1- Historical data will begin away from the start time, ending at the current time/startTime.1- Historical data begins at the start time, moving towards the current time. Only supported when startTime is included.
source: Option<String>The type of data to be returned in the historical bars. Supported Bar Sizes
Bid_Ask- The OHLC bid/ask values.Last- The OHLC trade values.Midpoint- The OHLC of the Bid-Ask midpoint.
- Example:
Some("Midpoint".to_string())
Trait Implementations§
Source§impl Clone for GetMdHistoryRequestQuery
impl Clone for GetMdHistoryRequestQuery
Source§fn clone(&self) -> GetMdHistoryRequestQuery
fn clone(&self) -> GetMdHistoryRequestQuery
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GetMdHistoryRequestQuery
impl Debug for GetMdHistoryRequestQuery
Source§impl Default for GetMdHistoryRequestQuery
impl Default for GetMdHistoryRequestQuery
Source§impl PartialEq for GetMdHistoryRequestQuery
impl PartialEq for GetMdHistoryRequestQuery
Source§impl Serialize for GetMdHistoryRequestQuery
impl Serialize for GetMdHistoryRequestQuery
Source§impl Validate for GetMdHistoryRequestQuery
impl Validate for GetMdHistoryRequestQuery
Source§impl<'v_a> ValidateArgs<'v_a> for GetMdHistoryRequestQuery
impl<'v_a> ValidateArgs<'v_a> for GetMdHistoryRequestQuery
impl StructuralPartialEq for GetMdHistoryRequestQuery
Auto Trait Implementations§
impl Freeze for GetMdHistoryRequestQuery
impl RefUnwindSafe for GetMdHistoryRequestQuery
impl Send for GetMdHistoryRequestQuery
impl Sync for GetMdHistoryRequestQuery
impl Unpin for GetMdHistoryRequestQuery
impl UnsafeUnpin for GetMdHistoryRequestQuery
impl UnwindSafe for GetMdHistoryRequestQuery
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
§fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
§fn set_request_id<M>(
self,
header_name: HeaderName,
make_request_id: M,
) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
fn set_request_id<M>(
self,
header_name: HeaderName,
make_request_id: M,
) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
§fn set_x_request_id<M>(self, make_request_id: M) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
fn set_x_request_id<M>(self, make_request_id: M) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
x-request-id as the header name. Read more§fn propagate_request_id(
self,
header_name: HeaderName,
) -> PropagateRequestId<Self>where
Self: Sized,
fn propagate_request_id(
self,
header_name: HeaderName,
) -> PropagateRequestId<Self>where
Self: Sized,
§fn propagate_x_request_id(self) -> PropagateRequestId<Self>where
Self: Sized,
fn propagate_x_request_id(self) -> PropagateRequestId<Self>where
Self: Sized,
x-request-id as the header name. Read more§fn request_body_limit(self, limit: usize) -> RequestBodyLimit<Self>where
Self: Sized,
fn request_body_limit(self, limit: usize) -> RequestBodyLimit<Self>where
Self: Sized,
413 Payload Too Large responses. Read more