Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Transactions /
  • REDI API /
avatar image
REFINITIV
Question by Brian.Mullane1 · Dec 03, 2019 at 06:16 PM · redi-api

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

(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


People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by zoya faberov · Dec 03, 2019 at 06:47 PM

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 Sub
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
8 People are following this question.

Related Questions

REDI desktop always close.

Update event in REDI API

REDI C# API

redi api snapshot with duplicate orders

RediLib.Order.Submit returns False with null in the objErr

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges