I am developing an application to calculate my trading profit, primarily for analyzing my trading strategies. To achieve this, I used the following API to fetch historical trading data along with associated charges and price details:
However, this API only provides details of orders executed on Dhan. How can I access information about expired contracts, such as the pricing and charges for buy or sell contract orders that have expired?
Can you elaborate more on this? If there are expired contracts that were open positions for your account, then you would like to view details of that. Is this correct?
Then , how iI can determine that trade is in profit or loss, How to calculate that using this partial data…
Is ther any other APi provides the information which is useful to calculate the profit and loss