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.

@RajV

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

@RajV

Hi,

Please be informed that a reply has been verified as correct in answering the question, and marked as such.

Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
79.1k 250 52 74

@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.