REDI API - How can I retrieve algo parameters on open orders?

Brian.Mullane1
LSEG
in REDI API
(posting on behalf of a client who was asking)
Question
Is there a way to retrieve the algo parameters set on an order?
- Order submitted to “VWAP DEMO” with Aggressiveness = High and Max Vol % = 5
Tagged:
0
Best Answer
-
Answer
(included as it was provided)
Yes, you can query Cache Control for the "custom" parameters.
- For VWAP DEMO, "custom2" and "custom3" show the respective parameters
Note, this varies by algo, so the parameters could be in any of the other "custom" field. Please reach out to your account representative for a mapping of algo parameters to custom fields.
VB code:
Sub DataSubscription_CacheEvent(ByVal Action As Long, ByVal ROW As Long)
Dim I As Integer
Dim BrSeq As Variant
Dim Side As Variant
Dim ExecQuantity As Variant
Dim symbol As Variant
Dim ExecPrice As Variant
Dim Status As Variant
Dim myerr As Variant
Dim Account As Variant
Dim Quantity As Variant
Dim RefNum As Variant
Dim PriceType As Variant
Dim OrderRefKey As Variant
Dim ParentOrdRefKey As Variant
Dim Exchange As Variant
Dim Price As Variant
Dim TIF As Variant
Dim Memo As Variant
Dim MsgType As Variant
Dim OrdDesc As String
Dim ProgressPct As Double
Dim AvgPrice As Variant
Dim custom2 As Variant
' =========== Action List ==============
' 1 : Snapshot
' 4 : New insert
' 5 : Update
' ======================================
If (Action = 1) Then
For I = 0 To ROW - 1
DataSubscription.GetCell I, "BrSeq", BrSeq, myerr
DataSubscription.GetCell I, "Side", Side, myerr
DataSubscription.GetCell I, "ExecQuantity", ExecQuantity, myerr
DataSubscription.GetCell I, "ExecPrice", ExecPrice, myerr
DataSubscription.GetCell I, "symbol", symbol, myerr
DataSubscription.GetCell I, "Account", Account, myerr
DataSubscription.GetCell I, "Quantity", Quantity, myerr
DataSubscription.GetCell I, "RefNum", RefNum, myerr
DataSubscription.GetCell I, "Status", Status, myerr
DataSubscription.GetCell I, "PriceType", PriceType, myerr
DataSubscription.GetCell I, "Price", Price, myerr
DataSubscription.GetCell I, "Memo", Memo, myerr
DataSubscription.GetCell I, "TIF", TIF, myerr
DataSubscription.GetCell I, "OrderRefKey", OrderRefKey, myerr
DataSubscription.GetCell I, "ParentOrdRefKey", ParentOrdRefKey, myerr
DataSubscription.GetCell I, "MsgType", MsgType, myerr
DataSubscription.GetCell I, "AvgExecPrice", AvgPrice, myerr
DataSubscription.GetCell I, "custom2", custom2, myerr
'If Not OrderRefKey = "NONE" And Not MsgType = "ADMIN" And Not PriceType = "Invalid" Then
Worksheets("Demo").Cells(currRow, "A").Value = Side
Worksheets("Demo").Cells(currRow, "B").Value = Quantity
Worksheets("Demo").Cells(currRow, "C").Value = symbol
Worksheets("Demo").Cells(currRow, "D").Value = PriceType
Worksheets("Demo").Cells(currRow, "E").Value = Price
Worksheets("Demo").Cells(currRow, "F").Value = TIF
Worksheets("Demo").Cells(currRow, "G").Value = OrderRefKey
Worksheets("Demo").Cells(currRow, "H").Value = RefNum
Worksheets("Demo").Cells(currRow, "I").Value = Status
Worksheets("Demo").Cells(currRow, "J").Value = ExecQuantity
Worksheets("Demo").Cells(currRow, "K").Value = ExecPrice
Worksheets("Demo").Cells(currRow, "L").Value = MsgType
Worksheets("Demo").Cells(currRow, "M").Value = AvgPrice
Worksheets("Demo").Cells(currRow, "N").Value = custom2
currRow = currRow + 1
'End If
Next I
Else
DataSubscription.GetCell ROW, "BrSeq", BrSeq, myerr
DataSubscription.GetCell ROW, "Side", Side, myerr
DataSubscription.GetCell ROW, "ExecQuantity", ExecQuantity, myerr
DataSubscription.GetCell ROW, "ExecPrice", ExecPrice, myerr
DataSubscription.GetCell ROW, "symbol", symbol, myerr
DataSubscription.GetCell ROW, "Account", Account, myerr
DataSubscription.GetCell ROW, "Quantity", Quantity, myerr
DataSubscription.GetCell ROW, "RefNum", RefNum, myerr
DataSubscription.GetCell ROW, "Status", Status, myerr
DataSubscription.GetCell ROW, "PriceType", PriceType, myerr
DataSubscription.GetCell ROW, "Price", Price, myerr
DataSubscription.GetCell ROW, "Memo", Memo, myerr
DataSubscription.GetCell ROW, "TIF", TIF, myerr
DataSubscription.GetCell ROW, "OrderRefKey", OrderRefKey, myerr
DataSubscription.GetCell ROW, "ParentOrdRefKey", ParentOrdRefKey, myerr
DataSubscription.GetCell ROW, "MsgType", MsgType, myerr
DataSubscription.GetCell ROW, "AvgPrice", AvgPrice, myerr
DataSubscription.GetCell ROW, "custom2", custom2, myerr
'If Not OrderRefKey = "NONE" And Not MsgType = "ADMIN" And Not PriceType = "Invalid" Then
Worksheets("Demo").Cells(currRow, "A").Value = Side
Worksheets("Demo").Cells(currRow, "B").Value = Quantity
Worksheets("Demo").Cells(currRow, "C").Value = symbol
Worksheets("Demo").Cells(currRow, "D").Value = PriceType
Worksheets("Demo").Cells(currRow, "E").Value = Price
Worksheets("Demo").Cells(currRow, "F").Value = TIF
Worksheets("Demo").Cells(currRow, "G").Value = OrderRefKey
Worksheets("Demo").Cells(currRow, "H").Value = RefNum
Worksheets("Demo").Cells(currRow, "I").Value = Status
Worksheets("Demo").Cells(currRow, "J").Value = ExecQuantity
Worksheets("Demo").Cells(currRow, "K").Value = ExecPrice
Worksheets("Demo").Cells(currRow, "L").Value = MsgType
Worksheets("Demo").Cells(currRow, "M").Value = AvgPrice
Worksheets("Demo").Cells(currRow, "N").Value = custom2
currRow = currRow + 1
'End If
End If
End Sub0
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
- 279 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
- 716 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 中文论坛