66
77
88class Subscription (object ):
9+ """
10+ Class for subscription management. Recommended to be created only via create_subscription method in Endpoint class.
11+ Also stores incoming events
12+
13+ Attributes
14+ ----------
15+ event_type: str
16+ One of possible event types: 'Trade', 'Quote', 'Summary', 'Profile', 'Order', 'TimeAndSale', 'Candle',
17+ 'TradeETH', 'SpreadOrder', 'Greeks', 'TheoPrice', 'Underlying', 'Series', 'Configuration' or ''
18+ symbols: Iterable
19+ Symbols of current subscription.
20+
21+ Note
22+ ----
23+ Some event types (e.g. Candle) support only timed subscription.
24+
25+ """
926 def __init__ (self , connection , event_type : str , date_time : Union [str , datetime ], exact_format : bool = True ):
1027 """
11- Class for subscription management. Recommended to be created only via create_subscription method in Endpoint class.
12- Also stores incoming events
1328
14- Attributes
29+ Parameters
1530 ----------
1631 connection: dxfeed.core.DXFeedPy.ConnectionClass
1732 Core class written in cython, that handle connection related details on the low level
@@ -23,11 +38,6 @@ def __init__(self, connection, event_type: str, date_time: Union[str, datetime],
2338 %Y-%m-%d %H:%M:%S.%f. If None - stream subscription will be created (non-conflated). Default - None.
2439 exact_format: bool
2540 If False no warning will be thrown in case of incomplete date_time parameter. Default - True
26-
27- Note
28- ----
29- Some event types (e.g. Candle) support only timed subscription.
30-
3141 """
3242 self .__event_type = event_type
3343 if date_time is None :
0 commit comments