Get open position information and close position in python

Hi I want to get open positions information and close position.
i don’t find any information for open positions info and closing positions.
how can i get amount of open position?

For U-M futures, GET /fapi/v2/positionRisk