pub struct SecurityFactsOptions {
pub symbol: String,
pub begin_time: Option<OffsetDateTime>,
pub end_time: Option<OffsetDateTime>,
pub limit: Option<i32>,
}Expand description
Options for crate::SignalContext::security_facts
Fields§
§symbol: StringThe security to query, e.g. AAPL.US or 700.HK. Required.
begin_time: Option<OffsetDateTime>Start of the query window. If omitted, the query includes the earliest available data.
end_time: Option<OffsetDateTime>End of the query window. If omitted, the query returns the latest data.
limit: Option<i32>Maximum number of facts to return. When more facts fall inside the time
range, only the latest limit are returned. Defaults to 100.
Implementations§
Source§impl SecurityFactsOptions
impl SecurityFactsOptions
Sourcepub fn new(symbol: impl Into<String>) -> Self
pub fn new(symbol: impl Into<String>) -> Self
Create a SecurityFactsOptions for one security
Trait Implementations§
Source§impl Clone for SecurityFactsOptions
impl Clone for SecurityFactsOptions
Source§fn clone(&self) -> SecurityFactsOptions
fn clone(&self) -> SecurityFactsOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SecurityFactsOptions
impl Debug for SecurityFactsOptions
Source§impl Default for SecurityFactsOptions
impl Default for SecurityFactsOptions
Source§fn default() -> SecurityFactsOptions
fn default() -> SecurityFactsOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SecurityFactsOptions
impl RefUnwindSafe for SecurityFactsOptions
impl Send for SecurityFactsOptions
impl Sync for SecurityFactsOptions
impl Unpin for SecurityFactsOptions
impl UnsafeUnpin for SecurityFactsOptions
impl UnwindSafe for SecurityFactsOptions
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
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,
§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>
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