Skip to content

Commit 35ab833

Browse files
committed
Remove gateway argument from RithmicClient constructor
1 parent 4fe9252 commit 35ab833

File tree

3 files changed

+8
-31
lines changed

3 files changed

+8
-31
lines changed

async_rithmic/CHANGELOG.md renamed to CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Changelog
22

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
410

511
### Deprecated
612
- `gateway` parameter in `RithmicClient.__init__()` is deprecated in favor of `url`.

async_rithmic/client.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import ssl
22
import asyncio
3-
import warnings
43
from pathlib import Path
54
from collections import defaultdict
65
from pattern_kit import DelegateMixin, Event
@@ -9,7 +8,6 @@
98
from .plants.history import HistoryPlant
109
from .plants.order import OrderPlant
1110
from .plants.pnl import PnlPlant
12-
from .enums import Gateway
1311
from .logger import logger
1412
from .objects import ReconnectionSettings, RetrySettings
1513

@@ -31,8 +29,7 @@ def __init__(
3129
system_name: str,
3230
app_name: str,
3331
app_version: str,
34-
gateway: Gateway = Gateway.TEST,
35-
url: str = None,
32+
url: str,
3633
**kwargs
3734
):
3835
# Connection events
@@ -52,17 +49,6 @@ def __init__(
5249
self.on_historical_tick = Event()
5350
self.on_historical_time_bar = Event()
5451

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-
6652
if "://" not in url:
6753
url = f"wss://{url}"
6854

async_rithmic/enums.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,3 @@ class DataType(int, enum.Enum):
2020
InstrumentType = pb.request_search_symbols_pb2.RequestSearchSymbols.InstrumentType
2121
SearchPattern = pb.request_search_symbols_pb2.RequestSearchSymbols.Pattern
2222

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"

0 commit comments

Comments
 (0)