databento-dbn 0.42.0__cp311-cp311-win_amd64.whl → 0.43.0__cp311-cp311-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of databento-dbn might be problematic. Click here for more details.
- databento_dbn/_lib.cp311-win_amd64.pyd +0 -0
- databento_dbn/_lib.pyi +87 -73
- {databento_dbn-0.42.0.dist-info → databento_dbn-0.43.0.dist-info}/METADATA +7 -3
- databento_dbn-0.43.0.dist-info/RECORD +10 -0
- {databento_dbn-0.42.0.dist-info → databento_dbn-0.43.0.dist-info}/WHEEL +1 -1
- databento_dbn-0.42.0.dist-info/RECORD +0 -10
|
Binary file
|
databento_dbn/_lib.pyi
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# ruff: noqa: UP007
|
|
1
|
+
# ruff: noqa: UP007 PYI021 PYI011 PYI014
|
|
2
2
|
from __future__ import annotations
|
|
3
3
|
|
|
4
4
|
import datetime as dt
|
|
@@ -20,6 +20,13 @@ UNDEF_PRICE: int
|
|
|
20
20
|
UNDEF_ORDER_SIZE: int
|
|
21
21
|
UNDEF_STAT_QUANTITY: int
|
|
22
22
|
UNDEF_TIMESTAMP: int
|
|
23
|
+
F_LAST: int
|
|
24
|
+
F_TOB: int
|
|
25
|
+
F_SNAPSHOT: int
|
|
26
|
+
F_MBP: int
|
|
27
|
+
F_BAD_TS_RECV: int
|
|
28
|
+
F_MAYBE_BAD_BOOK: int
|
|
29
|
+
F_PUBLISHER_SPECIFIC: int
|
|
23
30
|
|
|
24
31
|
_DBNRecord = Union[
|
|
25
32
|
Metadata,
|
|
@@ -1293,6 +1300,8 @@ class ErrorCode(Enum):
|
|
|
1293
1300
|
There was an issue with a subscription request (other than symbol resolution).
|
|
1294
1301
|
INTERNAL_ERROR
|
|
1295
1302
|
An error occurred in the gateway.
|
|
1303
|
+
UNSET
|
|
1304
|
+
No error code was specified or this record was upgraded from a version 1 struct where the code field didn't exist.
|
|
1296
1305
|
|
|
1297
1306
|
"""
|
|
1298
1307
|
|
|
@@ -1302,6 +1311,7 @@ class ErrorCode(Enum):
|
|
|
1302
1311
|
SYMBOL_RESOLUTION_FAILED: int
|
|
1303
1312
|
INVALID_SUBSCRIPTION: int
|
|
1304
1313
|
INTERNAL_ERROR: int
|
|
1314
|
+
UNSET: int
|
|
1305
1315
|
|
|
1306
1316
|
def __init__(self, value: int) -> None: ...
|
|
1307
1317
|
@classmethod
|
|
@@ -1327,6 +1337,9 @@ class SystemCode(Enum):
|
|
|
1327
1337
|
Indicates a replay subscription has caught up with real-time data.
|
|
1328
1338
|
END_OF_INTERVAL
|
|
1329
1339
|
Signals that all records for interval-based schemas have been published for the given timestamp.
|
|
1340
|
+
UNSET
|
|
1341
|
+
No system code was specified or this record was upgraded from a version 1 struct where
|
|
1342
|
+
the code field didn't exist.
|
|
1330
1343
|
|
|
1331
1344
|
"""
|
|
1332
1345
|
|
|
@@ -1335,6 +1348,7 @@ class SystemCode(Enum):
|
|
|
1335
1348
|
SLOW_READER_WARNING: int
|
|
1336
1349
|
REPLAY_COMPLETED: int
|
|
1337
1350
|
END_OF_INTERVAL: int
|
|
1351
|
+
UNSET: int
|
|
1338
1352
|
|
|
1339
1353
|
def __init__(self, value: int) -> None: ...
|
|
1340
1354
|
@classmethod
|
|
@@ -1444,7 +1458,7 @@ class MBOMsg(Record):
|
|
|
1444
1458
|
"""
|
|
1445
1459
|
|
|
1446
1460
|
@property
|
|
1447
|
-
def action(self) -> Action:
|
|
1461
|
+
def action(self) -> Action | str:
|
|
1448
1462
|
"""
|
|
1449
1463
|
The event action. Can be **A**dd, **C**ancel, **M**odify, clea**R** book, **T**rade, **F**ill, or **N**one.
|
|
1450
1464
|
|
|
@@ -1452,12 +1466,12 @@ class MBOMsg(Record):
|
|
|
1452
1466
|
|
|
1453
1467
|
Returns
|
|
1454
1468
|
-------
|
|
1455
|
-
Action
|
|
1469
|
+
Action | str
|
|
1456
1470
|
|
|
1457
1471
|
"""
|
|
1458
1472
|
|
|
1459
1473
|
@property
|
|
1460
|
-
def side(self) -> Side:
|
|
1474
|
+
def side(self) -> Side | str:
|
|
1461
1475
|
"""
|
|
1462
1476
|
The side that initiates the event. Can be **A**sk for a sell order (or sell aggressor in
|
|
1463
1477
|
a trade), **B**id for a buy order (or buy aggressor in a trade), or **N**one where no side is specified.
|
|
@@ -1466,7 +1480,7 @@ class MBOMsg(Record):
|
|
|
1466
1480
|
|
|
1467
1481
|
Returns
|
|
1468
1482
|
-------
|
|
1469
|
-
Side
|
|
1483
|
+
Side | str
|
|
1470
1484
|
|
|
1471
1485
|
"""
|
|
1472
1486
|
|
|
@@ -1840,7 +1854,7 @@ class TradeMsg(Record):
|
|
|
1840
1854
|
"""
|
|
1841
1855
|
|
|
1842
1856
|
@property
|
|
1843
|
-
def action(self) -> Action:
|
|
1857
|
+
def action(self) -> Action | str:
|
|
1844
1858
|
"""
|
|
1845
1859
|
The event action. Always **T**rade in the trades schema.
|
|
1846
1860
|
|
|
@@ -1848,12 +1862,12 @@ class TradeMsg(Record):
|
|
|
1848
1862
|
|
|
1849
1863
|
Returns
|
|
1850
1864
|
-------
|
|
1851
|
-
Action
|
|
1865
|
+
Action | str
|
|
1852
1866
|
|
|
1853
1867
|
"""
|
|
1854
1868
|
|
|
1855
1869
|
@property
|
|
1856
|
-
def side(self) -> Side:
|
|
1870
|
+
def side(self) -> Side | str:
|
|
1857
1871
|
"""
|
|
1858
1872
|
The side that initiates the trade. Can be **A**sk for a sell aggressor in a trade, **B**id for a buy aggressor in a trade, or **N**one where no side is specified.
|
|
1859
1873
|
|
|
@@ -1861,7 +1875,7 @@ class TradeMsg(Record):
|
|
|
1861
1875
|
|
|
1862
1876
|
Returns
|
|
1863
1877
|
-------
|
|
1864
|
-
Side
|
|
1878
|
+
Side | str
|
|
1865
1879
|
|
|
1866
1880
|
"""
|
|
1867
1881
|
|
|
@@ -2006,7 +2020,7 @@ class MBP1Msg(Record):
|
|
|
2006
2020
|
"""
|
|
2007
2021
|
|
|
2008
2022
|
@property
|
|
2009
|
-
def action(self) -> Action:
|
|
2023
|
+
def action(self) -> Action | str:
|
|
2010
2024
|
"""
|
|
2011
2025
|
The event action. Can be **A**dd, **C**ancel, **M**odify, clea**R** book, or **T**rade.
|
|
2012
2026
|
|
|
@@ -2014,12 +2028,12 @@ class MBP1Msg(Record):
|
|
|
2014
2028
|
|
|
2015
2029
|
Returns
|
|
2016
2030
|
-------
|
|
2017
|
-
Action
|
|
2031
|
+
Action | str
|
|
2018
2032
|
|
|
2019
2033
|
"""
|
|
2020
2034
|
|
|
2021
2035
|
@property
|
|
2022
|
-
def side(self) -> Side:
|
|
2036
|
+
def side(self) -> Side | str:
|
|
2023
2037
|
"""
|
|
2024
2038
|
The side that initiates the event. Can be **A**sk for a sell order (or sell aggressor in
|
|
2025
2039
|
a trade), **B**id for a buy order (or buy aggressor in a trade), or **N**one where no side is specified.
|
|
@@ -2028,7 +2042,7 @@ class MBP1Msg(Record):
|
|
|
2028
2042
|
|
|
2029
2043
|
Returns
|
|
2030
2044
|
-------
|
|
2031
|
-
Side
|
|
2045
|
+
Side | str
|
|
2032
2046
|
|
|
2033
2047
|
"""
|
|
2034
2048
|
|
|
@@ -2188,7 +2202,7 @@ class MBP10Msg(Record):
|
|
|
2188
2202
|
"""
|
|
2189
2203
|
|
|
2190
2204
|
@property
|
|
2191
|
-
def action(self) -> Action:
|
|
2205
|
+
def action(self) -> Action | str:
|
|
2192
2206
|
"""
|
|
2193
2207
|
The event action. Can be **A**dd, **C**ancel, **M**odify, clea**R** book, or **T**rade.
|
|
2194
2208
|
|
|
@@ -2196,12 +2210,12 @@ class MBP10Msg(Record):
|
|
|
2196
2210
|
|
|
2197
2211
|
Returns
|
|
2198
2212
|
-------
|
|
2199
|
-
Action
|
|
2213
|
+
Action | str
|
|
2200
2214
|
|
|
2201
2215
|
"""
|
|
2202
2216
|
|
|
2203
2217
|
@property
|
|
2204
|
-
def side(self) -> Side:
|
|
2218
|
+
def side(self) -> Side | str:
|
|
2205
2219
|
"""
|
|
2206
2220
|
The side that initiates the event. Can be **A**sk for a sell order (or sell aggressor in
|
|
2207
2221
|
a trade), **B**id for a buy order (or buy aggressor in a trade), or **N**one where no side is specified.
|
|
@@ -2210,7 +2224,7 @@ class MBP10Msg(Record):
|
|
|
2210
2224
|
|
|
2211
2225
|
Returns
|
|
2212
2226
|
-------
|
|
2213
|
-
Side
|
|
2227
|
+
Side | str
|
|
2214
2228
|
|
|
2215
2229
|
"""
|
|
2216
2230
|
|
|
@@ -2368,7 +2382,7 @@ class BBOMsg(Record):
|
|
|
2368
2382
|
"""
|
|
2369
2383
|
|
|
2370
2384
|
@property
|
|
2371
|
-
def side(self) -> Side:
|
|
2385
|
+
def side(self) -> Side | str:
|
|
2372
2386
|
"""
|
|
2373
2387
|
The side that initiated the last trade. Can be **A**sk for a sell order (or sell
|
|
2374
2388
|
aggressor in a trade), **B**id for a buy order (or buy aggressor in a trade), or
|
|
@@ -2378,7 +2392,7 @@ class BBOMsg(Record):
|
|
|
2378
2392
|
|
|
2379
2393
|
Returns
|
|
2380
2394
|
-------
|
|
2381
|
-
Side
|
|
2395
|
+
Side | str
|
|
2382
2396
|
|
|
2383
2397
|
"""
|
|
2384
2398
|
|
|
@@ -2512,7 +2526,7 @@ class CMBP1Msg(Record):
|
|
|
2512
2526
|
"""
|
|
2513
2527
|
|
|
2514
2528
|
@property
|
|
2515
|
-
def action(self) -> Action:
|
|
2529
|
+
def action(self) -> Action | str:
|
|
2516
2530
|
"""
|
|
2517
2531
|
The event action. Can be **A**dd, **C**ancel, **M**odify, clea**R** book, or **T**rade.
|
|
2518
2532
|
|
|
@@ -2520,12 +2534,12 @@ class CMBP1Msg(Record):
|
|
|
2520
2534
|
|
|
2521
2535
|
Returns
|
|
2522
2536
|
-------
|
|
2523
|
-
Action
|
|
2537
|
+
Action | str
|
|
2524
2538
|
|
|
2525
2539
|
"""
|
|
2526
2540
|
|
|
2527
2541
|
@property
|
|
2528
|
-
def side(self) -> Side:
|
|
2542
|
+
def side(self) -> Side | str:
|
|
2529
2543
|
"""
|
|
2530
2544
|
The side that initiates the event. Can be **A**sk for a sell order (or sell aggressor in
|
|
2531
2545
|
a trade), **B**id for a buy order (or buy aggressor in a trade), or **N**one where no side is specified.
|
|
@@ -2534,7 +2548,7 @@ class CMBP1Msg(Record):
|
|
|
2534
2548
|
|
|
2535
2549
|
Returns
|
|
2536
2550
|
-------
|
|
2537
|
-
Side
|
|
2551
|
+
Side | str
|
|
2538
2552
|
|
|
2539
2553
|
"""
|
|
2540
2554
|
|
|
@@ -2668,7 +2682,7 @@ class CBBOMsg(Record):
|
|
|
2668
2682
|
"""
|
|
2669
2683
|
|
|
2670
2684
|
@property
|
|
2671
|
-
def side(self) -> Side:
|
|
2685
|
+
def side(self) -> Side | str:
|
|
2672
2686
|
"""
|
|
2673
2687
|
The side that initiated the last trade. Can be **A**sk for a sell order (or sell
|
|
2674
2688
|
aggressor in a trade), **B**id for a buy order (or buy aggressor in a trade), or
|
|
@@ -2678,7 +2692,7 @@ class CBBOMsg(Record):
|
|
|
2678
2692
|
|
|
2679
2693
|
Returns
|
|
2680
2694
|
-------
|
|
2681
|
-
Side
|
|
2695
|
+
Side | str
|
|
2682
2696
|
|
|
2683
2697
|
"""
|
|
2684
2698
|
|
|
@@ -2958,35 +2972,35 @@ class StatusMsg(Record):
|
|
|
2958
2972
|
"""
|
|
2959
2973
|
|
|
2960
2974
|
@property
|
|
2961
|
-
def action(self) -> StatusAction:
|
|
2975
|
+
def action(self) -> StatusAction | int:
|
|
2962
2976
|
"""
|
|
2963
2977
|
The type of status change.
|
|
2964
2978
|
|
|
2965
2979
|
Returns
|
|
2966
2980
|
-------
|
|
2967
|
-
StatusAction
|
|
2981
|
+
StatusAction | int
|
|
2968
2982
|
|
|
2969
2983
|
"""
|
|
2970
2984
|
|
|
2971
2985
|
@property
|
|
2972
|
-
def reason(self) -> StatusReason:
|
|
2986
|
+
def reason(self) -> StatusReason | int:
|
|
2973
2987
|
"""
|
|
2974
2988
|
Additional details about the cause of the status change.
|
|
2975
2989
|
|
|
2976
2990
|
Returns
|
|
2977
2991
|
-------
|
|
2978
|
-
StatusReason
|
|
2992
|
+
StatusReason | int
|
|
2979
2993
|
|
|
2980
2994
|
"""
|
|
2981
2995
|
|
|
2982
2996
|
@property
|
|
2983
|
-
def trading_event(self) -> TradingEvent:
|
|
2997
|
+
def trading_event(self) -> TradingEvent | int:
|
|
2984
2998
|
"""
|
|
2985
2999
|
Further information about the status change and its effect on trading.
|
|
2986
3000
|
|
|
2987
3001
|
Returns
|
|
2988
3002
|
-------
|
|
2989
|
-
TradingEvent
|
|
3003
|
+
TradingEvent | int
|
|
2990
3004
|
|
|
2991
3005
|
"""
|
|
2992
3006
|
|
|
@@ -3976,7 +3990,7 @@ class InstrumentDefMsg(Record):
|
|
|
3976
3990
|
"""
|
|
3977
3991
|
|
|
3978
3992
|
@property
|
|
3979
|
-
def instrument_class(self) -> InstrumentClass:
|
|
3993
|
+
def instrument_class(self) -> InstrumentClass | str:
|
|
3980
3994
|
"""
|
|
3981
3995
|
The classification of the instrument.
|
|
3982
3996
|
|
|
@@ -3984,12 +3998,12 @@ class InstrumentDefMsg(Record):
|
|
|
3984
3998
|
|
|
3985
3999
|
Returns
|
|
3986
4000
|
-------
|
|
3987
|
-
InstrumentClass
|
|
4001
|
+
InstrumentClass | str
|
|
3988
4002
|
|
|
3989
4003
|
"""
|
|
3990
4004
|
|
|
3991
4005
|
@property
|
|
3992
|
-
def match_algorithm(self) -> MatchAlgorithm:
|
|
4006
|
+
def match_algorithm(self) -> MatchAlgorithm | str:
|
|
3993
4007
|
"""
|
|
3994
4008
|
The matching algorithm used for the instrument, typically **F**IFO.
|
|
3995
4009
|
|
|
@@ -3997,7 +4011,7 @@ class InstrumentDefMsg(Record):
|
|
|
3997
4011
|
|
|
3998
4012
|
Returns
|
|
3999
4013
|
-------
|
|
4000
|
-
MatchAlgorithm
|
|
4014
|
+
MatchAlgorithm | str
|
|
4001
4015
|
|
|
4002
4016
|
"""
|
|
4003
4017
|
|
|
@@ -4046,13 +4060,13 @@ class InstrumentDefMsg(Record):
|
|
|
4046
4060
|
"""
|
|
4047
4061
|
|
|
4048
4062
|
@property
|
|
4049
|
-
def security_update_action(self) -> SecurityUpdateAction:
|
|
4063
|
+
def security_update_action(self) -> SecurityUpdateAction | str:
|
|
4050
4064
|
"""
|
|
4051
4065
|
Indicates if the instrument definition has been added, modified, or deleted.
|
|
4052
4066
|
|
|
4053
4067
|
Returns
|
|
4054
4068
|
-------
|
|
4055
|
-
SecurityUpdateAction
|
|
4069
|
+
SecurityUpdateAction | str
|
|
4056
4070
|
|
|
4057
4071
|
"""
|
|
4058
4072
|
|
|
@@ -4090,13 +4104,13 @@ class InstrumentDefMsg(Record):
|
|
|
4090
4104
|
"""
|
|
4091
4105
|
|
|
4092
4106
|
@property
|
|
4093
|
-
def user_defined_instrument(self) -> UserDefinedInstrument:
|
|
4107
|
+
def user_defined_instrument(self) -> UserDefinedInstrument | str:
|
|
4094
4108
|
"""
|
|
4095
4109
|
Indicates if the instrument is user defined: **Y**es or **N**o.
|
|
4096
4110
|
|
|
4097
4111
|
Returns
|
|
4098
4112
|
-------
|
|
4099
|
-
UserDefinedInstrument
|
|
4113
|
+
UserDefinedInstrument | str
|
|
4100
4114
|
|
|
4101
4115
|
"""
|
|
4102
4116
|
|
|
@@ -4134,24 +4148,24 @@ class InstrumentDefMsg(Record):
|
|
|
4134
4148
|
"""
|
|
4135
4149
|
|
|
4136
4150
|
@property
|
|
4137
|
-
def leg_instrument_class(self) -> InstrumentClass:
|
|
4151
|
+
def leg_instrument_class(self) -> InstrumentClass | str:
|
|
4138
4152
|
"""
|
|
4139
4153
|
The classification of the leg instrument.
|
|
4140
4154
|
|
|
4141
4155
|
Returns
|
|
4142
4156
|
-------
|
|
4143
|
-
InstrumentClass
|
|
4157
|
+
InstrumentClass | str
|
|
4144
4158
|
|
|
4145
4159
|
"""
|
|
4146
4160
|
|
|
4147
4161
|
@property
|
|
4148
|
-
def leg_side(self) -> Side:
|
|
4162
|
+
def leg_side(self) -> Side | str:
|
|
4149
4163
|
"""
|
|
4150
4164
|
The side taken for the leg when purchasing the spread.
|
|
4151
4165
|
|
|
4152
4166
|
Returns
|
|
4153
4167
|
-------
|
|
4154
|
-
Side
|
|
4168
|
+
Side | str
|
|
4155
4169
|
|
|
4156
4170
|
"""
|
|
4157
4171
|
|
|
@@ -4511,7 +4525,7 @@ class ImbalanceMsg(Record):
|
|
|
4511
4525
|
"""
|
|
4512
4526
|
|
|
4513
4527
|
@property
|
|
4514
|
-
def side(self) -> Side:
|
|
4528
|
+
def side(self) -> Side | str:
|
|
4515
4529
|
"""
|
|
4516
4530
|
The market side of the `total_imbalance_qty`. Can be **A**sk, **B**id, or **N**one.
|
|
4517
4531
|
|
|
@@ -4519,7 +4533,7 @@ class ImbalanceMsg(Record):
|
|
|
4519
4533
|
|
|
4520
4534
|
Returns
|
|
4521
4535
|
-------
|
|
4522
|
-
Side
|
|
4536
|
+
Side | str
|
|
4523
4537
|
|
|
4524
4538
|
"""
|
|
4525
4539
|
|
|
@@ -4557,13 +4571,13 @@ class ImbalanceMsg(Record):
|
|
|
4557
4571
|
"""
|
|
4558
4572
|
|
|
4559
4573
|
@property
|
|
4560
|
-
def unpaired_side(self) -> Side:
|
|
4574
|
+
def unpaired_side(self) -> Side | str:
|
|
4561
4575
|
"""
|
|
4562
4576
|
Reserved for future use.
|
|
4563
4577
|
|
|
4564
4578
|
Returns
|
|
4565
4579
|
-------
|
|
4566
|
-
Side
|
|
4580
|
+
Side | str
|
|
4567
4581
|
|
|
4568
4582
|
"""
|
|
4569
4583
|
|
|
@@ -4722,14 +4736,14 @@ class StatMsg(Record):
|
|
|
4722
4736
|
"""
|
|
4723
4737
|
|
|
4724
4738
|
@property
|
|
4725
|
-
def stat_type(self) -> StatType:
|
|
4739
|
+
def stat_type(self) -> StatType | int:
|
|
4726
4740
|
"""
|
|
4727
4741
|
The type of statistic value contained in the message. Refer to the
|
|
4728
4742
|
`StatType` enum for possible variants.
|
|
4729
4743
|
|
|
4730
4744
|
Returns
|
|
4731
4745
|
-------
|
|
4732
|
-
StatType
|
|
4746
|
+
StatType | int
|
|
4733
4747
|
|
|
4734
4748
|
"""
|
|
4735
4749
|
|
|
@@ -4745,14 +4759,14 @@ class StatMsg(Record):
|
|
|
4745
4759
|
"""
|
|
4746
4760
|
|
|
4747
4761
|
@property
|
|
4748
|
-
def update_action(self) -> StatUpdateAction:
|
|
4762
|
+
def update_action(self) -> StatUpdateAction | int:
|
|
4749
4763
|
"""
|
|
4750
4764
|
Indicates if the statistic is newly added (1) or deleted (2). (Deleted is only
|
|
4751
4765
|
used with some stat types).
|
|
4752
4766
|
|
|
4753
4767
|
Returns
|
|
4754
4768
|
-------
|
|
4755
|
-
StatUpdateAction
|
|
4769
|
+
StatUpdateAction | int
|
|
4756
4770
|
|
|
4757
4771
|
"""
|
|
4758
4772
|
|
|
@@ -4788,13 +4802,13 @@ class ErrorMsg(Record):
|
|
|
4788
4802
|
"""
|
|
4789
4803
|
|
|
4790
4804
|
@property
|
|
4791
|
-
def code(self) -> ErrorCode:
|
|
4805
|
+
def code(self) -> ErrorCode | int:
|
|
4792
4806
|
"""
|
|
4793
4807
|
The error code. See the `ErrorCode` enum for possible values.
|
|
4794
4808
|
|
|
4795
4809
|
Returns
|
|
4796
4810
|
-------
|
|
4797
|
-
ErrorCode
|
|
4811
|
+
ErrorCode | int
|
|
4798
4812
|
|
|
4799
4813
|
"""
|
|
4800
4814
|
|
|
@@ -4830,13 +4844,13 @@ class SymbolMappingMsg(Record):
|
|
|
4830
4844
|
end_ts: int,
|
|
4831
4845
|
) -> None: ...
|
|
4832
4846
|
@property
|
|
4833
|
-
def stype_in(self) -> SType:
|
|
4847
|
+
def stype_in(self) -> SType | int:
|
|
4834
4848
|
"""
|
|
4835
4849
|
The input symbology type of `stype_in_symbol`.
|
|
4836
4850
|
|
|
4837
4851
|
Returns
|
|
4838
4852
|
-------
|
|
4839
|
-
SType
|
|
4853
|
+
SType | int
|
|
4840
4854
|
|
|
4841
4855
|
"""
|
|
4842
4856
|
|
|
@@ -4852,13 +4866,13 @@ class SymbolMappingMsg(Record):
|
|
|
4852
4866
|
"""
|
|
4853
4867
|
|
|
4854
4868
|
@property
|
|
4855
|
-
def stype_out(self) -> SType:
|
|
4869
|
+
def stype_out(self) -> SType | int:
|
|
4856
4870
|
"""
|
|
4857
4871
|
The output symbology type of `stype_out_symbol`.
|
|
4858
4872
|
|
|
4859
4873
|
Returns
|
|
4860
4874
|
-------
|
|
4861
|
-
SType
|
|
4875
|
+
SType | int
|
|
4862
4876
|
|
|
4863
4877
|
"""
|
|
4864
4878
|
|
|
@@ -4952,13 +4966,13 @@ class SystemMsg(Record):
|
|
|
4952
4966
|
"""
|
|
4953
4967
|
|
|
4954
4968
|
@property
|
|
4955
|
-
def code(self) -> SystemCode:
|
|
4969
|
+
def code(self) -> SystemCode | int:
|
|
4956
4970
|
"""
|
|
4957
4971
|
Type of system message. See the `SystemCode` enum for possible values.
|
|
4958
4972
|
|
|
4959
4973
|
Returns
|
|
4960
4974
|
-------
|
|
4961
|
-
SystemCode
|
|
4975
|
+
SystemCode | int
|
|
4962
4976
|
|
|
4963
4977
|
"""
|
|
4964
4978
|
|
|
@@ -5772,7 +5786,7 @@ class InstrumentDefMsgV1(Record):
|
|
|
5772
5786
|
"""
|
|
5773
5787
|
|
|
5774
5788
|
@property
|
|
5775
|
-
def instrument_class(self) -> InstrumentClass:
|
|
5789
|
+
def instrument_class(self) -> InstrumentClass | str:
|
|
5776
5790
|
"""
|
|
5777
5791
|
The classification of the instrument.
|
|
5778
5792
|
|
|
@@ -5780,7 +5794,7 @@ class InstrumentDefMsgV1(Record):
|
|
|
5780
5794
|
|
|
5781
5795
|
Returns
|
|
5782
5796
|
-------
|
|
5783
|
-
InstrumentClass
|
|
5797
|
+
InstrumentClass | str
|
|
5784
5798
|
|
|
5785
5799
|
"""
|
|
5786
5800
|
|
|
@@ -5818,7 +5832,7 @@ class InstrumentDefMsgV1(Record):
|
|
|
5818
5832
|
"""
|
|
5819
5833
|
|
|
5820
5834
|
@property
|
|
5821
|
-
def match_algorithm(self) -> MatchAlgorithm:
|
|
5835
|
+
def match_algorithm(self) -> MatchAlgorithm | str:
|
|
5822
5836
|
"""
|
|
5823
5837
|
The matching algorithm used for the instrument, typically **F**IFO.
|
|
5824
5838
|
|
|
@@ -5826,7 +5840,7 @@ class InstrumentDefMsgV1(Record):
|
|
|
5826
5840
|
|
|
5827
5841
|
Returns
|
|
5828
5842
|
-------
|
|
5829
|
-
MatchAlgorithm
|
|
5843
|
+
MatchAlgorithm | str
|
|
5830
5844
|
|
|
5831
5845
|
"""
|
|
5832
5846
|
|
|
@@ -6128,14 +6142,14 @@ class StatMsgV1(Record):
|
|
|
6128
6142
|
"""
|
|
6129
6143
|
|
|
6130
6144
|
@property
|
|
6131
|
-
def stat_type(self) -> StatType:
|
|
6145
|
+
def stat_type(self) -> StatType | int:
|
|
6132
6146
|
"""
|
|
6133
6147
|
The type of statistic value contained in the message. Refer to the
|
|
6134
6148
|
`StatType` enum for possible variants.
|
|
6135
6149
|
|
|
6136
6150
|
Returns
|
|
6137
6151
|
-------
|
|
6138
|
-
StatType
|
|
6152
|
+
StatType | int
|
|
6139
6153
|
|
|
6140
6154
|
"""
|
|
6141
6155
|
|
|
@@ -6151,14 +6165,14 @@ class StatMsgV1(Record):
|
|
|
6151
6165
|
"""
|
|
6152
6166
|
|
|
6153
6167
|
@property
|
|
6154
|
-
def update_action(self) -> StatUpdateAction:
|
|
6168
|
+
def update_action(self) -> StatUpdateAction | int:
|
|
6155
6169
|
"""
|
|
6156
6170
|
Indicates if the statistic is newly added (1) or deleted (2). (Deleted is only
|
|
6157
6171
|
used with some stat types).
|
|
6158
6172
|
|
|
6159
6173
|
Returns
|
|
6160
6174
|
-------
|
|
6161
|
-
StatUpdateAction
|
|
6175
|
+
StatUpdateAction | int
|
|
6162
6176
|
|
|
6163
6177
|
"""
|
|
6164
6178
|
|
|
@@ -7114,7 +7128,7 @@ class InstrumentDefMsgV2(Record):
|
|
|
7114
7128
|
"""
|
|
7115
7129
|
|
|
7116
7130
|
@property
|
|
7117
|
-
def instrument_class(self) -> InstrumentClass:
|
|
7131
|
+
def instrument_class(self) -> InstrumentClass | str:
|
|
7118
7132
|
"""
|
|
7119
7133
|
The classification of the instrument.
|
|
7120
7134
|
|
|
@@ -7122,12 +7136,12 @@ class InstrumentDefMsgV2(Record):
|
|
|
7122
7136
|
|
|
7123
7137
|
Returns
|
|
7124
7138
|
-------
|
|
7125
|
-
InstrumentClass
|
|
7139
|
+
InstrumentClass | str
|
|
7126
7140
|
|
|
7127
7141
|
"""
|
|
7128
7142
|
|
|
7129
7143
|
@property
|
|
7130
|
-
def match_algorithm(self) -> MatchAlgorithm:
|
|
7144
|
+
def match_algorithm(self) -> MatchAlgorithm | str:
|
|
7131
7145
|
"""
|
|
7132
7146
|
The matching algorithm used for the instrument, typically **F**IFO.
|
|
7133
7147
|
|
|
@@ -7135,7 +7149,7 @@ class InstrumentDefMsgV2(Record):
|
|
|
7135
7149
|
|
|
7136
7150
|
Returns
|
|
7137
7151
|
-------
|
|
7138
|
-
MatchAlgorithm
|
|
7152
|
+
MatchAlgorithm | str
|
|
7139
7153
|
|
|
7140
7154
|
"""
|
|
7141
7155
|
|
|
@@ -7206,13 +7220,13 @@ class InstrumentDefMsgV2(Record):
|
|
|
7206
7220
|
"""
|
|
7207
7221
|
|
|
7208
7222
|
@property
|
|
7209
|
-
def security_update_action(self) -> SecurityUpdateAction:
|
|
7223
|
+
def security_update_action(self) -> SecurityUpdateAction | str:
|
|
7210
7224
|
"""
|
|
7211
7225
|
Indicates if the instrument definition has been added, modified, or deleted.
|
|
7212
7226
|
|
|
7213
7227
|
Returns
|
|
7214
7228
|
-------
|
|
7215
|
-
SecurityUpdateAction
|
|
7229
|
+
SecurityUpdateAction | str
|
|
7216
7230
|
|
|
7217
7231
|
"""
|
|
7218
7232
|
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: databento-dbn
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.43.0
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
6
|
Summary: Python bindings for encoding and decoding Databento Binary Encoding (DBN)
|
|
7
7
|
Author-email: Databento <support@databento.com>
|
|
8
8
|
License-Expression: Apache-2.0
|
|
9
|
-
Requires-Python: >=3.
|
|
9
|
+
Requires-Python: >=3.10
|
|
10
10
|
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
11
|
+
Project-URL: Homepage, https://databento.com
|
|
12
|
+
Project-URL: Documentation, https://databento.com/docs
|
|
13
|
+
Project-URL: Repository, https://github.com/databento/dbn
|
|
14
|
+
Project-URL: Bug Tracker, https://github.com/databento/dbn/issues
|
|
11
15
|
|
|
12
16
|
# databento-dbn
|
|
13
17
|
|
|
14
18
|
[](https://github.com/databento/dbn/actions/workflows/build.yaml)
|
|
15
|
-

|
|
16
20
|

|
|
17
21
|
[](https://pypi.org/project/databento-dbn)
|
|
18
22
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
databento_dbn-0.43.0.dist-info/METADATA,sha256=ocPxwT-jyK9NsrEUXd4lxHNx7rlt812lviVjm7afQFQ,2337
|
|
2
|
+
databento_dbn-0.43.0.dist-info/WHEEL,sha256=bNaa2-XeaoMXnkzV391Sm2NgCjpJ3A2VmfN6ZUnNTZA,96
|
|
3
|
+
databento_dbn/__init__.py,sha256=u__7ZrT9051pRmM0mp2wq4w-hoKP-pGlawQZ8E3Q0To,1179
|
|
4
|
+
databento_dbn/_lib.cp311-win_amd64.pyd,sha256=LavGDnNIax7-no1Wbd83RtUnx2DyWaBkzc8y4e6MndU,4009984
|
|
5
|
+
databento_dbn/_lib.pyi,sha256=ygCncjwmd2S1Rk5xOh6Ts7Igv2k-8Rip0aKmbXrOnQk,170926
|
|
6
|
+
databento_dbn/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
+
databento_dbn/v1.py,sha256=4CLL86Pbm_MI_b8lqVBDvNlK4t6IuxDBFnIU-OGoNlc,676
|
|
8
|
+
databento_dbn/v2.py,sha256=TBxZGEuQ0T6lBVyg4uzulI5LfN0NYeibFtU-QV89f1s,625
|
|
9
|
+
databento_dbn/v3.py,sha256=MYHJ-QhODEXasQmhmHjd6ZL1nkigHjpHtXCYdBKC67w,590
|
|
10
|
+
databento_dbn-0.43.0.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
databento_dbn-0.42.0.dist-info/METADATA,sha256=PoVJt3o20u2ssYDnIzuHwgHy1it0KDtAGuxZDzLB38U,2111
|
|
2
|
-
databento_dbn-0.42.0.dist-info/WHEEL,sha256=YCZ9Vxhf2aXNyfoR2QH-PPqnUr48Igr9zjgnGhp3xTc,96
|
|
3
|
-
databento_dbn/__init__.py,sha256=u__7ZrT9051pRmM0mp2wq4w-hoKP-pGlawQZ8E3Q0To,1179
|
|
4
|
-
databento_dbn/_lib.cp311-win_amd64.pyd,sha256=BgnZYNbvX6ouXSvWy1M2445R6eSmeyUI9_IlgnmLGMY,4009472
|
|
5
|
-
databento_dbn/_lib.pyi,sha256=HJJm84veAhBs1qD-MBTn2wazYGUzpwttO9hHcdb7AAI,170053
|
|
6
|
-
databento_dbn/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
-
databento_dbn/v1.py,sha256=4CLL86Pbm_MI_b8lqVBDvNlK4t6IuxDBFnIU-OGoNlc,676
|
|
8
|
-
databento_dbn/v2.py,sha256=TBxZGEuQ0T6lBVyg4uzulI5LfN0NYeibFtU-QV89f1s,625
|
|
9
|
-
databento_dbn/v3.py,sha256=MYHJ-QhODEXasQmhmHjd6ZL1nkigHjpHtXCYdBKC67w,590
|
|
10
|
-
databento_dbn-0.42.0.dist-info/RECORD,,
|