How to access Execution Price of an Order? There is no field for it ?
The response of the order_list and getOrderById, do not have any parameter that shows at what price the order got executed. Please help.
@Hardik - Could you please share this info?
Hello @Pankaj_Shrivastava
Welcome to MadeForTrade community!
This was not available in Order Detail APIs. Hence, we added this field in DhanHQ V2. You can check under avgTradePrice
as part of the response.
Hi @Hardik
Where do I get the version V2. I have version 1.3.3 download from pypi.org.
Thanks,
Pankaj
Hello @Pankaj_Shrivastava
We are working on V2 of Python library. We will let you know once it is live.
Kindly fix existing issues in V2 , we are tired if V1 data offerings
@Hardik - Is there any work around available? How are others able to use V1 if they cannot know at what price there orders got executed ? How are they handling slippages ?
Hello @Pankaj_Shrivastava
In V1, users use Trades of an Order API to fetch the average trade price. This is how you can also check the same.
@optionstrader We have deployed fixes to reported issues in V2. Do let me know in case you find any such more issues.
Trades of an Order API ?? Can u pls elaborate @Hardik ?
You can use this endpoint, which returns all trades of a particular order: Orders - DhanHQ Ver 2.0 / API Document
So using the python library for version 1, we can’t do it and there is no python library for version 2. Does it mean no one is doing algo trading using dhan’s python library currently
Actually that is not how versions work. We actually have a lot of users in this community itself who have already built their code for v2 and lot of users who are still using python library for version 1.