Skip to content

Commit 816cc23

Browse files
authored
VER: Release 0.42.0
2 parents 7d1b5ef + 6a8f939 commit 816cc23

File tree

11 files changed

+23
-16
lines changed

11 files changed

+23
-16
lines changed

CHANGELOG.md

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

3+
## 0.42.0 - 2025-08-19
4+
5+
### Enhancements
6+
- Added `EndOfInterval` variant to `SystemCode`
7+
8+
### Breaking changes
9+
- Removed `bill_id` field from `BatchJob` struct
10+
311
## 0.41.0 - 2025-08-12
412

513
### Enhancements

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.24..4.0)
66

77
project(
88
databento
9-
VERSION 0.41.0
9+
VERSION 0.42.0
1010
LANGUAGES CXX
1111
DESCRIPTION "Official Databento client library"
1212
)

examples/live/live_smoke_test.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void ProcessRecords(db::LiveBlocking& client, db::Schema schema,
5353

5454
while (auto record = client.NextRecord(timeout)) {
5555
if (record->RType() == expected_rtype) {
56-
std::cout << "Received expected record type " << expected_rtype << '\n';
56+
std::cout << "Received expected record type \n";
5757
break;
5858
} else if (auto* msg = record->GetIf<db::ErrorMsg>()) {
5959
std::stringstream ss;
@@ -66,13 +66,11 @@ void ProcessRecords(db::LiveBlocking& client, db::Schema schema,
6666
std::cout << "Finished client\n";
6767
}
6868

69-
void ProcessSnapshotRecords(db::LiveBlocking& client, db::Schema schema) {
69+
void ProcessSnapshotRecords(db::LiveBlocking& client) {
7070
client.Start();
7171

7272
std::cout << "Starting client...\n";
7373

74-
const auto expected_rtype = db::Record::RTypeFromSchema(schema);
75-
7674
constexpr auto timeout = std::chrono::seconds{30};
7775

7876
auto received_snapshot_record = false;
@@ -82,7 +80,7 @@ void ProcessSnapshotRecords(db::LiveBlocking& client, db::Schema schema) {
8280
if (mbo_msg->flags.IsSnapshot()) {
8381
received_snapshot_record = true;
8482
} else {
85-
std::cout << "Received expected record type " << expected_rtype << '\n';
83+
std::cout << "Received expected record type\n";
8684
break;
8785
}
8886
} else if (auto* error_msg = record->GetIf<db::ErrorMsg>()) {
@@ -195,7 +193,7 @@ int main(int argc, char* argv[]) {
195193
}
196194

197195
if (use_snapshot) {
198-
ProcessSnapshotRecords(client, schema);
196+
ProcessSnapshotRecords(client);
199197
} else {
200198
ProcessRecords(client, schema, start_from_epoch);
201199
}

include/databento/batch.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ namespace databento {
1212
struct BatchJob {
1313
std::string id;
1414
std::string user_id;
15-
std::string bill_id;
1615
// Cost in US dollars
1716
double cost_usd;
1817
std::string dataset;

include/databento/enums.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,9 @@ enum SystemCode : std::uint8_t {
627627
SlowReaderWarning = 2,
628628
// Indicates a replay subscription has caught up with real-time data.
629629
ReplayCompleted = 3,
630+
// Signals that all records for interval-based schemas have been published for the
631+
// given timestamp.
632+
EndOfInterval = 4,
630633
Unset = 255,
631634
};
632635
} // namespace system_code

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.41.0
4+
pkgver=0.42.0
55
pkgrel=1
66
pkgdesc="Official C++ client for Databento"
77
arch=('any')

src/batch.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ std::ostream& operator<<(std::ostream& stream, const BatchJob& batch_job) {
1919
.Build()
2020
.AddField("id", batch_job.id)
2121
.AddField("user_id", batch_job.user_id)
22-
.AddField("bill_id", batch_job.bill_id)
2322
.AddField("cost_usd", batch_job.cost_usd)
2423
.AddField("dataset", batch_job.dataset)
2524
.AddField("symbols", static_cast<std::ostringstream&>(symbol_helper.Finish()))

src/enums.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,9 @@ const char* ToString(SystemCode system_code) {
795795
case SystemCode::ReplayCompleted: {
796796
return "replay_completed";
797797
}
798+
case SystemCode::EndOfInterval: {
799+
return "end_of_interval";
800+
}
798801
default: {
799802
return "Unknown";
800803
}
@@ -1233,6 +1236,9 @@ SystemCode FromString(const std::string& str) {
12331236
if (str == "replay_completed") {
12341237
return SystemCode::ReplayCompleted;
12351238
}
1239+
if (str == "end_of_interval") {
1240+
return SystemCode::EndOfInterval;
1241+
}
12361242
throw InvalidArgumentError{"FromString<SystemCode>", "str",
12371243
"unknown value '" + str + '\''};
12381244
}

src/historical.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ databento::BatchJob Parse(const std::string& endpoint, const nlohmann::json& jso
7272
databento::BatchJob res;
7373
res.id = CheckedAt(endpoint, json, "id");
7474
res.user_id = ParseAt<std::string>(endpoint, json, "user_id");
75-
res.bill_id = ParseAt<std::string>(endpoint, json, "bill_id");
7675
res.cost_usd = ParseAt<double>(endpoint, json, "cost_usd");
7776
res.dataset = ParseAt<std::string>(endpoint, json, "dataset");
7877
res.symbols = ParseAt<std::vector<std::string>>(endpoint, json, "symbols");

tests/src/batch_tests.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ namespace databento::tests {
88
TEST(BatchTests, TestBatchJobToString) {
99
const BatchJob target{"aNiD",
1010
"USER",
11-
"57db",
1211
12.39,
1312
dataset::kXnasItch,
1413
{"CL.FUT"},
@@ -41,7 +40,6 @@ TEST(BatchTests, TestBatchJobToString) {
4140
ASSERT_EQ(res, R"(BatchJob {
4241
id = "aNiD",
4342
user_id = "USER",
44-
bill_id = "57db",
4543
cost_usd = 12.39,
4644
dataset = "XNAS.ITCH",
4745
symbols = { "CL.FUT" },

0 commit comments

Comments
 (0)