Skip to content

Commit

Permalink
ADD: Add new stat type for auction uncrossing
Browse files Browse the repository at this point in the history
  • Loading branch information
renan-databento committed May 23, 2024
1 parent bfb97c0 commit 45d6f8d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 0.19.0 - TBD

### Enhancements
- Added new `stat_type` for UncrossingPrice.

## 0.18.0 - 2024-05-21

### Enhancements
Expand Down
7 changes: 7 additions & 0 deletions python/python/databento_dbn/_lib.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ class StatType(Enum):
OPENING_PRICE
The price of the first trade of an instrument. `price` will be set.
`quantity` will be set when provided by the venue.
INDICATIVE_OPENING_PRICE
The probable price of the first trade of an instrument published during pre- open. Both
`price` and `quantity` will be set.
Expand All @@ -476,6 +477,7 @@ class StatType(Enum):
The volume-weighted average price (VWAP) for a fixing period. `price` will be set.
CLOSE_PRICE
The last trade price during a trading session. `price` will be set.
`quantity` will be set when provided by the venue.
NET_CHANGE
The change in price from the close price of the previous trading session to the most recent
trading session. `price` will be set.
Expand All @@ -486,6 +488,10 @@ class StatType(Enum):
The implied volatility associated with the settlement price.
DELTA
The option delta associated with the settlement price.
UNCROSSING_PRICE
The auction uncrossing price. This is used for auctions that are neither the
official opening auction nor the official closing auction. `price` will be set.
`quantity` will be set when provided by the venue.
"""

Expand All @@ -504,6 +510,7 @@ class StatType(Enum):
VWAP: int
VOLATILITY: int
DELTA: int
UNCROSSING_PRICE: int

@classmethod
def variants(cls) -> Iterable[StatType]: ...
Expand Down
6 changes: 6 additions & 0 deletions rust/dbn/src/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,7 @@ pub enum SecurityUpdateAction {
#[repr(u16)]
pub enum StatType {
/// The price of the first trade of an instrument. `price` will be set.
/// `quantity` will be set when provided by the venue.
OpeningPrice = 1,
/// The probable price of the first trade of an instrument published during pre-
/// open. Both `price` and `quantity` will be set.
Expand Down Expand Up @@ -884,6 +885,7 @@ pub enum StatType {
/// set.
FixingPrice = 10,
/// The last trade price during a trading session. `price` will be set.
/// `quantity` will be set when provided by the venue.
ClosePrice = 11,
/// The change in price from the close price of the previous trading session to the
/// most recent trading session. `price` will be set.
Expand All @@ -898,6 +900,10 @@ pub enum StatType {
/// The option delta associated with the settlement price. `price` will be set with
/// the standard precision.
Delta = 15,
/// The auction uncrossing price. This is used for auctions that are neither the
/// official opening auction nor the official closing auction. `price` will be set.
/// `quantity` will be set when provided by the venue.
UncrossingPrice = 16,
}

/// The type of [`StatMsg`](crate::record::StatMsg) update.
Expand Down

0 comments on commit 45d6f8d

Please sign in to comment.