Skip to content

Commit 988f560

Browse files
committed
[EN-1328] connector to endpoint renaming
1 parent 4da40ba commit 988f560

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/basic_usage.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ Create instance of Endpoint class which will connect provided address.
1818

1919
.. code:: ipython3
2020
21-
connector = dx.Endpoint('demo.dxfeed.com:7300')
21+
endpoint = dx.Endpoint('demo.dxfeed.com:7300')
2222
2323
Endpoint instance contains information about the connection,
2424
e.g. connection address or status
2525

2626
.. code:: ipython3
2727
28-
print(f'Connected address: {connector.address}')
29-
print(f'Connection status: {connector.connection_status}')
28+
print(f'Connected address: {endpoint.address}')
29+
print(f'Connection status: {endpoint.connection_status}')
3030
3131
Configure and create subscription
3232
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -36,7 +36,7 @@ you should also provide time to start subscription from.
3636

3737
.. code:: ipython3
3838
39-
trade_sub = connector.create_subscription('Trade', data_len=-1)
39+
trade_sub = endpoint.create_subscription('Trade', data_len=-1)
4040
4141
**Attach default listener** - function that process incoming events
4242

@@ -56,13 +56,13 @@ your provided date parsed automatically
5656

5757
.. code:: ipython3
5858
59-
tns_sub = connector.create_subscription('TimeAndSale', date_time=datetime.now()) \
60-
.attach_listener() \
61-
.add_symbols(['AMZN'])
59+
tns_sub = endpoint.create_subscription('TimeAndSale', date_time=datetime.now()) \
60+
.attach_listener() \
61+
.add_symbols(['AMZN'])
6262
6363
.. code:: ipython3
6464
65-
candle_sub = connector.create_subscription('Candle', date_time='2020-04-16 13:05')
65+
candle_sub = endpoint.create_subscription('Candle', date_time='2020-04-16 13:05')
6666
candle_sub = candle_sub.attach_listener()
6767
candle_sub = candle_sub.add_symbols(['AAPL', 'MSFT'])
6868
@@ -99,8 +99,8 @@ Close connection
9999

100100
.. code:: ipython3
101101
102-
connector.close_connection()
103-
print(f'Connection status: {connector.connection_status}')
102+
endpoint.close_connection()
103+
print(f'Connection status: {endpoint.connection_status}')
104104
105105
Transform data to pandas DataFrame
106106
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)