Get Positions details

In the ‘Get Positions’ function please add ‘order_id’ parameter in the response, it will be extremely usefull for automating trades or creating hotkeys. Lack of this feature has lengthened my code significantly, because to fetch order_id, again i am required to add a new snippet in the code, I am sure this will be useful for many algo traders 'import requests

url = “https://api.upstox.com/v2/portfolio/short-term-positions

payload={}
headers = {
‘Accept’: ‘application/json’
}

response = requests.request(“GET”, url, headers=headers, data=payload)

print(response.text){
“status”: “success”,
“data”: [
{
“exchange”: “NFO”,
“multiplier”: 1.0,
“value”: 39.75,
“pnl”: 26.25,
“product”: “D”,
“instrument_token”: “NSE_FO|52618”,
“average_price”: 2.65,
“buy_value”: 0.0,
“overnight_quantity”: 15,
“day_buy_value”: 0.0,
“day_buy_price”: 0.0,
“overnight_buy_amount”: 39.75,
“overnight_buy_quantity”: 15,
“day_buy_quantity”: 0,
“day_sell_value”: 0.0,
“day_sell_price”: 0.0,
“overnight_sell_amount”: 0.0,
“overnight_sell_quantity”: 0,
“day_sell_quantity”: 0,
“quantity”: 15,
“last_price”: 1.75,
“unrealised”: -658304.25,
“realised”: -0.0,
“sell_value”: 0.0,
“trading_symbol”: “BANKNIFTY23OCT38000PE”,
“tradingsymbol”: “BANKNIFTY23OCT38000PE”,
“close_price”: 1.95,
“buy_price”: 2.65,
“sell_price”: 0.0
}’

I have question, is there any where i get the position details in sandbox? i see, i can place order in sandbox environment but what about if i want to check in position for test it?

That would be great, If anyone know this, and suggest me for this.