(posting on behalf of a client who was asking)
Question
Is there a way to retrieve the algo parameters set on an order?
Answer
(included as it was provided)
Yes, you can query Cache Control for the "custom" 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 IntegerDim BrSeq As VariantDim Side As VariantDim ExecQuantity As VariantDim symbol As VariantDim ExecPrice As VariantDim Status As VariantDim myerr As VariantDim Account As VariantDim Quantity As VariantDim RefNum As VariantDim PriceType As VariantDim OrderRefKey As VariantDim ParentOrdRefKey As VariantDim Exchange As VariantDim Price As VariantDim TIF As VariantDim Memo As VariantDim MsgType As VariantDim OrdDesc As StringDim ProgressPct As DoubleDim AvgPrice As VariantDim custom2 As Variant' =========== Action List ==============' 1 : Snapshot' 4 : New insert' 5 : Update' ======================================If (Action = 1) ThenFor I = 0 To ROW - 1DataSubscription.GetCell I, "BrSeq", BrSeq, myerrDataSubscription.GetCell I, "Side", Side, myerrDataSubscription.GetCell I, "ExecQuantity", ExecQuantity, myerrDataSubscription.GetCell I, "ExecPrice", ExecPrice, myerrDataSubscription.GetCell I, "symbol", symbol, myerrDataSubscription.GetCell I, "Account", Account, myerrDataSubscription.GetCell I, "Quantity", Quantity, myerrDataSubscription.GetCell I, "RefNum", RefNum, myerrDataSubscription.GetCell I, "Status", Status, myerrDataSubscription.GetCell I, "PriceType", PriceType, myerrDataSubscription.GetCell I, "Price", Price, myerrDataSubscription.GetCell I, "Memo", Memo, myerrDataSubscription.GetCell I, "TIF", TIF, myerrDataSubscription.GetCell I, "OrderRefKey", OrderRefKey, myerrDataSubscription.GetCell I, "ParentOrdRefKey", ParentOrdRefKey, myerrDataSubscription.GetCell I, "MsgType", MsgType, myerrDataSubscription.GetCell I, "AvgExecPrice", AvgPrice, myerrDataSubscription.GetCell I, "custom2", custom2, myerr'If Not OrderRefKey = "NONE" And Not MsgType = "ADMIN" And Not PriceType = "Invalid" ThenWorksheets("Demo").Cells(currRow, "A").Value = SideWorksheets("Demo").Cells(currRow, "B").Value = QuantityWorksheets("Demo").Cells(currRow, "C").Value = symbolWorksheets("Demo").Cells(currRow, "D").Value = PriceTypeWorksheets("Demo").Cells(currRow, "E").Value = PriceWorksheets("Demo").Cells(currRow, "F").Value = TIFWorksheets("Demo").Cells(currRow, "G").Value = OrderRefKeyWorksheets("Demo").Cells(currRow, "H").Value = RefNumWorksheets("Demo").Cells(currRow, "I").Value = StatusWorksheets("Demo").Cells(currRow, "J").Value = ExecQuantityWorksheets("Demo").Cells(currRow, "K").Value = ExecPriceWorksheets("Demo").Cells(currRow, "L").Value = MsgTypeWorksheets("Demo").Cells(currRow, "M").Value = AvgPriceWorksheets("Demo").Cells(currRow, "N").Value = custom2currRow = currRow + 1'End IfNext IElseDataSubscription.GetCell ROW, "BrSeq", BrSeq, myerrDataSubscription.GetCell ROW, "Side", Side, myerrDataSubscription.GetCell ROW, "ExecQuantity", ExecQuantity, myerrDataSubscription.GetCell ROW, "ExecPrice", ExecPrice, myerrDataSubscription.GetCell ROW, "symbol", symbol, myerrDataSubscription.GetCell ROW, "Account", Account, myerrDataSubscription.GetCell ROW, "Quantity", Quantity, myerrDataSubscription.GetCell ROW, "RefNum", RefNum, myerrDataSubscription.GetCell ROW, "Status", Status, myerrDataSubscription.GetCell ROW, "PriceType", PriceType, myerrDataSubscription.GetCell ROW, "Price", Price, myerrDataSubscription.GetCell ROW, "Memo", Memo, myerrDataSubscription.GetCell ROW, "TIF", TIF, myerrDataSubscription.GetCell ROW, "OrderRefKey", OrderRefKey, myerrDataSubscription.GetCell ROW, "ParentOrdRefKey", ParentOrdRefKey, myerrDataSubscription.GetCell ROW, "MsgType", MsgType, myerrDataSubscription.GetCell ROW, "AvgPrice", AvgPrice, myerrDataSubscription.GetCell ROW, "custom2", custom2, myerr'If Not OrderRefKey = "NONE" And Not MsgType = "ADMIN" And Not PriceType = "Invalid" ThenWorksheets("Demo").Cells(currRow, "A").Value = SideWorksheets("Demo").Cells(currRow, "B").Value = QuantityWorksheets("Demo").Cells(currRow, "C").Value = symbolWorksheets("Demo").Cells(currRow, "D").Value = PriceTypeWorksheets("Demo").Cells(currRow, "E").Value = PriceWorksheets("Demo").Cells(currRow, "F").Value = TIFWorksheets("Demo").Cells(currRow, "G").Value = OrderRefKeyWorksheets("Demo").Cells(currRow, "H").Value = RefNumWorksheets("Demo").Cells(currRow, "I").Value = StatusWorksheets("Demo").Cells(currRow, "J").Value = ExecQuantityWorksheets("Demo").Cells(currRow, "K").Value = ExecPriceWorksheets("Demo").Cells(currRow, "L").Value = MsgTypeWorksheets("Demo").Cells(currRow, "M").Value = AvgPriceWorksheets("Demo").Cells(currRow, "N").Value = custom2currRow = currRow + 1'End IfEnd IfEnd Sub