Skip to content
API reference /Account & trading

Inspect realized position returns

Inspect a closed position whose 20 USDT closing profit is reduced by 1.25 USDT in trading fees.

Endpoint & access

GET
/api/v1/usdt/position_pnl_detail

Whitelist Required

Request whitelist approval for your API key. This endpoint is available only after approval.

Query parameters

Field Data type Required Meaning
position_id long NO Position ID.

This endpoint requires a signed request.

Returned fields

Field Data type Meaning
position_id integer Position ID.
realised_pnl string Realized profit or loss.
closed_pnl string Profit or loss from closing trades.
funding_fee string Funding fee.
trading_fee string Trading fee.

Example request

GET /api/v1/usdt/position_pnl_detail?position_id=640202

Example result

{
  "code": 200,
  "message": null,
  "data": {
    "position_id": 640202,
    "realised_pnl": "18.75",
    "closed_pnl": "20",
    "funding_fee": "0",
    "trading_fee": "1.25"
  }
}