pub struct PriceSettings {Show 13 fields
pub columns: Vec<usize>,
pub adjust_prices: u8,
pub get_adjust_info: bool,
pub get_adjust_info_only: bool,
pub days_without_trade: bool,
pub start_date: String,
pub end_date: String,
pub merge_similar_symbols: bool,
pub cache: bool,
pub csv: bool,
pub csv_headers: bool,
pub csv_delimiter: String,
pub period: Period,
}Expand description
Per-call settings for get_prices (JS defaultSettings).
Fields§
§columns: Vec<usize>Column indices to include in the output.
Maps to columnList indices. Default: [0, 2, 3, 4, 5, 6, 7, 8, 9]
adjust_prices: u8Price adjustment mode applied to returned data.
0: No adjustment (بدون تعدیل)1: Capital increase + dividends (افزایش سرمایه + سود نقدی)2: Capital increase only (افزایش سرمایه)
get_adjust_info: boolIf true, an adjust_info payload is appended to each ClosingPrice
containing all events needed to manually re-apply price adjustment.
Default: false
get_adjust_info_only: boolIf true, returns only the adjust_info payload without any
ClosingPrice data. Implies get_adjust_info.
Default: false
days_without_trade: boolIf true, rows with zero trades are included in the output.
Default: false
start_date: StringStart date for price data in YYYYMMDD format (e.g., "20230101").
Only prices with dates greater than this value will be included.
Min: "20010321". Default: "20010321"
end_date: StringEnd date for price data in YYYYMMDD format (e.g., "20231231").
Only prices with dates less than or equal to this value will be included.
If empty, no end date filtering is applied.
start_date should be less than or equal to end_date when both are specified.
merge_similar_symbols: boolIf true, data for similar renamed symbols is merged into a single series.
Default: true
cache: boolIf true, downloaded data is persisted to the local cache directory.
Default: true
csv: boolIf true, each symbol’s result is returned as a CSV string instead
of a structured ClosingPrice object.
Default: false
csv_headers: boolIf true, a header row is prepended to each CSV result.
Has no effect when csv is false.
Default: true
csv_delimiter: StringCell delimiter character used when generating CSV results.
Has no effect when csv is false.
Default: ","
period: PeriodResampling timeframe for the returned rows. Daily (default) keeps the rows as-is; Weekly/Monthly aggregate them using the Jalali calendar.
Trait Implementations§
Source§impl Clone for PriceSettings
impl Clone for PriceSettings
Source§fn clone(&self) -> PriceSettings
fn clone(&self) -> PriceSettings
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more