GetDatasetConditionParams

The parameter struct and builder for HistoricalClient::metadata::get_dataset_condition.

The builder can be instantiated with the associated function builder(), and the struct is created from the builder with the build() method. For every field, there is an identically named setter method on the builder.

Fields

Field
Type
Description
dataset
String
The dataset code (string identifier). Must be one of the values from list_datasets.
date_range
Option<DateRange>
The UTC date request range with an inclusive start date and an inclusive end date. If None then will return all available dates.
API method
pub struct GetDatasetConditionParams {
    pub dataset: String,
    pub date_range: Option<DateRange>,
}
Example usage
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use databento::{
    dbn::Dataset,
    historical::metadata::GetDatasetConditionParams,
};

assert_eq!(
    GetDatasetConditionParams {
        dataset: "XNAS.ITCH".to_owned(),
        date_range: None
    },
    GetDatasetConditionParams::builder()
        .dataset(Dataset::XnasItch)
        .build()
);