mtf positions api is returning 0 in buy_value field when position is held overnight. buy_value parameter must have total invested amount in it.
Also add margin_bracket field in response so that we can see how much amount is utilised.
And in app and web under position tab we are not able to see total invested value. Please show it so that we can see total investment like showing in holdings
We have confirmed with our internal team that the buy_value field reflects only the current day’s buy value. This field will always be the same as the day_buy_value field provided in the response.
If you’re looking for the previous day’s buy value, you can calculate it using the overnight_buy_amount multiplied by the overnight_buy_quantity.
Therefore, the total current buy value becomes: day_buy_value + (overnight_buy_amount × overnight_buy_quantity)
Why we need to keep asking you to reply and even if you reply then it is also not complete reply of the entire question? Don’t you think ignoring your customers won’t keep you running longer in future?
@Jagdish_j_ptl
The Holding API response is similar to the Position API. Holdings do not reflect on the same day you buy a stock, so the API returns the aggregated values of the stocks currently in your holdings.
Your suggestion has been forwarded to the concerned team. However, we provide the margin_bracket for each stock in the instrument JSON file. You can store this data locally and map the margin bracket for each instrument in your Margin API response.
Since this query is not directly related to the Upstox API, I might not be the best person to address it. However, I have forwarded it to the concerned team. It would be best to post this query in the general channel for broader visibility and support.
I am doing same for mtf_braket but if we get same thing from API then it will reduce database or IO related queries.
We are getting separate Instrument JSON file for MTF is there any specific reason for that? If you can add mtf_bracket field in complete.json.gz or NSE.json.gz then it can be accessed directly. As we need to read two files to check only one field.