pub struct ScreenerContext(/* private fields */);Expand description
Screener context — stock screener strategies, search, and indicators.
Implementations§
Source§impl ScreenerContext
impl ScreenerContext
Sourcepub fn new(config: Arc<Config>) -> Self
pub fn new(config: Arc<Config>) -> Self
Create a ScreenerContext
Sourcepub fn log_subscriber(&self) -> Arc<dyn Subscriber + Send + Sync>
pub fn log_subscriber(&self) -> Arc<dyn Subscriber + Send + Sync>
Returns the log subscriber
Sourcepub async fn screener_recommend_strategies(
&self,
) -> Result<ScreenerRecommendStrategiesResponse>
pub async fn screener_recommend_strategies( &self, ) -> Result<ScreenerRecommendStrategiesResponse>
Get recommended built-in screener strategies.
Path: GET /v1/quote/screener/strategies/recommend
Sourcepub async fn screener_user_strategies(
&self,
) -> Result<ScreenerUserStrategiesResponse>
pub async fn screener_user_strategies( &self, ) -> Result<ScreenerUserStrategiesResponse>
Get the current user’s saved screener strategies.
Path: GET /v1/quote/screener/strategies/mine
Sourcepub async fn screener_strategy(
&self,
id: i64,
) -> Result<ScreenerStrategyResponse>
pub async fn screener_strategy( &self, id: i64, ) -> Result<ScreenerStrategyResponse>
Get detail for one screener strategy by ID.
Path: GET /v1/quote/screener/strategy?id=<id>
Sourcepub async fn screener_search(
&self,
market: impl Into<String>,
strategy_id: Option<i64>,
page: u32,
size: u32,
) -> Result<ScreenerSearchResponse>
pub async fn screener_search( &self, market: impl Into<String>, strategy_id: Option<i64>, page: u32, size: u32, ) -> Result<ScreenerSearchResponse>
Search / screen securities using a strategy.
Path: POST /v1/quote/screener/search
When strategy_id is Some, it is included in the request body.
When None, only market, page, and size are sent (custom
filter support is out of scope for this SDK).
Sourcepub async fn screener_indicators(&self) -> Result<ScreenerIndicatorsResponse>
pub async fn screener_indicators(&self) -> Result<ScreenerIndicatorsResponse>
Get all available screener indicator definitions.
Path: GET /v1/quote/screener/indicators
Trait Implementations§
Source§impl Clone for ScreenerContext
impl Clone for ScreenerContext
Source§fn clone(&self) -> ScreenerContext
fn clone(&self) -> ScreenerContext
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 moreAuto Trait Implementations§
impl Freeze for ScreenerContext
impl !RefUnwindSafe for ScreenerContext
impl Send for ScreenerContext
impl Sync for ScreenerContext
impl Unpin for ScreenerContext
impl UnsafeUnpin for ScreenerContext
impl !UnwindSafe for ScreenerContext
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
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