@@ -96,7 +96,7 @@ class DatabentoDataClient(LiveMarketDataClient):
96
96
The cache for the client.
97
97
clock : LiveClock
98
98
The clock for the client.
99
- instrument_provder : DatabentoInstrumentProvider
99
+ instrument_provider : DatabentoInstrumentProvider
100
100
The instrument provider for the client.
101
101
loader : DatabentoDataLoader, optional
102
102
The loader for the client.
@@ -419,7 +419,7 @@ async def _get_dataset_range(
419
419
420
420
def subscribe_order_book_deltas (self , command : SubscribeOrderBook ) -> None :
421
421
if command .book_type != BookType .L3_MBO :
422
- raise NotImplementedError ("Use Booktype .L3_MBO for Databento" )
422
+ raise NotImplementedError ("Use BookType .L3_MBO for Databento" )
423
423
424
424
self .create_task (
425
425
self ._subscribe_order_book_deltas (command ),
@@ -565,9 +565,6 @@ async def _subscribe_order_book_deltas_batch(
565
565
)
566
566
return
567
567
568
- if not instrument_ids :
569
- return # No subscribing instrument IDs were loaded in the cache
570
-
571
568
dataset : Dataset = self ._loader .get_dataset_for_venue (instrument_ids [0 ].venue )
572
569
live_client = self ._get_live_client_mbo (dataset )
573
570
@@ -962,10 +959,10 @@ async def _request_instrument(self, request: RequestInstrument) -> None:
962
959
963
960
self ._handle_instrument (
964
961
instruments [0 ],
965
- request .id ,
966
- start ,
967
- end ,
968
- request .params ,
962
+ correlation_id = request .id ,
963
+ start = request . start ,
964
+ end = request . end ,
965
+ params = request .params ,
969
966
)
970
967
971
968
async def _request_instruments (self , request : RequestInstruments ) -> None :
@@ -995,10 +992,10 @@ async def _request_instruments(self, request: RequestInstruments) -> None:
995
992
self ._handle_instruments (
996
993
request .venue ,
997
994
instruments ,
998
- request .id ,
999
- start ,
1000
- end ,
1001
- request .params ,
995
+ correlation_id = request .id ,
996
+ start = request . start ,
997
+ end = request . end ,
998
+ params = request .params ,
1002
999
)
1003
1000
1004
1001
async def _request_quote_ticks (self , request : RequestQuoteTicks ) -> None :
@@ -1007,7 +1004,7 @@ async def _request_quote_ticks(self, request: RequestQuoteTicks) -> None:
1007
1004
1008
1005
if request .limit > 0 :
1009
1006
self ._log .warning (
1010
- f"Ignoring limit { request .limit } because its applied from the start (instead of the end)" ,
1007
+ f"Ignoring limit { request .limit } because it's applied from the start (instead of the end)" ,
1011
1008
)
1012
1009
1013
1010
self ._log .info (
@@ -1042,10 +1039,10 @@ async def _request_quote_ticks(self, request: RequestQuoteTicks) -> None:
1042
1039
self ._handle_quote_ticks (
1043
1040
request .instrument_id ,
1044
1041
quotes ,
1045
- request .id ,
1046
- start ,
1047
- end ,
1048
- request .params ,
1042
+ correlation_id = request .id ,
1043
+ start = request . start ,
1044
+ end = request . end ,
1045
+ params = request .params ,
1049
1046
)
1050
1047
1051
1048
async def _request_trade_ticks (self , request : RequestTradeTicks ) -> None :
@@ -1054,7 +1051,7 @@ async def _request_trade_ticks(self, request: RequestTradeTicks) -> None:
1054
1051
1055
1052
if request .limit > 0 :
1056
1053
self ._log .warning (
1057
- f"Ignoring limit { request .limit } because its applied from the start (instead of the end)" ,
1054
+ f"Ignoring limit { request .limit } because it's applied from the start (instead of the end)" ,
1058
1055
)
1059
1056
1060
1057
self ._log .info (
@@ -1073,10 +1070,10 @@ async def _request_trade_ticks(self, request: RequestTradeTicks) -> None:
1073
1070
self ._handle_trade_ticks (
1074
1071
request .instrument_id ,
1075
1072
trades ,
1076
- request .id ,
1077
- start ,
1078
- end ,
1079
- request .params ,
1073
+ correlation_id = request .id ,
1074
+ start = request . start ,
1075
+ end = request . end ,
1076
+ params = request .params ,
1080
1077
)
1081
1078
1082
1079
async def _request_bars (self , request : RequestBars ) -> None :
@@ -1085,7 +1082,7 @@ async def _request_bars(self, request: RequestBars) -> None:
1085
1082
1086
1083
if request .limit > 0 :
1087
1084
self ._log .warning (
1088
- f"Ignoring limit { request .limit } because its applied from the start (instead of the end)" ,
1085
+ f"Ignoring limit { request .limit } because it's applied from the start (instead of the end)" ,
1089
1086
)
1090
1087
1091
1088
self ._log .info (
@@ -1111,8 +1108,8 @@ async def _request_bars(self, request: RequestBars) -> None:
1111
1108
bars = bars ,
1112
1109
partial = None , # No partials
1113
1110
correlation_id = request .id ,
1114
- start = start ,
1115
- end = end ,
1111
+ start = request . start ,
1112
+ end = request . end ,
1116
1113
params = request .params ,
1117
1114
)
1118
1115
0 commit comments