REDI Python API Query Order Executed Price

How do I go about querying the executed price of an order?
The documentation on GitHub specifies the following way to query:

	
cellVar.value = "DisplaySymbol"
ret = q.GetCell(i,  cellVar, cellVal, retVar)
print(str(retVar.value) + ", "+ str(cellVal.value) + "=" + str(cellVar.value) + " success="+str(ret))

But changing the key to "ExecPrice" or "Price" returns a null output.

Is there an endpoint to query these parameters?



Best Answer

  • Jirapongse
    Answer ✓

    @RajV

    Thank you for reaching out to us.

    I can retrieve it properly by using the following code.

        cellVar.value  = "ExecPrice"
        ret = q.GetCell(i,  cellVar, cellVal, retVar)
        print(str(retVar.value) + ", "+ str(cellVal.value) + "=" + str(cellVar.value) + " success="+str(ret))

    I modified the code from GitHub. Please see the attached file. GetCachedOrder.py.txt

    I set the where variable to an empty string.

    # Prepare the query
    vTable = "Message"
    vWhere = ""

    1707982704328.png



Answers

  • The output is similar to the entries displayed on the Message Monitor (Doneaway).

    1707982822084.png