File tree Expand file tree Collapse file tree 3 files changed +8
-31
lines changed Expand file tree Collapse file tree 3 files changed +8
-31
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
- ## [ 1.4.5]
3
+ ## [ 1.5.0] - 2025-06-17
4
+ ### Removed
5
+ The ` gateway ` parameter has been removed from ` RithmicClient.__init__() ` .
6
+
7
+ Use the ` url ` parameter to specify the connection endpoint.
8
+
9
+ ## [ 1.4.5] - 2025-06-14
4
10
5
11
### Deprecated
6
12
- ` gateway ` parameter in ` RithmicClient.__init__() ` is deprecated in favor of ` url ` .
Original file line number Diff line number Diff line change 1
1
import ssl
2
2
import asyncio
3
- import warnings
4
3
from pathlib import Path
5
4
from collections import defaultdict
6
5
from pattern_kit import DelegateMixin , Event
9
8
from .plants .history import HistoryPlant
10
9
from .plants .order import OrderPlant
11
10
from .plants .pnl import PnlPlant
12
- from .enums import Gateway
13
11
from .logger import logger
14
12
from .objects import ReconnectionSettings , RetrySettings
15
13
@@ -31,8 +29,7 @@ def __init__(
31
29
system_name : str ,
32
30
app_name : str ,
33
31
app_version : str ,
34
- gateway : Gateway = Gateway .TEST ,
35
- url : str = None ,
32
+ url : str ,
36
33
** kwargs
37
34
):
38
35
# Connection events
@@ -52,17 +49,6 @@ def __init__(
52
49
self .on_historical_tick = Event ()
53
50
self .on_historical_time_bar = Event ()
54
51
55
- if gateway is not None and url is None :
56
- warnings .warn (
57
- "The `gateway` parameter is deprecated and will be removed in the next release. Use `url` instead." ,
58
- DeprecationWarning ,
59
- stacklevel = 2
60
- )
61
- url = f"wss://{ gateway .value } "
62
-
63
- if url is None :
64
- raise ValueError ("You must specify a `url`." )
65
-
66
52
if "://" not in url :
67
53
url = f"wss://{ url } "
68
54
Original file line number Diff line number Diff line change @@ -20,18 +20,3 @@ class DataType(int, enum.Enum):
20
20
InstrumentType = pb .request_search_symbols_pb2 .RequestSearchSymbols .InstrumentType
21
21
SearchPattern = pb .request_search_symbols_pb2 .RequestSearchSymbols .Pattern
22
22
23
- class Gateway (str , enum .Enum ):
24
- TEST = "rituz00100.rithmic.com:443"
25
-
26
- CHICAGO = "rprotocol.rithmic.com:443"
27
- SYDNEY = "au.rithmic.com:443"
28
- SAO_PAULO = "br.rithmic.com:443"
29
- COLO75 = "colo75.rithmic.com:443"
30
- FRANKFURT = "de.rithmic.com:443"
31
- HONGKONG = "hk.rithmic.com:443"
32
- IRELAND = "ie.rithmic.com:443"
33
- MUMBAI = "in.rithmic.com:443"
34
- SEOUL = "kr.rithmic.com:443"
35
- CAPETOWN = "za.rithmic.com:443"
36
- TOKYO = "jp.rithmic.com:443"
37
- SINGAPORE = "sg.rithmic.com:443"
You can’t perform that action at this time.
0 commit comments