Guides
Guides

Position history

Review your past closed positions for performance tracking.

Review your past closed positions for performance tracking, for one currency. Same default and isolation as Open Positions. PnL is in the position's currency.

Request

# USDT (default)
curl -X GET "https://trade.mudrex.com/fapi/v1/futures/positions/history?limit=2" \
  -H "X-Authentication: your-secret-key"
# INR
curl -X GET "https://trade.mudrex.com/fapi/v1/futures/positions/history?limit=5&trade_currency=INR" \
  -H "X-Authentication: your-secret-key"

Parameters

ParameterTypeRequiredDescription
trade_currencystringNoUSDT or INR. Defaults to USDT. One currency per call.
limitnumberNoMaximum number of records to return (default: 20).

Response

Status: 200 OK

{
    "success": true,
    "data": [
        {
            "id": "019c0555-aa2e-73e5-86cf-3a2167c62cfc",
            "position_type": "LONG",
            "status": "LIQUIDATED",
            "leverage": "50",
            "entry_price": "0.31169",
            "closed_price": "0.30546",
            "quantity": "240",
            "pnl": "-143.53",
            "symbol": "SOMIUSDT",
            "trade_currency": "INR",
            "entry_hedge_rate": "96",
            "exit_hedge_rate": "96"
        }
    ]
}

Response fields

FieldDescription
idPosition ID (UUID).
position_typePosition type: LONG or SHORT.
statusPosition status (e.g. LIQUIDATED, CLOSED).
leverageLeverage used for the position.
entry_pricePrice at which the position was opened (USDT).
closed_pricePrice at which the position was closed (USDT).
quantityPosition quantity (base asset).
pnlRealised PnL for the closed position, in trade_currency.
symbolTrading symbol (e.g. "SOMIUSDT").
trade_currencyCurrency of the position: USDT or INR (additive).
entry_hedge_rateINR/USDT rate captured at entry (additive, INR positions).
exit_hedge_rateINR/USDT rate captured at exit (additive, INR positions).