question

Upvotes
Accepted
1 0 0 1

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?



python#technologyendpoint
icon clock
10 |1500

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

1 Answer

· Write an Answer
Upvotes
Accepted
83.1k 281 53 77

@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




icon clock
10 |1500

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

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

1707982822084.png

1707982822084.png (33.7 KiB)

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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