Historical used margin

how to get the used margin information of the past trades in zerodha?

Hi @ashu433

You can check the entries for margin blocked in the Console ledger (Funds statement)

If you are willing to share, is there any particular reason/use case why you need historical used margin data?