Class SecurityMasterWireStrings
- Namespace
- DatabentoDotNet.Reference
- Assembly
- DatabentoDotNet.Reference.dll
Wire-string conversions for the enums the security_master.* endpoints carry.
public static class SecurityMasterWireStrings
- Inheritance
-
SecurityMasterWireStrings
- Inherited Members
Remarks
Named for its endpoint group, as BatchWireStrings and
MetadataWireStrings are, and holding to the same
contract as WireStrings: ToWireString throws
ArgumentOutOfRangeException for a value outside the defined set rather than
inventing a spelling for it. It holds one method because this endpoint group has one enum.
Separate from ReferenceWireStrings, which is a different kind of table.
That one carries the nine closed response alphabets: one character each, byte-backed,
with a TryParse half that the JSON converters call on every row. This is a
request enum with a multi-character spelling that nothing ever reads back.
There is deliberately no TryParseSecurityMasterIndex. No reference response
carries an index, so a parse direction would be public surface with no caller and no wire to
check it against — the same call Json.ReferenceCodeJsonConverter makes about property-name
support. Add it with the first response that needs one.
Methods
ToWireString(SecurityMasterIndex)
Returns the wire string for value.
public static string ToWireString(this SecurityMasterIndex value)
Parameters
valueSecurityMasterIndexThe index.
Returns
- string
The wire string.
Remarks
The two spellings are upstream's Display impl (security.rs:297-304), and they
are the names of the response fields they filter on — so a spelling that drifted from
TsEffective or TsRecord would be
wrong in a way the model itself records.
Exceptions
- ArgumentOutOfRangeException
valueis not a defined SecurityMasterIndex.