ResolveParams

The parameter struct and builder for HistoricalClient::symbology::resolve.

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

Parameter
Type
Description
dataset
String
The dataset code (string identifier). Must be one of the values from list_datasets.
symbols
Symbols
The symbols to filter for. Takes up to 2,000 symbols per request. If Symbols::All then will select all symbols (not available for every dataset).
stype_in
SType
The symbology type of input symbols. Defaults to RawSymbol.
stype_out
SType
The symbology type of output symbols. Defaults to InstrumentId. Must be a valid symbology combination with stype_in. See symbology combinations.
date_range
DateRange
The UTC date range with an inclusive start and an exclusive end.
API method
pub struct ResolveParams {
    pub dataset: String,
    pub symbols: Symbols,
    pub stype_in: SType,
    pub stype_out: SType,
    pub date_range: DateRange,
}
Example usage
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use databento::{
    dbn::{Dataset, SType},
    historical::symbology::ResolveParams,
};
use time::macros::date;

assert_eq!(
    ResolveParams {
        dataset: "XNAS.ITCH".to_owned(),
        date_range: (date!(2020 - 01 - 01)
            ..date!(2022 - 01 - 01))
            .into(),
        symbols: vec!["IWM", "SPY", "QQQ"].into(),
        stype_in: SType::RawSymbol,
        stype_out: SType::InstrumentId,
    },
    ResolveParams::builder()
        .dataset(Dataset::XnasItch)
        .symbols(vec!["IWM", "SPY", "QQQ"])
        .date_range(date!(2020 - 01 - 01)..date!(2022 - 01 - 01))
        .build()
);