How to get M2M and running PNL of positions

How to get M2M and running PNL of positions?
Do you have API endpoints for this?

Thanks,
Tejas