Expand description
Market data types for encoding different Databento Schemas
in the most recent DBN version, as well as conversion functions.
Structs§
- A level.
- Consolidated market by price implementation with a known book depth of 1. The record of the
Cmbp1schema. - A price level consolidated from multiple venues.
- An error message from the Databento Live Subscription Gateway (LSG).
- An auction imbalance message.
- Definition of an instrument. The record of the
Definitionschema. - A market-by-order (MBO) tick message. The record of the
Mboschema. - Market by price implementation with a known book depth of 1. The record of the
Mbp1schema. - Market by price implementation with a known book depth of 10. The record of the
Mbp10schema. - Open, high, low, close, and volume. The record of the following schemas:
- Common data for all Databento records. Always found at the beginning of a record struct.
- A statistics message. A catchall for various data disseminated by publishers. The
stat_typeindicates the statistic contained in the message. - A trading status update message. The record of the
Statusschema. - A symbol mapping message which maps a symbol of one
STypeto another. - A non-error message from the Databento Live Subscription Gateway (LSG). Also used for heartbeating.
- Market by price implementation with a book depth of 0. Equivalent to MBP-0. The record of the
Tradesschema. - Wrapper object for records that include the live gateway send timestamp (
ts_out).
Traits§
- Used for polymorphism around types all beginning with a
RecordHeaderwherertypeis the discriminant used for indicating the type of record. - Used for polymorphism around mutable types beginning with a
RecordHeader.
Functions§
- Tries to convert a slice of
c_chars to a UTF-8str. - Tries to convert a str slice to fixed-length null-terminated C char array.
- Provides a relatively safe method for converting a view on bytes into a a
RecordHeader. Because it accepts a reference, the lifetime of the returned reference is tied to the input. - Provides a relatively safe method for converting a reference to a
RecordHeaderto a struct beginning with the header. Because it accepts a reference, the lifetime of the returned reference is tied to the input. - Provides a relatively safe method for converting a reference to
RecordHeaderto a struct beginning with the header. Because it accepts a reference, the lifetime of the returned reference is tied to the input. This function checksrtypebefore casting to ensurebytescontains aT. - Provides a relatively safe method for converting a mut reference to a
RecordHeaderto a struct beginning with the header. Because it accepts a reference, the lifetime of the returned reference is tied to the input. - Parses a raw nanosecond-precision UNIX timestamp to an
OffsetDateTime. ReturnsNoneiftscontains the sentinel for a null timestamp.