pub struct StudyRequest {
pub ticker: Option<Ticker>,
pub symbol: Option<String>,
pub exchange: Option<String>,
pub interval: Interval,
pub base_bar_count: u64,
pub study: StudyConfiguration,
pub study_id: Option<String>,
pub timeout: Duration,
}Expand description
Immutable request object for a study or fundamental data fetch.
Fields§
§ticker: Option<Ticker>Optional ticker specifying symbol and exchange.
symbol: Option<String>Optional symbol string (e.g., “AAPL”).
exchange: Option<String>Optional exchange string (e.g., “NASDAQ”).
interval: IntervalChart interval / resolution for the study.
base_bar_count: u64Base bar count requested for the primary series (default 100).
study: StudyConfigurationThe study configuration (Builtin or Pine Script).
study_id: Option<String>Optional custom study ID. If not provided, a random unique ID is generated.
timeout: DurationRequest timeout (default 30 seconds).
Implementations§
Source§impl StudyRequest
impl StudyRequest
Sourcepub fn builder() -> StudyRequestBuilder
pub fn builder() -> StudyRequestBuilder
Create an instance of StudyRequest using the builder syntax
Source§impl StudyRequest
impl StudyRequest
Sourcepub fn resolve_symbol_exchange(&self) -> Result<(String, String)>
pub fn resolve_symbol_exchange(&self) -> Result<(String, String)>
Resolves the symbol and exchange from ticker or explicit fields.
Trait Implementations§
Source§impl Clone for StudyRequest
impl Clone for StudyRequest
Auto Trait Implementations§
impl Freeze for StudyRequest
impl RefUnwindSafe for StudyRequest
impl Send for StudyRequest
impl Sync for StudyRequest
impl Unpin for StudyRequest
impl UnsafeUnpin for StudyRequest
impl UnwindSafe for StudyRequest
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