Max limit for post id in contribution of message directly contributing to RCC using python websocket
Hi,
We are planning to send the pricing data every 15 sec and the post id is getting incremented for every message we contribute to RCC(i.e we are directly contributing to RCC using python WebSockets)
Could you please let us know the max limit for post id before we need to reset the post id to 0 again?
As we will be reaching this post id number of around 1 Million for continuously sending 24-hour data and we don't have any plan to stop the process and we want to handle this in our code.
If it reaches the maximum limit, then we need to reset it to 0
Regards,
Amit Gupta
Best Answer
-
Hello @amit.gupta
According to the WebSocket API specification (GitHub and Developer Community pages), the PostID attribute type is an integer, so the maximum value is the max integer.
However, please note the maximum contributions per second of the WebSocket connection is 1000 updates per second (see this old post)
1
Answers
-
Hi Wasin,
Would it be possible to send the duplicate post id in a single connection? let say we send 1 to 100 messages with post IDs in the range from 1 to 100. After 100, we reset the post id to 0 again. Would it create a problem again if we send the same post id 0 in the same login connection or do we need to explicitly log out of this connection?
Regards,
Amit Gupta
0 -
Hi @amit.gupta,
The purpose of the post ID is for your contributing app to keep track of ACK/NAKs for your posts. Once you are fairly far away in the sequence, that there will be no disambiguity in your application, I think it should be ok to reuse the post ID again.
0 -
Great, thanks Gurpreet.
1)Let say if our code is publishing/contributing the data to RCC using python WebSockets, Can it run continuously for 4-5 days or there is any time limit from the server after which the connection needs to be reset from our side or there is no limit.
I mean it that we need to reset the connection after every 10 hours or 20 hours or no limit. Could you please advise on this?
0 -
No, there is no time limit enforced by Refinitiv.0
-
@Gurpreet Thanks and really appreciate your answer.
We have noticed one pattern that after we start contributing to refinitiv server(positing directly to RCC using python web sockets), we are getting this error
Websocket report: It get stuck up at "web_socket_app.send(json.dumps(login_json))" in the code given shared by refinitiv after 10-12 hours or maybe 8 hours of continuous run. Is there any reason behind it as we have not explicitly closed the session using logout JSON or closed the session.
Could you please advise this and any help will be appreciated
def send_login_request(auth_token, is_refresh_token):
"""
Send login request with authentication token.
Used both for the initial login and subsequent reissues to update the
authentication token
"""
login_json = {
'ID': 1,
'Domain': 'Login',
'Key': {
'NameType': 'AuthnToken',
'Elements': {
'ApplicationId': '',
'Position': '',
'AuthenticationToken': ''
}
}
}
login_json['Key']['Elements']['ApplicationId'] = app_id
login_json['Key']['Elements']['Position'] = position
login_json['Key']['Elements']['AuthenticationToken'] = auth_token
# If the token is a refresh token, this is not our first login attempt.
if is_refresh_token:
login_json['Refresh'] = False
web_socket_app.send(json.dumps(login_json))0 -
What error?
For the sake of clarity, its best to keep one post for single issue only, and start a new question for a different one.0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛