Skip to content

Commit 1e60392

Browse files
authored
VER: Release 0.25.0
2 parents dc87a09 + 78a0a2e commit 1e60392

File tree

7 files changed

+39
-2
lines changed

7 files changed

+39
-2
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## 0.25.0 - TBD
4+
5+
### Enhancements
6+
- Added new IntelligentCross venues `ASPN`, `ASMT`, and `ASPI`
7+
8+
### Deprecations
9+
- Deprecated `Packaging` enum and `packaging` field on `BatchJob`. These will be
10+
removed in a future version. All files from a batch job can be downloaded with the
11+
`BatchDownload` method on the historical client
12+
313
## 0.24.0 - 2024-10-22
414

515
### Enhancements

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.14)
44
# Project details
55
#
66

7-
project("databento" VERSION 0.24.0 LANGUAGES CXX)
7+
project("databento" VERSION 0.25.0 LANGUAGES CXX)
88
string(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UPPERCASE)
99

1010
#

include/databento/batch.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ struct BatchJob {
3131
SplitDuration split_duration;
3232
std::uint64_t split_size;
3333
bool split_symbols;
34+
// NOTE: deprecated and will be removed in a future version
3435
Packaging packaging;
3536
Delivery delivery;
3637
std::uint64_t record_count;

include/databento/enums.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ enum class SplitDuration : std::uint8_t {
8686
};
8787

8888
// Represents how a batch job will be packaged.
89+
//
90+
// NOTE: Deprecated now that all batch jobs can be downloaded as a ZIP file.
8991
enum class Packaging : std::uint8_t {
9092
None = 0,
9193
Zip,

include/databento/publishers.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ enum class Venue : std::uint16_t {
9393
Ltse = 42,
9494
// Off-Exchange Transactions - Listed Instruments
9595
Xoff = 43,
96+
// IntelligentCross ASPEN Intelligent Bid/Offer
97+
Aspn = 44,
98+
// IntelligentCross ASPEN Maker/Taker
99+
Asmt = 45,
100+
// IntelligentCross ASPEN Inverted
101+
Aspi = 46,
96102
};
97103

98104
// A source of data.

pkg/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Maintainer: Databento <support@databento.com>
22
_pkgname=databento-cpp
33
pkgname=databento-cpp-git
4-
pkgver=0.24.0
4+
pkgver=0.25.0
55
pkgrel=1
66
pkgdesc="Official C++ client for Databento"
77
arch=('any')

src/publishers.cpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,15 @@ const char* ToString(Venue venue) {
140140
case Venue::Xoff: {
141141
return "XOFF";
142142
}
143+
case Venue::Aspn: {
144+
return "ASPN";
145+
}
146+
case Venue::Asmt: {
147+
return "ASMT";
148+
}
149+
case Venue::Aspi: {
150+
return "ASPI";
151+
}
143152
default: {
144153
return "Unknown";
145154
}
@@ -282,6 +291,15 @@ Venue FromString(const std::string& str) {
282291
if (str == "XOFF") {
283292
return Venue::Xoff;
284293
}
294+
if (str == "ASPN") {
295+
return Venue::Aspn;
296+
}
297+
if (str == "ASMT") {
298+
return Venue::Asmt;
299+
}
300+
if (str == "ASPI") {
301+
return Venue::Aspi;
302+
}
285303
throw InvalidArgumentError{"FromString<Venue>", "str",
286304
"unknown value '" + str + '\''};
287305
}

0 commit comments

Comments
 (0)