|
6 | 6 | from databento_dbn import CMBP1Msg |
7 | 7 | from databento_dbn import ImbalanceMsg |
8 | 8 | from databento_dbn import InstrumentDefMsg |
9 | | -from databento_dbn import InstrumentDefMsgV1 |
10 | 9 | from databento_dbn import MBOMsg |
11 | 10 | from databento_dbn import MBP1Msg |
12 | 11 | from databento_dbn import MBP10Msg |
|
15 | 14 | from databento_dbn import StatMsg |
16 | 15 | from databento_dbn import StatusMsg |
17 | 16 | from databento_dbn import TradeMsg |
| 17 | +from databento_dbn import v1 |
| 18 | +from databento_dbn import v2 |
18 | 19 |
|
19 | 20 | from databento.common.types import DBNRecord |
20 | 21 |
|
|
51 | 52 | Schema.BBO_1M: BBOMsg, |
52 | 53 | } |
53 | 54 |
|
| 55 | +SCHEMA_STRUCT_MAP_V2: Final[dict[Schema, type[DBNRecord]]] = { |
| 56 | + Schema.DEFINITION: v2.InstrumentDefMsg, |
| 57 | + Schema.IMBALANCE: v2.ImbalanceMsg, |
| 58 | + Schema.MBO: v2.MBOMsg, |
| 59 | + Schema.MBP_1: v2.MBP1Msg, |
| 60 | + Schema.MBP_10: v2.MBP10Msg, |
| 61 | + Schema.OHLCV_1S: v2.OHLCVMsg, |
| 62 | + Schema.OHLCV_1M: v2.OHLCVMsg, |
| 63 | + Schema.OHLCV_1H: v2.OHLCVMsg, |
| 64 | + Schema.OHLCV_1D: v2.OHLCVMsg, |
| 65 | + Schema.STATISTICS: v2.StatMsg, |
| 66 | + Schema.STATUS: v2.StatusMsg, |
| 67 | + Schema.TBBO: v2.MBP1Msg, |
| 68 | + Schema.TRADES: v2.TradeMsg, |
| 69 | + Schema.CMBP_1: v2.CMBP1Msg, |
| 70 | + Schema.CBBO_1S: v2.CBBOMsg, |
| 71 | + Schema.CBBO_1M: v2.CBBOMsg, |
| 72 | + Schema.TCBBO: v2.CBBOMsg, |
| 73 | + Schema.BBO_1S: v2.BBOMsg, |
| 74 | + Schema.BBO_1M: v2.BBOMsg, |
| 75 | +} |
| 76 | + |
54 | 77 | SCHEMA_STRUCT_MAP_V1: Final[dict[Schema, type[DBNRecord]]] = { |
55 | | - Schema.DEFINITION: InstrumentDefMsgV1, |
56 | | - Schema.IMBALANCE: ImbalanceMsg, |
57 | | - Schema.MBO: MBOMsg, |
58 | | - Schema.MBP_1: MBP1Msg, |
59 | | - Schema.MBP_10: MBP10Msg, |
60 | | - Schema.OHLCV_1S: OHLCVMsg, |
61 | | - Schema.OHLCV_1M: OHLCVMsg, |
62 | | - Schema.OHLCV_1H: OHLCVMsg, |
63 | | - Schema.OHLCV_1D: OHLCVMsg, |
64 | | - Schema.STATISTICS: StatMsg, |
65 | | - Schema.STATUS: StatusMsg, |
66 | | - Schema.TBBO: MBP1Msg, |
67 | | - Schema.TRADES: TradeMsg, |
68 | | - Schema.CMBP_1: CMBP1Msg, |
69 | | - Schema.CBBO_1S: CBBOMsg, |
70 | | - Schema.CBBO_1M: CBBOMsg, |
71 | | - Schema.TCBBO: CBBOMsg, |
72 | | - Schema.BBO_1S: BBOMsg, |
73 | | - Schema.BBO_1M: BBOMsg, |
| 78 | + Schema.DEFINITION: v1.InstrumentDefMsg, |
| 79 | + Schema.IMBALANCE: v1.ImbalanceMsg, |
| 80 | + Schema.MBO: v1.MBOMsg, |
| 81 | + Schema.MBP_1: v1.MBP1Msg, |
| 82 | + Schema.MBP_10: v1.MBP10Msg, |
| 83 | + Schema.OHLCV_1S: v1.OHLCVMsg, |
| 84 | + Schema.OHLCV_1M: v1.OHLCVMsg, |
| 85 | + Schema.OHLCV_1H: v1.OHLCVMsg, |
| 86 | + Schema.OHLCV_1D: v1.OHLCVMsg, |
| 87 | + Schema.STATISTICS: v1.StatMsg, |
| 88 | + Schema.STATUS: v1.StatusMsg, |
| 89 | + Schema.TBBO: v1.MBP1Msg, |
| 90 | + Schema.TRADES: v1.TradeMsg, |
| 91 | + Schema.CMBP_1: v1.CMBP1Msg, |
| 92 | + Schema.CBBO_1S: v1.CBBOMsg, |
| 93 | + Schema.CBBO_1M: v1.CBBOMsg, |
| 94 | + Schema.TCBBO: v1.CBBOMsg, |
| 95 | + Schema.BBO_1S: v1.BBOMsg, |
| 96 | + Schema.BBO_1M: v1.BBOMsg, |
74 | 97 | } |
75 | 98 |
|
76 | 99 |
|
|
0 commit comments