Skip to content

Commit 1c7be3e

Browse files
authored
VER: Release 0.32.0
2 parents 5d84bc3 + 3d3a916 commit 1c7be3e

File tree

6 files changed

+30
-25
lines changed

6 files changed

+30
-25
lines changed

CHANGELOG.md

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

3-
## 0.32.0 - 2025-03-25
3+
## 0.32.0 - 2025-04-02
44

55
### Enhancements
66
- Upgraded default date version to 3.0.3
7+
- Updated `vcpkg` baseline
78

89
### Breaking changes
910
- Upgraded default cpp-httplib version to 0.20.0 which requires OpenSSL >= 3.0

CMakeLists.txt

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,13 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_BUILD_TYPE STREQUAL "Debug")
111111
endif()
112112

113113
#
114-
# Model project dependencies
114+
# Project dependencies
115115
#
116116

117+
find_package(OpenSSL REQUIRED)
118+
find_package(Zstd REQUIRED)
119+
find_package(Threads REQUIRED)
120+
117121
include(FetchContent)
118122
# JSON
119123
if(${PROJECT_NAME_UPPERCASE}_USE_EXTERNAL_JSON)
@@ -163,7 +167,7 @@ if(${PROJECT_NAME_UPPERCASE}_USE_EXTERNAL_HTTPLIB)
163167
find_package(httplib REQUIRED)
164168
endif()
165169
else()
166-
set(httplib_version 0.14.3)
170+
set(httplib_version 0.20.0)
167171
if(CMAKE_VERSION VERSION_LESS 3.24)
168172
FetchContent_Declare(
169173
httplib
@@ -195,7 +199,7 @@ if(${PROJECT_NAME_UPPERCASE}_USE_EXTERNAL_DATE)
195199
find_package(date REQUIRED)
196200
endif()
197201
else()
198-
set(date_version 3.0.1)
202+
set(date_version 3.0.3)
199203
if(CMAKE_VERSION VERSION_LESS 3.24)
200204
FetchContent_Declare(
201205
date_src
@@ -213,13 +217,6 @@ else()
213217
# Ignore compiler warnings in headers
214218
add_system_include_property(date)
215219
endif()
216-
# openSSL
217-
find_package(OpenSSL REQUIRED)
218-
if(OPENSSL_FOUND)
219-
set(HTTPLIB_IS_USING_OPENSSL TRUE)
220-
endif()
221-
find_package(Zstd REQUIRED)
222-
find_package(Threads REQUIRED)
223220

224221
#
225222
# Platform-specific dependencies

cmake/FindZstd.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ if(ZSTD_FOUND AND NOT TARGET zstd::zstd)
5050
INTERFACE_INCLUDE_DIRECTORIES ${ZSTD_INCLUDE_DIR}
5151
)
5252
endif()
53+
# cpp-httplib only searches for zstd::libzstd
54+
if (NOT TARGET zstd::libzstd)
55+
add_library(zstd::libzstd ALIAS zstd::zstd)
56+
endif()
5357

5458
# Check if the Conan-provided target exists
5559
if(TARGET zstd::libzstd_static)

include/databento/historical.hpp

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ class Historical {
3737
* Batch API
3838
*/
3939

40+
// Submits a new batch job and returns a description of the job.
41+
//
42+
// WARNING: Calling this method will incur a cost.
4043
BatchJob BatchSubmitJob(const std::string& dataset,
4144
const std::vector<std::string>& symbols,
4245
Schema schema,
@@ -63,11 +66,13 @@ class Historical {
6366
bool split_symbols, SplitDuration split_duration,
6467
std::uint64_t split_size, Delivery delivery,
6568
SType stype_in, SType stype_out, std::uint64_t limit);
69+
// Lists previous batch jobs.
6670
std::vector<BatchJob> BatchListJobs();
6771
std::vector<BatchJob> BatchListJobs(const std::vector<JobState>& states,
6872
UnixNanos since);
6973
std::vector<BatchJob> BatchListJobs(const std::vector<JobState>& states,
7074
const std::string& since);
75+
// Lists all files associated with a batch job.
7176
std::vector<BatchFileDesc> BatchListFiles(const std::string& job_id);
7277
// Returns the paths of the downloaded files.
7378
std::vector<std::string> BatchDownload(const std::string& output_dir,
@@ -160,12 +165,15 @@ class Historical {
160165
* Timeseries API
161166
*/
162167

163-
// Stream historical market data to `record_callback`. This method will
164-
// return only after all data has been returned or `record_callback` returns
165-
// `KeepGoing::Stop`.
168+
// Stream historical market data to `record_callback`. `metadata_callback`
169+
// will be called exactly once, before any calls to `record_callback`.
170+
// This method will return only after all data has been returned or
171+
// `record_callback` returns `KeepGoing::Stop`.
166172
//
167173
// NOTE: This method spawns a thread, however, the callbacks will be called
168174
// from the current thread.
175+
//
176+
// WARNING: Calling this method will incur a cost.
169177
void TimeseriesGetRange(const std::string& dataset,
170178
const DateTimeRange<UnixNanos>& datetime_range,
171179
const std::vector<std::string>& symbols,
@@ -174,13 +182,6 @@ class Historical {
174182
const DateTimeRange<std::string>& datetime_range,
175183
const std::vector<std::string>& symbols,
176184
Schema schema, const RecordCallback& record_callback);
177-
// Stream historical market data to `record_callback`. `metadata_callback`
178-
// will be called exactly once, before any calls to `record_callback`.
179-
// This method will return only after all data has been returned or
180-
// `record_callback` returns `KeepGoing::Stop`.
181-
//
182-
// NOTE: This method spawns a thread, however, the callbacks will be called
183-
// from the current thread.
184185
void TimeseriesGetRange(const std::string& dataset,
185186
const DateTimeRange<UnixNanos>& datetime_range,
186187
const std::vector<std::string>& symbols,
@@ -199,6 +200,8 @@ class Historical {
199200
// object for replaying the data in `file_path`.
200201
//
201202
// If a file at `file_path` already exists, it will be overwritten.
203+
//
204+
// WARNING: Calling this method will incur a cost.
202205
DbnFileStore TimeseriesGetRangeToFile(
203206
const std::string& dataset,
204207
const DateTimeRange<UnixNanos>& datetime_range,

tests/cmake_import/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ add_test(
1313
${CMAKE_COMMAND}
1414
-G "${CMAKE_GENERATOR}"
1515
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
16-
-Ddatabento_DIR=${CMAKE_CURRENT_BINARY_DIR}/pkg/lib/cmake/databento
16+
-Ddatabento_DIR=${CMAKE_CURRENT_BINARY_DIR}/pkg/${CMAKE_INSTALL_LIBDIR}/cmake/databento
1717
-Dnlohmann_json_DIR=${nlohmann_json_BINARY_DIR}
18-
-Ddate_DIR=${CMAKE_CURRENT_BINARY_DIR}/pkg/lib/cmake/date
19-
-Dhttplib_DIR=${CMAKE_CURRENT_BINARY_DIR}/pkg/lib/cmake/httplib
18+
-Ddate_DIR=${CMAKE_CURRENT_BINARY_DIR}/pkg/${CMAKE_INSTALL_LIBDIR}/cmake/date
19+
-Dhttplib_DIR=${CMAKE_CURRENT_BINARY_DIR}/pkg/${CMAKE_INSTALL_LIBDIR}/cmake/httplib
2020
${CMAKE_CURRENT_SOURCE_DIR}/project
2121
)
2222
# Build test project

vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
"openssl",
1010
"zstd"
1111
],
12-
"builtin-baseline": "d1e11918f5c88c1dd364b93e1452fea69bacd479"
12+
"builtin-baseline": "b02e341c927f16d991edbd915d8ea43eac52096c"
1313
}

0 commit comments

Comments
 (0)