Skip to content

Commit 86ae6d7

Browse files
committed
DEL: Remove default_value param from C++ client
1 parent 93fa834 commit 86ae6d7

File tree

5 files changed

+7
-15
lines changed

5 files changed

+7
-15
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
- Added `map_symbols`, `pretty_px`, and `pretty_ts` to `BatchJob` response
1111
- Added `ARCX.PILLAR.ARCX` publisher
1212

13+
### Breaking changes
14+
- Remove `default_value` parameter from `Historical::SymbologyResolve`
15+
1316
## 0.12.1 - 2023-08-25
1417
### Bug fixes
1518
- Fixed typo in `BATY.PITCH.BATY` publisher

include/databento/historical.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,6 @@ class Historical {
155155
const std::vector<std::string>& symbols,
156156
SType stype_in, SType stype_out,
157157
const DateRange& date_range);
158-
SymbologyResolution SymbologyResolve(const std::string& dataset,
159-
const std::vector<std::string>& symbols,
160-
SType stype_in, SType stype_out,
161-
const DateRange& date_range,
162-
const std::string& default_value);
163158

164159
/*
165160
* Timeseries API

scripts/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#! /usr/bin/env bash
22
cd build
3-
ctest --timeout 300 --output-on-failure --tests-regex databentoTests
3+
ctest --timeout 300 --output-on-failure --exclude-regex 'cmake_fetch_content.*'

src/historical.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -733,13 +733,6 @@ double Historical::MetadataGetCost(const HttplibParams& params) {
733733
databento::SymbologyResolution Historical::SymbologyResolve(
734734
const std::string& dataset, const std::vector<std::string>& symbols,
735735
SType stype_in, SType stype_out, const DateRange& date_range) {
736-
return this->SymbologyResolve(dataset, symbols, stype_in, stype_out,
737-
date_range, {});
738-
}
739-
databento::SymbologyResolution Historical::SymbologyResolve(
740-
const std::string& dataset, const std::vector<std::string>& symbols,
741-
SType stype_in, SType stype_out, const DateRange& date_range,
742-
const std::string& default_value) {
743736
static const std::string kEndpoint = "Historical::SymbologyResolve";
744737
static const std::string kPath = ::BuildSymbologyPath(".resolve");
745738
httplib::Params params{{"dataset", dataset},
@@ -748,7 +741,6 @@ databento::SymbologyResolution Historical::SymbologyResolve(
748741
{"stype_in", ToString(stype_in)},
749742
{"stype_out", ToString(stype_out)}};
750743
detail::SetIfNotEmpty(&params, "end_date", date_range.end);
751-
detail::SetIfNotEmpty(&params, "default_value", default_value);
752744
const nlohmann::json json = client_.PostJson(kPath, params);
753745
if (!json.is_object()) {
754746
throw JsonResponseError::TypeMismatch(kEndpoint, "object", json);

test/src/historical_tests.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ TEST_F(HistoricalTests, TestBatchSubmitJob) {
6262
{"packaging", nullptr},
6363
{"pretty_px", false},
6464
{"pretty_ts", false},
65+
{"map_symbols", false},
6566
{"progress", 100},
6667
{"record_count", 107418},
6768
{"schema", "trades"},
@@ -86,7 +87,7 @@ TEST_F(HistoricalTests, TestBatchSubmitJob) {
8687
{"end", "2022-07-03"},
8788
{"encoding", "dbn"},
8889
{"compression", "zstd"},
89-
{"map_symbols", "false"},
90+
{"map_symbols", "0"},
9091
{"symbols", "CLH3"},
9192
{"schema", "trades"}},
9293
kResp);
@@ -155,6 +156,7 @@ TEST_F(HistoricalTests, TestBatchListJobs) {
155156
{"packaging", nullptr},
156157
{"pretty_px", false},
157158
{"pretty_ts", false},
159+
{"map_symbols", false},
158160
{"progress", 100},
159161
{"record_count", 107418},
160162
{"schema", "trades"},

0 commit comments

Comments
 (0)