How to get rediorderid in Python?

Firstly, I want to get RediOrderID from my Python. After i run the script of ordersending as :
msg = win32com.client.VARIANT(win32com.client.pythoncom.VT_BYREF | win32com.client.pythoncom.VT_VARIANT, None)
res = o.Submit(msg)
The returned result as res have value only "True" or "False" but i expect to get OrderID.
Then i develop my C# to run another process like cachecontrol to capture the return message from wincom32. Now, my ordersending process was change to able to send more than one order at a time. So, this manner can occur of race condition e.g. order a and b are send at the same time to mapping return of b may be matched to order a. then i found the document of Refinitiv REDI EMS API Spec, Document Version 2.4, Date of issue: 3 December 2019, from page 3 in the document, which "Member Name" can we use?. In the document said "ClientData --String 36 -- This field is free text field which persist throughout lifecycle of an order. It is NOT recommended using this field if your firm use portfolio trader or FIX ticket.", can i use another member name?? or do you have any suggest to track the RediOrderID after order was submitted, not concept of cachecontrol?
Best Answer
-
Hello @alongkot.b ,
If I understand your question correctly, the answer is no, you will not be able to monitor/track, cancel or modify order in Python, as REDI Python offers very limited functionality.
You will be able to monitor, cancel or modify orders in C#, please refer to REDI API Spec and REDI Tutorials -> C# for more information on REDI Order Monitoring and on cancelling order by OrderRefKey, perhaps this previous discussion thread can be of more help.
You will also be able to monitor, cancel and modify in VB/Excel, please refer to the relevant spec and VB/Excel tutorial information.
Please let us know of this helps?
0
Answers
-
Hi @zoya faberov ,
your answer can help me for sure. my system use python to send the order and C# to get the order status. but i still have one more question of the member name. i want to know a reason of clientdata the document suggest me to do not use and which member name you suggest me to use?
0 -
Hello @alongkot.b ,
If I understand your question correctly, to differentiate the orders as well as cancel the orders if they are not executed, you can use OrdeRefKey, as it is a unique identifier for the order, and is system-generated. For example:
res = orderCache.CancelByKey("r151681", "gS05779521", err);
In terms of using ClientData that is self-selected:
Where I think you may wish to be careful is, setting the same ClientData on multiple orders is not supported and can lead to issues.
Secondly not recommended if "using portfolio trader or FIX ticket ", I think otherwise it is ok to populate it.
Hope this helps
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 690 Datastream
- 1.4K DSS
- 629 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 559 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 280 Open PermID
- 45 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 720 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 95 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛