@@ -9,18 +9,21 @@ library, the highest is Python wrapper classes. Cython level in the
99middle aims to connect these two. Here we are going to look into Python
1010level.
1111
12- Python level, in its turn, mainly consists of three class types. The
13- first one is the Endpoint. This class is responsible for connection
14- management.
12+ Python level, in its turn, mainly consists of three class types:
1513
16- The Endpoint is also responsible for creating dependent classes, for
14+ 1. Endpoint
15+ 2. Subscription
16+ 3. EventHandler
17+
18+ The **Endpoint ** is responsible for connection management and creating dependent classes, for
1719example Subscription. One Endpoint may have several different
18- Subscriptions, but each Subscription is related to one Endpoint. This
19- class sets the type of subscription (stream or timed), the type of
20+ Subscriptions, but each Subscription is related to one Endpoint.
21+
22+ **Subscription ** class sets the type of subscription (stream or timed), the type of
2023events (e.g. Trade, Candle), etc.
2124
2225After you specified the data you want to receive, you have to specify
23- how to process upcoming events. This is where the EventHandler class and
26+ how to process upcoming events. This is where the ** EventHandler ** class and
2427its children come into play. Every time an event arrives Cython event
2528listener will call ``self.update(event) `` method. You have to inherit
2629from the EventHandler class and redefine the update method. Or you may
0 commit comments