Struct EventSubType
- Namespace
- DatabentoDotNet.Reference
- Assembly
- DatabentoDotNet.Reference.dll
A corporate-action event sub-type.
[JsonConverter(typeof(ReferenceCodeJsonConverter<EventSubType>))]
public readonly record struct EventSubType : IReferenceCode<EventSubType>, IEquatable<EventSubType>
- Implements
- Inherited Members
Remarks
An open set: a code this library does not know is carried, not lost. Upstream ends
this enum in an Unknown(String) variant (enums.rs:2365) so a code Databento adds
next month round-trips untouched, and a C# enum cannot hold a payload. See
IReferenceCode<TSelf> for the shape this takes instead and why.
The members come from the EVENTSUBTYPE group of the vendored corporate_actions.list_enums response, which is the oracle rather than a count typed into an issue.
The dictionary carries 80 entries for 67 distinct codes: six codes appear more than once with a description that depends on the parent event, and seven entries carry no code at all. The members here are deduplicated by code, and a member whose code has more than one description names all of them — the description belongs to the event, not to the sub-type.
Constructors
EventSubType(string)
Wraps a wire code, known or not. Prefer a named member such as Agm where one exists, and From(string?) where the value came from the server.
public EventSubType(string code)
Parameters
codestringThe wire code.
Exceptions
- ArgumentException
codeis null or empty. A blank code is the absence of a value, which is default.
Properties
Agm
Annual General Meeting (AGM).
public static EventSubType Agm { get; }
Property Value
Amt
Amortisation (AMT).
public static EventSubType Amt { get; }
Property Value
Bb
Buyback (BB).
public static EventSubType Bb { get; }
Property Value
Bbed
Buyback Early Deadline (BBED).
public static EventSubType Bbed { get; }
Property Value
Bbrd
Buyback Regular Deadline (BBRD).
public static EventSubType Bbrd { get; }
Property Value
Bhm
Bond Holder Meeting (BHM).
public static EventSubType Bhm { get; }
Property Value
Bon
Bonus (BON).
public static EventSubType Bon { get; }
Property Value
Call
Call Option Exercised (CALL).
public static EventSubType Call { get; }
Property Value
Capdist
Capital Distribution (CAPDIST).
public static EventSubType Capdist { get; }
Property Value
Capgain
Capital Gain (CAPGAIN).
public static EventSubType Capgain { get; }
Property Value
Caprd
Capital Reduction (CAPRD).
public static EventSubType Caprd { get; }
Property Value
Cgm
Court Ordered General Meeting (CGM).
public static EventSubType Cgm { get; }
Property Value
Claimset
Claim Settled (CLAIMSET).
public static EventSubType Claimset { get; }
Property Value
Code
The wire code, or null when this names no value.
public string? Code { get; }
Property Value
Consd
Reverse Split, currently only used in US events / Consolidation (CONSD).
public static EventSubType Consd { get; }
Property Value
Corr
Correction (CORR).
public static EventSubType Corr { get; }
Property Value
Cu
Clean Up (CU).
public static EventSubType Cu { get; }
Property Value
Defpy
Default Payment (DEFPY).
public static EventSubType Defpy { get; }
Property Value
Dist
Spin-Off, currently only used in US events / Distribution (DIST).
public static EventSubType Dist { get; }
Property Value
Div
Forward Split, currently only used in US events / Dividend (DIV).
public static EventSubType Div { get; }
Property Value
Divacc
Dividend Accumulation (DIVACC).
public static EventSubType Divacc { get; }
Property Value
Divinc
Dividend Income (DIVINC).
public static EventSubType Divinc { get; }
Property Value
Dmrgr
Spin-Off, currently only used in US events / Demerger (DMRGR).
public static EventSubType Dmrgr { get; }
Property Value
Dprcpdiv
Depository Receipt Dividend (DPRCPDIV).
public static EventSubType Dprcpdiv { get; }
Property Value
Dr
Drawings (DR).
public static EventSubType Dr { get; }
Property Value
Drl
Drawings by lottery (DRL).
public static EventSubType Drl { get; }
Property Value
Dt
Tax Free Dividend Component (DT).
public static EventSubType Dt { get; }
Property Value
Dutchauct
Dutch Auction (DUTCHAUCT).
public static EventSubType Dutchauct { get; }
Property Value
Econv
Early Conversion (ECONV).
public static EventSubType Econv { get; }
Property Value
Egm
Extraordinary General Meeting (EGM).
public static EventSubType Egm { get; }
Property Value
Er
Early Redemption (ER).
public static EventSubType Er { get; }
Property Value
F
Fully franked (F).
public static EventSubType F { get; }
Property Value
Gm
General Meeting (GM).
public static EventSubType Gm { get; }
Property Value
HasValue
true when this names a code — known or not.
public bool HasValue { get; }
Property Value
Int
Interest Basis Unknown (INT).
public static EventSubType Int { get; }
Property Value
Intacc
Interest Accumulation (INTACC).
public static EventSubType Intacc { get; }
Property Value
Intdiv
Derived from Interest Payment (INTDIV).
public static EventSubType Intdiv { get; }
Property Value
Intinc
Interest Income (INTINC).
public static EventSubType Intinc { get; }
Property Value
IsKnown
true when Code is one of KnownCodes.
public bool IsKnown { get; }
Property Value
Remarks
false is not an error. It means the server sent something newer than the table this library shipped with, and the code is still in Code to be read, logged, or sent back in a filter.
KnownCodes
Every code the reference API reported for this type when the fixture was captured — 67 of them.
public static IReadOnlySet<string> KnownCodes { get; }
Property Value
Liq
Liquidation (LIQ).
public static EventSubType Liq { get; }
Property Value
Mat
Maturity (MAT).
public static EventSubType Mat { get; }
Property Value
Mrgr
Merger (MRGR).
public static EventSubType Mrgr { get; }
Property Value
Mwc
Make Whole Call (MWC).
public static EventSubType Mwc { get; }
Property Value
N
Not known (N).
public static EventSubType N { get; }
Property Value
Nrenrts
Non Renounceable Rights (NRENRTS).
public static EventSubType Nrenrts { get; }
Property Value
Opoff
Open Offer (OPOFF).
public static EventSubType Opoff { get; }
Property Value
Ord
Ordinary (ORD).
public static EventSubType Ord { get; }
Property Value
P
Partially franked (P).
public static EventSubType P { get; }
Property Value
Pf
Purchase Fund (PF).
public static EventSubType Pf { get; }
Property Value
Poff
Priority Offer (POFF).
public static EventSubType Poff { get; }
Property Value
Pro
Property Basis Unknown (PRO).
public static EventSubType Pro { get; }
Property Value
Proacc
Property Accumulation (PROACC).
public static EventSubType Proacc { get; }
Property Value
Proinc
Property Income (PROINC).
public static EventSubType Proinc { get; }
Property Value
Put
Put Option Exercised (PUT).
public static EventSubType Put { get; }
Property Value
Rcap
Return of Capital Component (RCAP).
public static EventSubType Rcap { get; }
Property Value
Redemclaim
Redemption Claim (REDEMCLAIM).
public static EventSubType Redemclaim { get; }
Property Value
Res
Reserves (RES).
public static EventSubType Res { get; }
Property Value
Rm
Residual Maturity (RM).
public static EventSubType Rm { get; }
Property Value
Rod
Repayment of Debt Component (ROD).
public static EventSubType Rod { get; }
Property Value
Sd
Subdivision / Forward Split, currently only used in US events (SD).
public static EventSubType Sd { get; }
Property Value
Sgm
Special General Meeting (SGM).
public static EventSubType Sgm { get; }
Property Value
Soa
Sale of Assets (SOA).
public static EventSubType Soa { get; }
Property Value
Spa
Share Premium Account (SPA).
public static EventSubType Spa { get; }
Property Value
Spp
Share Purchase Plan (SPP).
public static EventSubType Spp { get; }
Property Value
Tend
Tender Offer (TEND).
public static EventSubType Tend { get; }
Property Value
Tendmrgr
Tender resulting in Merger (TENDMRGR).
public static EventSubType Tendmrgr { get; }
Property Value
Tkovrmini
Mini-Takeover (TKOVRMINI).
public static EventSubType Tkovrmini { get; }
Property Value
U
Unfranked (U).
public static EventSubType U { get; }
Property Value
Ukwnsubtyp
Insufficient data to assign a TKOVR event subtype (UKWNSUBTYP).
public static EventSubType Ukwnsubtyp { get; }
Property Value
Wrtdn
Write Down (WRTDN).
public static EventSubType Wrtdn { get; }
Property Value
Methods
From(string?)
public static EventSubType From(string? code)
Parameters
Returns
- EventSubType
The value.
ToString()
The wire code, or the empty string when this names no value.
public override string ToString()
Returns
- string
The wire code.