Skip to content

Commit 149aa81

Browse files
committed
ADD: Add MatchAlgorithm variant
1 parent 5d72f18 commit 149aa81

3 files changed

Lines changed: 16 additions & 5 deletions

File tree

CHANGELOG.md

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

3+
## 0.60.0 - TBD
4+
5+
### Enhancements
6+
- Added `MatchAlgorithm` variant `Allocation`
7+
38
## 0.59.0 - 2026-06-02
49

510
### Enhancements

include/databento/enums.hpp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,15 +203,15 @@ enum MatchAlgorithm : char {
203203
// Trade quantity is allocated to resting orders based on a pro-rata percentage:
204204
// resting order quantity divided by total quantity.
205205
ProRata = 'C',
206-
// Like `FIFO` but with LMM allocations prior to FIFO allocations.
206+
// Like FIFO, but with LMM allocations prior to FIFO allocations.
207207
FifoLmm = 'T',
208-
// Like `PRO_RATA` but includes a configurable allocation to the first order that
209-
// improves the market.
208+
// Like Pro-Rata, but includes a configurable allocation to the first order that
209+
// improves the market. Minimum order thresholds may exist.
210210
ThresholdProRata = 'O',
211-
// Like `FIFO_LMM` but includes a configurable allocation to the first order that
211+
// Like FIFO with LMM, but includes a configurable allocation to the first order that
212212
// improves the market.
213213
FifoTopLmm = 'S',
214-
// Like `THRESHOLD_PRO_RATA` but includes a special priority to LMMs.
214+
// Like Threshold Pro-Rata, but includes a special priority to LMMs.
215215
ThresholdProRataLmm = 'Q',
216216
// Special variant used only for Eurodollar futures on CME.
217217
EurodollarFutures = 'Y',
@@ -225,6 +225,9 @@ enum MatchAlgorithm : char {
225225
// association. See [CME
226226
// documentation](https://cmegroupclientsite.atlassian.net/wiki/spaces/EPICSANDBOX/pages/457217267#InstitutionalPrioritizationMatchAlgorithm).
227227
InstitutionalPrioritization = 'V',
228+
// Like Pro-Rata, but includes a configurable allocation to the first order that
229+
// improves the market.
230+
Allocation = 'A',
228231
};
229232
} // namespace match_algorithm
230233
using match_algorithm::MatchAlgorithm;

src/enums.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,9 @@ const char* ToString(MatchAlgorithm match_algorithm) {
317317
case MatchAlgorithm::InstitutionalPrioritization: {
318318
return "InstitutionalPrioritization";
319319
}
320+
case MatchAlgorithm::Allocation: {
321+
return "Allocation";
322+
}
320323
default: {
321324
return "Unknown";
322325
}

0 commit comments

Comments
 (0)