Hi @Hardik & Dhan Team,
Couldn’t make it to Mumbai on time therefore attended the API session via live feed on YouTube today.
First of all many thanks and congratulations for organizing an event dedicated to API traders, appreciate your Team’s focus on this community.
Also, i requested this info earlier but finally happy to know that the processing time of order API is under 75ms, which is very good and i hope it is improved further and made as quick as Dhan Web platform (<25ms)
Very excited for new features introduced in Version 2 of DhanHQ API, specially the sandbox, it will save us an considerable amount of time and money.
As you launched the V2 today in this event, but i am still unable to find DhanHQ API V2 on Github dhan-oss (Dhan) · GitHub
And also on another note, as discussed in below thread Urgent: Positions Miscalculated dhan.getpositions()
has this been fixed in this major update ?
Does the get position in the V2 contain a field (net_qty_BuyAvg Price / net_qty_SellAvg Price) that provides only the current open position BuyAvg price or SellAvg price.
As discussed in that thread the get position as in current version 1.3 provides avg price but it also includes the closed positions while calculating this, thus making the ‘buyAvg’ and ‘sellAvg’ inaccurate for current open position.
Whereas the total averages of all position for the day should only be displayed in ‘dayBuyQty’: , ‘daySellQty’: , ‘dayBuyValue’: , ‘daySellValue’:
I sincerely hope it has been fixed in this major update.