We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcb1480 commit 27d4e04Copy full SHA for 27d4e04
6 files changed
CHANGELOG.md
@@ -1,5 +1,10 @@
1
# Changelog
2
3
+## 0.42.0 - TBD
4
+
5
+### Breaking changes
6
+- Removed `bill_id` field from `BatchJob` struct
7
8
## 0.41.0 - 2025-08-12
9
10
### Enhancements
include/databento/batch.hpp
@@ -12,7 +12,6 @@ namespace databento {
12
struct BatchJob {
13
std::string id;
14
std::string user_id;
15
- std::string bill_id;
16
// Cost in US dollars
17
double cost_usd;
18
std::string dataset;
src/batch.cpp
@@ -19,7 +19,6 @@ std::ostream& operator<<(std::ostream& stream, const BatchJob& batch_job) {
19
.Build()
20
.AddField("id", batch_job.id)
21
.AddField("user_id", batch_job.user_id)
22
- .AddField("bill_id", batch_job.bill_id)
23
.AddField("cost_usd", batch_job.cost_usd)
24
.AddField("dataset", batch_job.dataset)
25
.AddField("symbols", static_cast<std::ostringstream&>(symbol_helper.Finish()))
src/historical.cpp
@@ -72,7 +72,6 @@ databento::BatchJob Parse(const std::string& endpoint, const nlohmann::json& jso
72
databento::BatchJob res;
73
res.id = CheckedAt(endpoint, json, "id");
74
res.user_id = ParseAt<std::string>(endpoint, json, "user_id");
75
- res.bill_id = ParseAt<std::string>(endpoint, json, "bill_id");
76
res.cost_usd = ParseAt<double>(endpoint, json, "cost_usd");
77
res.dataset = ParseAt<std::string>(endpoint, json, "dataset");
78
res.symbols = ParseAt<std::vector<std::string>>(endpoint, json, "symbols");
tests/src/batch_tests.cpp
@@ -8,7 +8,6 @@ namespace databento::tests {
TEST(BatchTests, TestBatchJobToString) {
const BatchJob target{"aNiD",
"USER",
11
- "57db",
12.39,
dataset::kXnasItch,
{"CL.FUT"},
@@ -41,7 +40,6 @@ TEST(BatchTests, TestBatchJobToString) {
41
40
ASSERT_EQ(res, R"(BatchJob {
42
id = "aNiD",
43
user_id = "USER",
44
- bill_id = "57db",
45
cost_usd = 12.39,
46
dataset = "XNAS.ITCH",
47
symbols = { "CL.FUT" },
tests/src/historical_tests.cpp
@@ -63,7 +63,6 @@ class HistoricalTests : public ::testing::Test {
63
TEST_F(HistoricalTests, TestBatchSubmitJob) {
64
const nlohmann::json kResp{
65
{"actual_size", 2022690},
66
- {"bill_id", "73186317471eb623d161a1"},
67
{"billed_size", 5156064},
68
{"compression", nullptr},
69
{"cost_usd", 0.119089},
@@ -125,7 +124,6 @@ TEST_F(HistoricalTests, TestBatchSubmitJob) {
125
124
126
TEST_F(HistoricalTests, TestBatchListJobs) {
127
const nlohmann::json kResp{{{"actual_size", 2022690},
128
- {"bill_id", "a670"},
129
130
{"compression", "zstd"},
131
@@ -158,7 +156,6 @@ TEST_F(HistoricalTests, TestBatchListJobs) {
158
156
{"ts_received", "2022-10-31 15:26:58.112496+00:00"},
159
157
{"user_id", "A_USER"}},
160
{{"actual_size", 2022690},
161
- {"bill_id", "a1b7"},
162
163
164
0 commit comments