Skip to content

Commit

Permalink
VER: Release 0.24.0
Browse files Browse the repository at this point in the history
  • Loading branch information
threecgreen authored Oct 22, 2024
2 parents 454dbf5 + 04ce85b commit dc87a09
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.24.0 - 2024-10-22

### Enhancements
- Added new `None` `Action` variant that will be gradually rolled out
to historical and live `GLBX.MDP3` data

## 0.23.0 - 2024-09-25

### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.14)
# Project details
#

project("databento" VERSION 0.23.0 LANGUAGES CXX)
project("databento" VERSION 0.24.0 LANGUAGES CXX)
string(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UPPERCASE)

#
Expand Down
8 changes: 6 additions & 2 deletions include/databento/enums.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,11 @@ enum RType : std::uint8_t {
} // namespace rtype
using rtype::RType;

// A tick action.
// An order event or order book operation.
//
// Additional actions may be added in the future.
// For example usage see:
// - https://databento.com/docs/examples/order-book/order-actions
// - https://databento.com/docs/examples/order-book/order-tracking
namespace action {
// enum because future variants may be added in the future.
enum Action : char {
Expand All @@ -167,6 +169,8 @@ enum Action : char {
Add = 'A',
// Reset the book; clear all orders for an instrument.
Clear = 'R',
// Has no effect on the book, but may carry `flags` or other information.
None = 'N',
};
} // namespace action
using action::Action;
Expand Down
2 changes: 1 addition & 1 deletion pkg/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Maintainer: Databento <[email protected]>
_pkgname=databento-cpp
pkgname=databento-cpp-git
pkgver=0.23.0
pkgver=0.24.0
pkgrel=1
pkgdesc="Official C++ client for Databento"
arch=('any')
Expand Down
1 change: 1 addition & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set -e
cmake -S . -B build \
-DDATABENTO_ENABLE_UNIT_TESTING=1 \
-DDATABENTO_ENABLE_EXAMPLES=1 \
-DDATABENTO_ENABLE_CLANG_TIDY=1 \
-DDATABENTO_ENABLE_ASAN=1 \
-DDATABENTO_ENABLE_UBSAN=1
cmake --build build -- -j "$(nproc)"
3 changes: 3 additions & 0 deletions src/enums.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,9 @@ const char* ToString(Action action) {
case Action::Clear: {
return "Clear";
}
case Action::None: {
return "None";
}
default: {
return "Unknown";
}
Expand Down
4 changes: 3 additions & 1 deletion tests/src/scoped_thread_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ TEST(ScopedThreadTests, DefaultCtor) { const ScopedThread target{}; }
TEST(ScopedThreadTests, MoveCtor) {
auto res = 0;
const auto initThread = [&res] { return ScopedThread{[&res] { res = 9; }}; };
{ const ScopedThread target{initThread()}; } // joins
{
const ScopedThread target{initThread()};
} // joins
ASSERT_EQ(res, 9);
}

Expand Down

0 comments on commit dc87a09

Please sign in to comment.