pub struct OptionsPricesBuilder { /* private fields */ }
Expand description
Builder for Options (OHLC) Data API.
Implementations§
Source§impl OptionsPricesBuilder
impl OptionsPricesBuilder
Sourcepub fn code(self, code: impl Into<OptionsCode>) -> Self
pub fn code(self, code: impl Into<OptionsCode>) -> Self
Set the security options code.
Sourcepub fn date(self, date: impl Into<String>) -> Self
pub fn date(self, date: impl Into<String>) -> Self
Set the date of data (e.g., “20210901” or “2021-09-01”)
Sourcepub fn contract_flag(self, flag: impl Into<String>) -> Self
pub fn contract_flag(self, flag: impl Into<String>) -> Self
Set the central contract month flag.
Sourcepub fn pagination_key(self, pagination_key: impl Into<String>) -> Self
pub fn pagination_key(self, pagination_key: impl Into<String>) -> Self
Set pagination key for fetching the next set of data.
Trait Implementations§
Source§impl Clone for OptionsPricesBuilder
impl Clone for OptionsPricesBuilder
Source§fn clone(&self) -> OptionsPricesBuilder
fn clone(&self) -> OptionsPricesBuilder
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 moreSource§impl JQuantsBuilder<OptionsPricesResponse> for OptionsPricesBuilder
impl JQuantsBuilder<OptionsPricesResponse> for OptionsPricesBuilder
Source§async fn send(self) -> Result<OptionsPricesResponse, JQuantsError>
async fn send(self) -> Result<OptionsPricesResponse, JQuantsError>
Send the request.
Source§async fn send_ref(&self) -> Result<OptionsPricesResponse, JQuantsError>
async fn send_ref(&self) -> Result<OptionsPricesResponse, JQuantsError>
Send the request without consuming ownership.
Use only when reusing the builder.
Source§impl Paginatable<OptionsPricesResponse> for OptionsPricesBuilder
impl Paginatable<OptionsPricesResponse> for OptionsPricesBuilder
Source§fn pagination_key(self, pagination_key: impl Into<String>) -> Self
fn pagination_key(self, pagination_key: impl Into<String>) -> Self
Set the pagination key.
Source§fn fetch_pages_stream(self) -> impl Stream<Item = Result<R, JQuantsError>>
fn fetch_pages_stream(self) -> impl Stream<Item = Result<R, JQuantsError>>
Fetch the pages stream.
Source§fn fetch_all_and_merge(self) -> impl Future<Output = Result<R, JQuantsError>>
fn fetch_all_and_merge(self) -> impl Future<Output = Result<R, JQuantsError>>
Fetch all pages and merge them.
Auto Trait Implementations§
impl Freeze for OptionsPricesBuilder
impl !RefUnwindSafe for OptionsPricesBuilder
impl Send for OptionsPricesBuilder
impl Sync for OptionsPricesBuilder
impl Unpin for OptionsPricesBuilder
impl !UnwindSafe for OptionsPricesBuilder
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