I want to show tradingsymbol but isn’t showing help me how to do this
Positiondata = {
'net': [{'tradingsymbol': 'NIFTY22N1018200CE', 'exchange': 'NFO', 'instrument_token': 12368386, 'product': 'MIS', 'quantity': 100, 'overnight_quantity': 0, 'multiplier': 1, 'average_price': 80, 'close_price': 0, 'last_price': 78.85, 'value': -8000, 'pnl': -115.00000000000091, 'm2m': -115.00000000000091, 'unrealised': -115.00000000000091, 'realised': 0, 'buy_quantity': 100, 'buy_price': 80, 'buy_value': 8000, 'buy_m2m': 8000, 'sell_quantity': 0, 'sell_price': 0, 'sell_value': 0, 'sell_m2m': 0, 'day_buy_quantity': 100, 'day_buy_price': 80, 'day_buy_value': 8000, 'day_sell_quantity': 0, 'day_sell_price': 0, 'day_sell_value': 0}],
'day': [{'tradingsymbol': 'NIFTY22N1018200CE', 'exchange': 'NFO', 'instrument_token': 12368386, 'product': 'MIS', 'quantity': 100, 'overnight_quantity': 0, 'multiplier': 1, 'average_price': 80, 'close_price': 0, 'last_price': 78.85, 'value': -8000, 'pnl': -115.00000000000091, 'm2m': -115.00000000000091, 'unrealised': -115.00000000000091, 'realised': 0, 'buy_quantity': 100, 'buy_price': 80, 'buy_value': 8000, 'buy_m2m': 8000, 'sell_quantity': 0, 'sell_price': 0, 'sell_value': 0, 'sell_m2m': 0, 'day_buy_quantity': 100, 'day_buy_price': 80, 'day_buy_value': 8000, 'day_sell_quantity': 0, 'day_sell_price': 0, 'day_sell_value': 0}]
}
dataArray = {
“positionData” : Positiondata
}
<tbody> {% for key, value in positionData.items %} <tr>
<td> {{ key }} </td>
<td> {{ value }} </td>
<td>
<b> {{ net.tradingsymbol }} </b>
</td>
</tr> {% endfor %} </tbody>