Skip to content

Commit d9fad40

Browse files
authored
VER: Release 0.20.0
2 parents 9f13282 + 2327587 commit d9fad40

File tree

9 files changed

+86
-23
lines changed

9 files changed

+86
-23
lines changed

CHANGELOG.md

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

3-
## 0.19.2 - TBD
3+
## 0.20.0 - 2024-07-30
4+
5+
### Enhancements
6+
- Added new `SType` variants for reference data: `Isin`, `UsCode`, `BbgCompId`, `BbgCompTicker`, `Figi`, `FigiTicker`
7+
- Added new publisher value for `DBEQ.SUMMARY`
8+
9+
### Breaking changes
10+
- Renamed `SType::Nasdaq` variant to `SType::NasdaqSymbol`
11+
- Renamed `SType::Cms` variant to `SType::CmsSymbol`
12+
13+
## 0.19.2 - 2024-07-23
414

515
### Bug fixes
616
- Fixed issue where `AsyncDynReader` would only decode the first frame of multi-frame

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ resolver = "2"
1111
[workspace.package]
1212
authors = ["Databento <[email protected]>"]
1313
edition = "2021"
14-
version = "0.19.2"
14+
version = "0.20.0"
1515
documentation = "https://docs.databento.com"
1616
repository = "https://github.com/databento/dbn"
1717
license = "Apache-2.0"

python/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "databento-dbn"
3-
version = "0.19.2"
3+
version = "0.20.0"
44
description = "Python bindings for encoding and decoding Databento Binary Encoding (DBN)"
55
authors = ["Databento <[email protected]>"]
66
license = "Apache-2.0"
@@ -17,7 +17,7 @@ build-backend = "maturin"
1717

1818
[project]
1919
name = "databento-dbn"
20-
version = "0.19.2"
20+
version = "0.20.0"
2121
authors = [
2222
{ name = "Databento", email = "[email protected]" }
2323
]

python/python/databento_dbn/_lib.pyi

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,19 +221,37 @@ class SType(Enum):
221221
PARENT
222222
A Databento-specific symbology for referring to a group of symbols by one
223223
"parent" symbol, e.g. ES.FUT to refer to all ES futures.
224-
NASDAQ
224+
NASDAQ_SYMBOL
225225
Symbology for US equities using NASDAQ Integrated suffix conventions.
226-
CMS
226+
CMS_SYMBOL
227227
Symbology for US equities using CMS suffix conventions.
228+
ISIN
229+
Symbology using International Security Identification Numbers (ISIN) - ISO 6166.
230+
US_CODE
231+
Symbology using US domestic Committee on Uniform Securities Identification Procedure (CUSIP) codes.
232+
BBG_COMP_ID
233+
Symbology using Bloomberg composite global IDs.
234+
BBG_COMP_TICKER
235+
Symbology using Bloomberg composite tickers.
236+
FIGI
237+
Symbology using Bloomberg FIGI exchange level IDs.
238+
FIGI_TICKER
239+
Symbology using Bloomberg exchange level tickers.
228240
229241
"""
230242

231243
INSTRUMENT_ID: str
232244
RAW_SYMBOL: str
233245
CONTINUOUS: str
234246
PARENT: str
235-
NASDAQ: str
236-
CMS: str
247+
NASDAQ_SYMBOL: str
248+
CMS_SYMBOL: str
249+
ISIN: str
250+
US_CODE: str
251+
BBG_COMP_ID: str
252+
BBG_COMP_TICKER: str
253+
FIGI: str
254+
FIGI_TICKER: str
237255

238256
@classmethod
239257
def from_str(cls, value: str) -> SType: ...

rust/dbn-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ name = "dbn"
1616
path = "src/main.rs"
1717

1818
[dependencies]
19-
dbn = { path = "../dbn", version = "=0.19.2", default-features = false }
19+
dbn = { path = "../dbn", version = "=0.20.0", default-features = false }
2020

2121
anyhow = { workspace = true }
2222
clap = { version = "4.5", features = ["derive", "wrap_help"] }

rust/dbn/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ serde = ["dep:serde", "time/parsing", "time/serde"]
2525
trivial_copy = []
2626

2727
[dependencies]
28-
dbn-macros = { version = "=0.19.2", path = "../dbn-macros" }
28+
dbn-macros = { version = "=0.20.0", path = "../dbn-macros" }
2929

3030
async-compression = { version = "0.4.11", features = ["tokio", "zstd"], optional = true }
3131
csv = { workspace = true }

rust/dbn/src/enums.rs

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,21 @@ pub enum SType {
232232
/// "parent" symbol, e.g. ES.FUT to refer to all ES futures.
233233
Parent = 4,
234234
/// Symbology for US equities using NASDAQ Integrated suffix conventions.
235-
Nasdaq = 5,
235+
NasdaqSymbol = 5,
236236
/// Symbology for US equities using CMS suffix conventions.
237-
Cms = 6,
237+
CmsSymbol = 6,
238+
/// Symbology using International Security Identification Numbers (ISIN) - ISO 6166.
239+
Isin = 7,
240+
/// Symbology using US domestic Committee on Uniform Securities Identification Procedure (CUSIP) codes.
241+
UsCode = 8,
242+
/// Symbology using Bloomberg composite global IDs.
243+
BbgCompId = 9,
244+
/// Symbology using Bloomberg composite tickers.
245+
BbgCompTicker = 10,
246+
/// Symbology using Bloomberg FIGI exchange level IDs.
247+
Figi = 11,
248+
/// Symbology using Bloomberg exchange level tickers.
249+
FigiTicker = 12,
238250
}
239251

240252
impl std::str::FromStr for SType {
@@ -247,8 +259,14 @@ impl std::str::FromStr for SType {
247259
"smart" => Ok(SType::Smart),
248260
"continuous" => Ok(SType::Continuous),
249261
"parent" => Ok(SType::Parent),
250-
"nasdaq" => Ok(SType::Nasdaq),
251-
"cms" => Ok(SType::Cms),
262+
"nasdaq_symbol" | "nasdaq" => Ok(SType::NasdaqSymbol),
263+
"cms_symbol" | "cms" => Ok(SType::CmsSymbol),
264+
"isin" => Ok(SType::Isin),
265+
"us_code" => Ok(SType::UsCode),
266+
"bbg_comp_id" => Ok(SType::BbgCompId),
267+
"bbg_comp_ticker" => Ok(SType::BbgCompTicker),
268+
"figi" => Ok(SType::Figi),
269+
"figi_ticker" => Ok(SType::FigiTicker),
252270
_ => Err(crate::Error::conversion::<Self>(s.to_owned())),
253271
}
254272
}
@@ -270,8 +288,14 @@ impl SType {
270288
SType::Smart => "smart",
271289
SType::Continuous => "continuous",
272290
SType::Parent => "parent",
273-
SType::Nasdaq => "nasdaq",
274-
SType::Cms => "cms",
291+
SType::NasdaqSymbol => "nasdaq_symbol",
292+
SType::CmsSymbol => "cms_symbol",
293+
SType::Isin => "isin",
294+
SType::UsCode => "us_code",
295+
SType::BbgCompId => "bbg_comp_id",
296+
SType::BbgCompTicker => "bbg_comp_ticker",
297+
SType::Figi => "figi",
298+
SType::FigiTicker => "figi_ticker",
275299
}
276300
}
277301
}

rust/dbn/src/publishers.rs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,10 +287,12 @@ pub enum Dataset {
287287
DbeqMax = 30,
288288
/// Nasdaq Basic (NLS+QBBO)
289289
XnasBasic = 31,
290+
/// Databento Equities Summary
291+
DbeqSummary = 32,
290292
}
291293

292294
/// The number of Dataset variants.
293-
pub const DATASET_COUNT: usize = 31;
295+
pub const DATASET_COUNT: usize = 32;
294296

295297
impl Dataset {
296298
/// Convert a Dataset to its `str` representation.
@@ -329,6 +331,7 @@ impl Dataset {
329331
Self::NdexImpact => "NDEX.IMPACT",
330332
Self::DbeqMax => "DBEQ.MAX",
331333
Self::XnasBasic => "XNAS.BASIC",
334+
Self::DbeqSummary => "DBEQ.SUMMARY",
332335
}
333336
}
334337
}
@@ -383,6 +386,7 @@ impl std::str::FromStr for Dataset {
383386
"NDEX.IMPACT" => Ok(Self::NdexImpact),
384387
"DBEQ.MAX" => Ok(Self::DbeqMax),
385388
"XNAS.BASIC" => Ok(Self::XnasBasic),
389+
"DBEQ.SUMMARY" => Ok(Self::DbeqSummary),
386390
_ => Err(Error::conversion::<Self>(s)),
387391
}
388392
}
@@ -571,10 +575,12 @@ pub enum Publisher {
571575
XnasBasicXbos = 88,
572576
/// Nasdaq Basic - Nasdaq PSX
573577
XnasBasicXpsx = 89,
578+
/// Databento Equities Summary
579+
DbeqSummaryDbeq = 90,
574580
}
575581

576582
/// The number of Publisher variants.
577-
pub const PUBLISHER_COUNT: usize = 89;
583+
pub const PUBLISHER_COUNT: usize = 90;
578584

579585
impl Publisher {
580586
/// Convert a Publisher to its `str` representation.
@@ -669,6 +675,7 @@ impl Publisher {
669675
Self::XnasNlsXpsx => "XNAS.NLS.XPSX",
670676
Self::XnasBasicXbos => "XNAS.BASIC.XBOS",
671677
Self::XnasBasicXpsx => "XNAS.BASIC.XPSX",
678+
Self::DbeqSummaryDbeq => "DBEQ.SUMMARY.DBEQ",
672679
}
673680
}
674681

@@ -764,6 +771,7 @@ impl Publisher {
764771
Self::XnasNlsXpsx => Venue::Xpsx,
765772
Self::XnasBasicXbos => Venue::Xbos,
766773
Self::XnasBasicXpsx => Venue::Xpsx,
774+
Self::DbeqSummaryDbeq => Venue::Dbeq,
767775
}
768776
}
769777

@@ -859,6 +867,7 @@ impl Publisher {
859867
Self::XnasNlsXpsx => Dataset::XnasNls,
860868
Self::XnasBasicXbos => Dataset::XnasBasic,
861869
Self::XnasBasicXpsx => Dataset::XnasBasic,
870+
Self::DbeqSummaryDbeq => Dataset::DbeqSummary,
862871
}
863872
}
864873

@@ -956,6 +965,7 @@ impl Publisher {
956965
(Dataset::XnasNls, Venue::Xpsx) => Ok(Self::XnasNlsXpsx),
957966
(Dataset::XnasBasic, Venue::Xbos) => Ok(Self::XnasBasicXbos),
958967
(Dataset::XnasBasic, Venue::Xpsx) => Ok(Self::XnasBasicXpsx),
968+
(Dataset::DbeqSummary, Venue::Dbeq) => Ok(Self::DbeqSummaryDbeq),
959969
_ => Err(Error::conversion::<Self>(format!("({dataset}, {venue})"))),
960970
}
961971
}
@@ -1067,6 +1077,7 @@ impl std::str::FromStr for Publisher {
10671077
"XNAS.NLS.XPSX" => Ok(Self::XnasNlsXpsx),
10681078
"XNAS.BASIC.XBOS" => Ok(Self::XnasBasicXbos),
10691079
"XNAS.BASIC.XPSX" => Ok(Self::XnasBasicXpsx),
1080+
"DBEQ.SUMMARY.DBEQ" => Ok(Self::DbeqSummaryDbeq),
10701081
_ => Err(Error::conversion::<Self>(s)),
10711082
}
10721083
}

0 commit comments

Comments
 (0)