Skip to content

Commit 3d2f268

Browse files
authored
VER: Release 0.33.1
2 parents 1e58a46 + dffaf9e commit 3d2f268

File tree

7 files changed

+28
-20
lines changed

7 files changed

+28
-20
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
# Changelog
22

3+
## 0.33.1 - TBD
4+
5+
### Enhancements
6+
- Upgraded DBN version to 0.41.0:
7+
- Added `interval` method to `RType` and `Schema` to get the duration for subsampled
8+
schemas like `Ohlcv1H` and `Cbbo1S`
9+
- Changed the default value for `channel_id` to be `u8::MAX` in `MboMsg` and `u16::MAX`
10+
elsewhere since 0 is a valid channel ID
11+
312
## 0.33.0 - 2025-08-19
413

514
### Enhancements
615
- Upgraded DBN version to 0.40.0:
716
- Added `DbnVersion` new type
817

9-
1018
### Breaking changes
1119
- Removed `bill_id` field from `BatchJob` struct
1220
- Breaking changes from DBN:

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "databento"
33
authors = ["Databento <support@databento.com>"]
4-
version = "0.33.0"
4+
version = "0.33.1"
55
edition = "2021"
66
repository = "https://github.com/databento/databento-rs"
77
description = "Official Databento client library"
@@ -31,7 +31,7 @@ historical = [
3131
live = ["dep:hex", "dep:sha2", "tokio/net"]
3232

3333
[dependencies]
34-
dbn = { version = "0.40.0", features = ["async", "serde"] }
34+
dbn = { version = "0.41.0", features = ["async", "serde"] }
3535

3636
async-compression = { version = "0.4", features = ["tokio", "zstd"], optional = true }
3737
# Async stream trait

src/historical.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,23 @@ pub enum HistoricalGateway {
2727
Bo1,
2828
}
2929

30-
/// A **half**-closed date interval with an inclusive start date and an exclusive end
30+
/// A **half**-closed date interval with an inclusive UTC start date and an exclusive UTC end
3131
/// date.
3232
#[derive(Clone, Debug, PartialEq, Eq)]
3333
pub struct DateRange {
34-
/// The start date (inclusive).
34+
/// The inclusive UTC start date.
3535
start: time::Date,
36-
/// The end date (exclusive).
36+
/// The exclusive UTC end date.
3737
end: time::Date,
3838
}
3939

40-
/// A **half**-closed datetime interval with an inclusive start time and an exclusive
41-
/// end time.
40+
/// A **half**-closed datetime interval with an inclusive start and an exclusive end.
4241
#[derive(Clone, Debug, PartialEq, Eq, Deserialize)]
4342
pub struct DateTimeRange {
44-
/// The start date time (inclusive).
43+
/// The inclusive start.
4544
#[serde(deserialize_with = "deserialize_date_time")]
4645
start: time::OffsetDateTime,
47-
/// The end date time (exclusive).
46+
/// The exclusive end.
4847
#[serde(deserialize_with = "deserialize_date_time")]
4948
end: time::OffsetDateTime,
5049
}

src/historical/batch.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ pub struct SubmitJobParams {
240240
pub symbols: Symbols,
241241
/// The data record schema.
242242
pub schema: Schema,
243-
/// The date time request range.
243+
/// The request range with an inclusive start and an exclusive end.
244244
/// Filters on `ts_recv` if it exists in the schema, otherwise `ts_event`.
245245
#[builder(setter(into))]
246246
pub date_time_range: DateTimeRange,
@@ -311,10 +311,10 @@ pub struct BatchJob {
311311
pub stype_out: SType,
312312
/// The data record schema.
313313
pub schema: Schema,
314-
/// The start of the request time range (inclusive).
314+
/// The inclusive start of the request range.
315315
#[serde(deserialize_with = "deserialize_date_time")]
316316
pub start: OffsetDateTime,
317-
/// The end of the request time range (exclusive).
317+
/// The exclusive end of the request range.
318318
#[serde(deserialize_with = "deserialize_date_time")]
319319
pub end: OffsetDateTime,
320320
/// The maximum number of records to return.

src/historical/metadata.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,8 @@ pub struct GetDatasetConditionParams {
255255
/// The dataset code.
256256
#[builder(setter(transform = |dataset: impl ToString| dataset.to_string()))]
257257
pub dataset: String,
258-
/// The optional filter by UTC date range.
258+
/// The UTC date request range with an inclusive start date and an inclusive end date.
259+
/// If `None` then will return all available dates.
259260
#[builder(default, setter(transform = |dr: impl Into<DateRange>| Some(dr.into())))]
260261
pub date_range: Option<DateRange>,
261262
}
@@ -278,10 +279,10 @@ pub struct DatasetConditionDetail {
278279
/// The available range for a dataset.
279280
#[derive(Debug, Clone, PartialEq, Eq, Deserialize)]
280281
pub struct DatasetRange {
281-
/// The start of the available range.
282+
/// The inclusive UTC start timestamp of the available range.
282283
#[serde(deserialize_with = "deserialize_date_time")]
283284
pub start: time::OffsetDateTime,
284-
/// The end of the available range (exclusive).
285+
/// The exclusive UTC end timestamp of the available range.
285286
#[serde(deserialize_with = "deserialize_date_time")]
286287
pub end: time::OffsetDateTime,
287288
/// The available ranges for each available schema in the dataset.
@@ -306,7 +307,7 @@ pub struct GetQueryParams {
306307
pub symbols: Symbols,
307308
/// The data record schema.
308309
pub schema: Schema,
309-
/// The request time range.
310+
/// The request range with an inclusive start and an exclusive end.
310311
#[builder(setter(into))]
311312
pub date_time_range: DateTimeRange,
312313
/// The symbology type of the input `symbols`. Defaults to

src/historical/symbology.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pub struct ResolveParams {
7171
/// [`InstrumentId`](dbn::enums::SType::InstrumentId).
7272
#[builder(default = SType::InstrumentId)]
7373
pub stype_out: SType,
74-
/// The date range of the resolution.
74+
/// The UTC date range with an inclusive start and an exclusive end.
7575
#[builder(setter(into))]
7676
pub date_range: DateRange,
7777
}

src/historical/timeseries.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ pub struct GetRangeParams {
165165
pub symbols: Symbols,
166166
/// The data record schema.
167167
pub schema: Schema,
168-
/// The date time request range.
168+
/// The request range with an inclusive start and an exclusive end.
169169
/// Filters on `ts_recv` if it exists in the schema, otherwise `ts_event`.
170170
#[builder(setter(into))]
171171
pub date_time_range: DateTimeRange,
@@ -202,7 +202,7 @@ pub struct GetRangeToFileParams {
202202
pub symbols: Symbols,
203203
/// The data record schema.
204204
pub schema: Schema,
205-
/// The date time request range.
205+
/// The request range with an inclusive start and an exclusive end.
206206
/// Filters on `ts_recv` if it exists in the schema, otherwise `ts_event`.
207207
#[builder(setter(into))]
208208
pub date_time_range: DateTimeRange,

0 commit comments

Comments
 (0)