Struct Event
- Namespace
- DatabentoDotNet.Reference
- Assembly
- DatabentoDotNet.Reference.dll
A corporate-action event type.
[JsonConverter(typeof(ReferenceCodeJsonConverter<Event>))]
public readonly record struct Event : IReferenceCode<Event>, IEquatable<Event>
- 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:1933) 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 EVENT group of the vendored corporate_actions.list_enums response, which is the oracle rather than a count typed into an issue.
Seeded from the EVENT dictionary group's 141 codes rather than from the 60 events corporate_actions.list_events documents. The 141 are a strict superset and are the widest vocabulary a record's event field is known to carry; the documented 60 are the subset with published field lists, not the type's range.
The name is Event even though that word is reserved in Visual Basic. It is what upstream calls this (enums.rs:1933), what the wire field is called, and the name a reader arrives with from the API documentation or the Rust client. A VB consumer writes [Event] to escape it, which is a known and minor cost; renaming to EventType would buy that back and spend the far larger one. The analyzer that objects to it, CA1716, is silent here only because this file is generated — hence the reason living in the documentation, where it is read, rather than in a suppression that suppresses nothing.
Constructors
Event(string)
Wraps a wire code, known or not. Prefer a named member such as Agchg where one exists, and From(string?) where the value came from the server.
public Event(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
Agchg
Agency Change (AGCHG).
public static Event Agchg { get; }
Property Value
Agm
Company Meeting (AGM).
public static Event Agm { get; }
Property Value
Agncy
Agency (AGNCY).
public static Event Agncy { get; }
Property Value
Ann
Announcement (ANN).
public static Event Ann { get; }
Property Value
Arr
Arrangement (ARR).
public static Event Arr { get; }
Property Value
Assm
Assimilation (ASSM).
public static Event Assm { get; }
Property Value
Auct
Auction (AUCT).
public static Event Auct { get; }
Property Value
Bb
Buyback (BB).
public static Event Bb { get; }
Property Value
Bbc
Bloomberg Composite ID (BBC).
public static Event Bbc { get; }
Property Value
Bbcc
Bloomberg Composite ID Change (BBCC).
public static Event Bbcc { get; }
Property Value
Bbe
Bloomberg Exchange ID (BBE).
public static Event Bbe { get; }
Property Value
Bbec
Bloomberg Exchange ID Change (BBEC).
public static Event Bbec { get; }
Property Value
Bdc
Business Day Convention Center (BDC).
public static Event Bdc { get; }
Property Value
Bhm
Bond Holder Meeting (BHM).
public static Event Bhm { get; }
Property Value
Bkrp
Bankruptcy (BKRP).
public static Event Bkrp { get; }
Property Value
Bndlq
Bond Liquidation (BNDLQ).
public static Event Bndlq { get; }
Property Value
Bochg
Bond O/s Change (BOCHG).
public static Event Bochg { get; }
Property Value
Bon
Bonus Issue (BON).
public static Event Bon { get; }
Property Value
Bondfull
Bond Full (BONDFULL).
public static Event Bondfull { get; }
Property Value
Bondlite
Bond Lite (BONDLITE).
public static Event Bondlite { get; }
Property Value
Br
Bonus Rights (BR).
public static Event Br { get; }
Property Value
Bschg
Bond Static Change (BSCHG).
public static Event Bschg { get; }
Property Value
Bskcc
Basket Warrant Constituent Change (BSKCC).
public static Event Bskcc { get; }
Property Value
Bwchg
Basket Warrant Change (BWCHG).
public static Event Bwchg { get; }
Property Value
Call
Call (CALL).
public static Event Call { get; }
Property Value
Callput
Call-Put (CALLPUT).
public static Event Callput { get; }
Property Value
Cancel
Cancel (CANCEL).
public static Event Cancel { get; }
Property Value
Caprd
Capital Reduction (CAPRD).
public static Event Caprd { get; }
Property Value
Ch144
Link 144A Change (CH144).
public static Event Ch144 { get; }
Property Value
Cinch
CIN Change (CINCH).
public static Event Cinch { get; }
Property Value
Clean
Clean (CLEAN).
public static Event Clean { get; }
Property Value
Clsac
Class Action (CLSAC).
public static Event Clsac { get; }
Property Value
Cmacq
Compulsory Acquisition (CMACQ).
public static Event Cmacq { get; }
Property Value
Code
The wire code, or null when this names no value.
public string? Code { get; }
Property Value
Consd
Consolidation (CONSD).
public static Event Consd { get; }
Property Value
Conv
Conversion (CONV).
public static Event Conv { get; }
Property Value
Convt
Conversion Terms (CONVT).
public static Event Convt { get; }
Property Value
Corr
Correction (CORR).
public static Event Corr { get; }
Property Value
Cosnt
Consent (COSNT).
public static Event Cosnt { get; }
Property Value
Cpopn
Call Put Option Notes (CPOPN).
public static Event Cpopn { get; }
Property Value
Cpopt
Schedule (CPOPT).
public static Event Cpopt { get; }
Property Value
Crchg
Credit Rating Change (CRCHG).
public static Event Crchg { get; }
Property Value
Crdrt
Credit Ratings (CRDRT).
public static Event Crdrt { get; }
Property Value
Ctchg
Conversion Terms Change (CTCHG).
public static Event Ctchg { get; }
Property Value
Ctx
Certificate of Exchange (CTX).
public static Event Ctx { get; }
Property Value
Currd
Currency Redenomination (CURRD).
public static Event Currd { get; }
Property Value
Defunct
Defunct SEDOL (DEFUNCT).
public static Event Defunct { get; }
Property Value
Dist
Distribution (DIST).
public static Event Dist { get; }
Property Value
Div
Dividend (DIV).
public static Event Div { get; }
Property Value
Diveb
Dividend - Equity Bifurcated (DIVEB).
public static Event Diveb { get; }
Property Value
Divif
Dividend - Investment Fund (DIVIF).
public static Event Divif { get; }
Property Value
Divrc
Dividend Reclassification (DIVRC).
public static Event Divrc { get; }
Property Value
Dmrgr
Demerger (DMRGR).
public static Event Dmrgr { get; }
Property Value
Dprcp
Depository Receipt (DPRCP).
public static Event Dprcp { get; }
Property Value
Drchg
Depository Receipt Change (DRCHG).
public static Event Drchg { get; }
Property Value
Drip
Dividend Reinvestment Plan (DRIP).
public static Event Drip { get; }
Property Value
Dvst
Divestment (DVST).
public static Event Dvst { get; }
Property Value
Ent
Entitlement Issue (ENT).
public static Event Ent { get; }
Property Value
Exchg
Exchange (EXCHG).
public static Event Exchg { get; }
Property Value
Ffc
Free Float Change (FFC).
public static Event Ffc { get; }
Property Value
Fi
Further Issue (FI).
public static Event Fi { get; }
Property Value
Finch
FISN Change (FINCH).
public static Event Finch { get; }
Property Value
Frank
Franking (FRANK).
public static Event Frank { get; }
Property Value
Frnfx
FRN Fixing (FRNFX).
public static Event Frnfx { get; }
Property Value
Fsplt
Forward Split, currently only used in US events (FSPLT).
public static Event Fsplt { get; }
Property Value
Ftran
Fund Transfer (FTRAN).
public static Event Ftran { get; }
Property Value
Ftt
Financial Transaction Tax (FTT).
public static Event Ftt { get; }
Property Value
Fychg
Financial Year Change (FYCHG).
public static Event Fychg { get; }
Property Value
Gicch
GICS Change (GICCH).
public static Event Gicch { get; }
Property Value
HasValue
true when this names a code — known or not.
public bool HasValue { get; }
Property Value
Icc
International Code Change (ICC).
public static Event Icc { get; }
Property Value
Ifchg
Interest Frequency Change (IFCHG).
public static Event Ifchg { get; }
Property Value
Inchg
Country of Incorporation Change (INCHG).
public static Event Inchg { get; }
Property Value
Indef
In Default (INDEF).
public static Event Indef { get; }
Property Value
Int
Interest (INT).
public static Event Int { get; }
Property Value
Intbc
Interest Basis Change (INTBC).
public static Event Intbc { get; }
Property Value
Intpy
Interest Payment Announcement (INTPY).
public static Event Intpy { get; }
Property Value
Irchg
Interest Rate Change (IRCHG).
public static Event Irchg { 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.
Ischg
Issuer Name Change (ISCHG).
public static Event Ischg { get; }
Property Value
Issdd
Issuer Debt Default (ISSDD).
public static Event Issdd { get; }
Property Value
Issur
Issuer (ISSUR).
public static Event Issur { get; }
Property Value
KnownCodes
Every code the reference API reported for this type when the fixture was captured — 141 of them.
public static IReadOnlySet<string> KnownCodes { get; }
Property Value
Lcc
Local Code Change (LCC).
public static Event Lcc { get; }
Property Value
Leich
LEI Change (LEICH).
public static Event Leich { get; }
Property Value
Liq
Liquidation (LIQ).
public static Event Liq { get; }
Property Value
Lstat
Listing Status (LSTAT).
public static Event Lstat { get; }
Property Value
Ltchg
Lot Change (LTCHG).
public static Event Ltchg { get; }
Property Value
Mfch
Mutual Fund Change (MFCH).
public static Event Mfch { get; }
Property Value
Mfcon
Mutual Fund Conversion (MFCON).
public static Event Mfcon { get; }
Property Value
Mffech
Mutual Fund Fees Change (MFFECH).
public static Event Mffech { get; }
Property Value
Mifid
MIFID Securities (MIFID).
public static Event Mifid { get; }
Property Value
Mkchg
Market Segment Change (MKCHG).
public static Event Mkchg { get; }
Property Value
Mktsg
Market Segment (MKTSG).
public static Event Mktsg { get; }
Property Value
Mrgr
Merger (MRGR).
public static Event Mrgr { get; }
Property Value
Mtchg
Maturity Date Change (MTCHG).
public static Event Mtchg { get; }
Property Value
Nlist
New Listing (NLIST).
public static Event Nlist { get; }
Property Value
Ns
Not Specified (NS).
public static Event Ns { get; }
Property Value
Oddlt
Odd Lot Offer (ODDLT).
public static Event Oddlt { get; }
Property Value
Pid
Property Income Distribution (PID).
public static Event Pid { get; }
Property Value
Pik
Pay In Kind (PIK).
public static Event Pik { get; }
Property Value
Po
Purchase Offer (PO).
public static Event Po { get; }
Property Value
Prchg
Primary Exchange Change (PRCHG).
public static Event Prchg { get; }
Property Value
Prf
Preferential Offer (PRF).
public static Event Prf { get; }
Property Value
Pvrd
Par Value Redenomination (PVRD).
public static Event Pvrd { get; }
Property Value
Rcap
Return of Capital (RCAP).
public static Event Rcap { get; }
Property Value
Rconv
Reconvention (RCONV).
public static Event Rconv { get; }
Property Value
Rd
Record Date (RD).
public static Event Rd { get; }
Property Value
Rdnom
Redenomination (RDNOM).
public static Event Rdnom { get; }
Property Value
Redem
Redemption (REDEM).
public static Event Redem { get; }
Property Value
Redmt
Redemption Terms (REDMT).
public static Event Redmt { get; }
Property Value
Reiss
Reissuance (REISS).
public static Event Reiss { get; }
Property Value
Restore
Restore Defunct Sedol (RESTORE).
public static Event Restore { get; }
Property Value
Revert
Revert (REVERT).
public static Event Revert { get; }
Property Value
Rochg
Registered Office Change (ROCHG).
public static Event Rochg { get; }
Property Value
Rsplt
Reverse Split, currently only used in US events (RSPLT).
public static Event Rsplt { get; }
Property Value
Rtrac
Retractions (RTRAC).
public static Event Rtrac { get; }
Property Value
Rts
Rights (RTS).
public static Event Rts { get; }
Property Value
Sachg
Security Agency Change (SACHG).
public static Event Sachg { get; }
Property Value
Sbfdch
Sub Fund Change (SBFDCH).
public static Event Sbfdch { get; }
Property Value
Sbfdtr
Sub Fund Transfer (SBFDTR).
public static Event Sbfdtr { get; }
Property Value
Scagy
Security Agency (SCAGY).
public static Event Scagy { get; }
Property Value
Scchg
Security Name Change (SCCHG).
public static Event Scchg { get; }
Property Value
Scexh
Security Exchange (SCEXH).
public static Event Scexh { get; }
Property Value
Scmst
Security Master (SCMST).
public static Event Scmst { get; }
Property Value
Scswp
Security Swap (SCSWP).
public static Event Scswp { get; }
Property Value
Scxtc
Security Exchange Trading Currency (SCXTC).
public static Event Scxtc { get; }
Property Value
Sd
Sub Division (SD).
public static Event Sd { get; }
Property Value
Sdchg
Sedol Change (SDCHG).
public static Event Sdchg { get; }
Property Value
Sdlexc
SEDOL Exchange Change (SDLEXC).
public static Event Sdlexc { get; }
Property Value
Secrc
Security Re-classification (SECRC).
public static Event Secrc { get; }
Property Value
Sedol
SEDOL (SEDOL).
public static Event Sedol { get; }
Property Value
Shoch
Shares Outstanding Change (SHOCH).
public static Event Shoch { get; }
Property Value
Soff
Spin-Off, currently only used in US events (SOFF).
public static Event Soff { get; }
Property Value
Sxtch
Security Exchange Trading Currency Change (SXTCH).
public static Event Sxtch { get; }
Property Value
Tkovr
Takeover (TKOVR).
public static Event Tkovr { get; }
Property Value
Tlelk
Temp Line Security (TLELK).
public static Event Tlelk { get; }
Property Value
Trchg
Treasury Shares Change (TRCHG).
public static Event Trchg { get; }
Property Value
Trnch
Tranche (TRNCH).
public static Event Trnch { get; }
Property Value
Umchg
Umbrella Programme Change (UMCHG).
public static Event Umchg { get; }
Property Value
Unstp
Unstaple (UNSTP).
public static Event Unstp { get; }
Property Value
Usintch
US International Code Change (USINTCH).
public static Event Usintch { get; }
Property Value
Warex
Warrant Exercise (WAREX).
public static Event Warex { get; }
Property Value
Wtchg
Warrant Terms Change (WTCHG).
public static Event Wtchg { get; }
Property Value
Wxchg
Warrant Exercise Change (WXCHG).
public static Event Wxchg { get; }
Property Value
Methods
From(string?)
public static Event From(string? code)
Parameters
Returns
- Event
The value.
ToString()
The wire code, or the empty string when this names no value.
public override string ToString()
Returns
- string
The wire code.