pub struct HistoricalDataRequest {
pub symbol: String,
pub timeframe: Timeframe,
pub end_ts_millis: i64,
pub limit: usize,
}Expand description
Parameters for a historical data fetch via DataSource::fetch_historical.
The chart engine creates this request when the user scrolls left beyond the currently loaded data range and the data source supports historical fetching.
Fields§
§symbol: StringSymbol to fetch data for.
timeframe: TimeframeTimeframe (bar interval) to fetch.
end_ts_millis: i64End timestamp in Unix milliseconds (exclusive) – fetch bars before this point.
limit: usizeMaximum number of bars to return.
Trait Implementations§
Source§impl Clone for HistoricalDataRequest
impl Clone for HistoricalDataRequest
Source§fn clone(&self) -> HistoricalDataRequest
fn clone(&self) -> HistoricalDataRequest
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 HistoricalDataRequest
impl RefUnwindSafe for HistoricalDataRequest
impl Send for HistoricalDataRequest
impl Sync for HistoricalDataRequest
impl Unpin for HistoricalDataRequest
impl UnsafeUnpin for HistoricalDataRequest
impl UnwindSafe for HistoricalDataRequest
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