pub struct SignalsOptions {
pub symbol_name: Option<String>,
pub strategy_id: Option<String>,
pub strategy_name: Option<String>,
pub catalyst_name: Option<String>,
pub catalyst_type: Option<String>,
pub start_time: Option<OffsetDateTime>,
pub end_time: Option<OffsetDateTime>,
pub limit: Option<i32>,
pub offset: Option<i32>,
}Expand description
Options for crate::SignalContext::signals
Every field is a filter; leaving one unset removes that filter.
Fields§
§symbol_name: Option<String>Filter by security symbol, e.g. AAPL.US or 700.HK. If omitted,
returns signals for all symbols.
strategy_id: Option<String>Filter by strategy id, e.g. buffett-value. Preferred over the
deprecated strategy_name; takes precedence when both are provided.
strategy_name: Option<String>Filter by strategy name. If omitted, returns signals from all strategies.
Deprecated in favour of SignalsOptions::strategy_id.
catalyst_name: Option<String>Filter by the name of the factor that triggered the signal, e.g.
EARNINGS_RELEASED or macd_12_26_9 — the factors[].name of the
triggering fact, not the display label a signal carries in
Signal::key_catalyst. If omitted, signals with any catalyst name
are returned.
catalyst_type: Option<String>Filter by the catalyst type that triggered the signal, e.g. News,
Fundamental, Technical. If omitted, signals with any catalyst type
are returned.
start_time: Option<OffsetDateTime>Only return signals created at or after this time. Sent as RFC3339; the API also accepts a Unix timestamp. If omitted, no lower bound.
end_time: Option<OffsetDateTime>Only return signals created at or before this time. Sent as RFC3339; the API also accepts a Unix timestamp. If omitted, no upper bound.
limit: Option<i32>Maximum number of results to return. Defaults to 20.
offset: Option<i32>Number of results to skip for pagination. Defaults to 0.
Trait Implementations§
Source§impl Clone for SignalsOptions
impl Clone for SignalsOptions
Source§fn clone(&self) -> SignalsOptions
fn clone(&self) -> SignalsOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SignalsOptions
impl Debug for SignalsOptions
Source§impl Default for SignalsOptions
impl Default for SignalsOptions
Source§fn default() -> SignalsOptions
fn default() -> SignalsOptions
Auto Trait Implementations§
impl Freeze for SignalsOptions
impl RefUnwindSafe for SignalsOptions
impl Send for SignalsOptions
impl Sync for SignalsOptions
impl Unpin for SignalsOptions
impl UnsafeUnpin for SignalsOptions
impl UnwindSafe for SignalsOptions
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,
§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>
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