You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For each conid provided, it queries the marketdata history for the specified symbols. The results are then cleaned up and unified. Due to this grouping and post-processing, this method returns data directly without the Result dataclass.
208
208
209
209
Parameters:
210
-
conids (OneOrMany[str]): A list of conids to get market data for.
210
+
conids (Union[List[str], Dict[Hashable, str]]): A list of conids to get market data for.
211
211
exchange (str, optional): Returns the exchange you want to receive data from.
212
212
period (str): Overall duration for which data should be returned. Default to 1w. Available time period– {1-30}min, {1-8}h, {1-1000}d, {1-792}w, {1-182}m, {1-15}y.
213
213
bar (str): Individual bars of data to be returned. Possible values– 1min, 2min, 3min, 5min, 10min, 15min, 30min, 1h, 2h, 3h, 4h, 8h, 1d, 1w, 1m.
# In case conids aren't a symbol->conid dict, generate a dummy conid->conid dict in order to preserve the functionality. In such case, the 'symbol' variable actually is a 'conid'.
224
+
# In case conids aren't a hashable->conid dict, generate a dummy conid->conid dict in order to preserve the functionality. In such case, the 'key' variable actually is a 'conid'.
225
225
conids= {conid: conidforconidinconids}
226
226
227
227
static_params= {'period': period, 'bar': bar, 'outside_rth': outside_rth, 'start_time': start_time}
0 commit comments