Skip to content

Commit e13bdeb

Browse files
author
Wasin Waeosri
committed
Change log:
1. Add WebSocket Posting article in README.md file 2. Clean code to remove the process that check item subscription
1 parent e585b20 commit e13bdeb

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ If you are interested to contribute data using the RSSL connection (with or with
1919
* [EMA Java Tutorial - Posting data to TR Contribution Channel](https://developers.refinitiv.com/elektron/elektron-sdk-java/learning?content=41885&type=learning_material_item).
2020
* [EMA C++ Tutorial - Posting data to TR Contribution Channel](https://developers.refinitiv.com/elektron/elektron-sdk-cc/learning?content=26452&type=learning_material_item).
2121

22+
If you are not familiar with Elektron WebSocket API Posting concept, please visit [Contributing Data to TREP using the Websocket API](https://developers.refinitiv.com/article/contributing-data-trep-using-websocket-api) article which will give you a full explanation of the WebSocket API Posting mechanisms and process.
23+
2224
*Note:* In an off-stream post, the client application can send a post for an item via a Login stream, regardless of whether a data stream first exists. The route of the post is determined by the TREP (ADS and ADH) configuration.
2325

2426
## Contribution Setups
@@ -168,6 +170,7 @@ RECEIVED:
168170
* [Refinitiv Elektron SDK Family page](https://developers.refinitiv.com/elektron) on the [Refinitiv Developer Community](https://developers.thomsonreuters.com/) web site.
169171
* [Refinitiv Elektron WebSocket API page](https://developers.refinitiv.com/websocket-api).
170172
* [Developer Webinar Recording: Introduction to Electron WebSocket API](https://www.youtube.com/watch?v=CDKWMsIQfaw).
173+
* [Contributing Data to TREP using the Websocket API article](https://developers.refinitiv.com/article/contributing-data-trep-using-websocket-api).
171174
* [Contributing your data to Thomson Reuters article](https://developers.refinitiv.com/article/contributing-your-data-thomson-reuters).
172175
* [Refinitiv Elektron: RIC Search](https://developers.refinitiv.com/elektron/websocket-api/dev-tools?type=ric).
173176
* [Refinitiv Data Model Discovery page](https://refinitiv.fixspec.com/specserver/specs/reuters): Explore TR data models, content definitions and data update behaviors.

console_python/trcc_posting.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ def process_message(ws, message_json): # Process all incoming messages.
4848
message_domain = message_json['Domain']
4949
if message_domain == "Login":
5050
process_login_response(ws, message_json)
51-
elif message_json['Key']['Name'] == subscribe_itemname:
52-
""" send Off Stream Post """
53-
print("Sending Off-Stream Post to TREP Server")
54-
send_market_price_post(ws)
5551
elif message_type == "Ping":
5652
pong_json = {'Type': 'Pong'}
5753
ws.send(json.dumps(pong_json))

0 commit comments

Comments
 (0)