Perpetuals API

One perpetual-futures trading account

The state of ONE perpetual-futures trading account, keyed by address with NO chain. Other wallet endpoints answer about on-chain holdings; this one about derivatives exposure.

GET/api/external/perps/perps-trader/{address}

What it returns

Equity, PnL, win rate, volume, and funding paid/received for ONE trading account on the leveraged derivatives venue this family covers. address is that account's address on that venue — not a wallet on any of this API's six chains, and not looked up against any of them. A malformed address returns 400 naming exactly that.

Chains

This endpoint is not tied to a chain: it takes no chain in its request.

Request

Send your key in the x-dex-data-key header. Replace each <placeholder> with a real value.

curl -H "x-dex-data-key: $DEXDATA_API_KEY" \
  "https://api.dexdata.io/api/external/perps/perps-trader/<address>"
Parameters
ParameterDescription
address

path · string · required

The address of a trading account on the leveraged derivatives venue this endpoint covers — not a wallet on any chain this API otherwise supports.

Response fields

A JSON response. Every field is always present; null means the value could not be established, never zero.

Response fields of One perpetual-futures trading account
FieldTypeDescription
equityUsdnumber | nullCurrent total perp equity, USD.
longValueUsdnumber | nullTotal notional value of open long positions, USD.
shortValueUsdnumber | nullTotal notional value of open short positions, USD.
unrealizedPnlUsdnumber | nullCurrent unrealized profit and loss across open positions, USD.
orderCountnumber | nullLifetime number of orders/fills tracked for this account.
orderCount90dnumber | nullOrders/fills recorded during the last 90 days.
winsnumber | nullLifetime number of profitable realized trades or position outcomes.
wins90dnumber | nullProfitable realized outcomes during the last 90 days.
lossesnumber | nullLifetime number of losing realized trades or position outcomes.
losses90dnumber | nullLosing realized outcomes during the last 90 days.
volumeUsdnumber | nullLifetime trading volume, USD.
volume90dUsdnumber | nullTrading volume during the last 90 days, USD.
openVolumeUsdnumber | nullLifetime USD notional value of currently open positions.
openVolume90dUsdnumber | nullUSD notional value of positions opened during the last 90 days.
realizedPnlUsdnumber | nullLifetime realized profit and loss, USD.
realizedPnl90dUsdnumber | nullRealized profit and loss during the last 90 days, USD.
fundingFeeUsdnumber | nullLifetime net funding paid or received, USD.
fundingFee90dUsdnumber | nullNet funding paid or received during the last 90 days, USD.
firstTradeAtnumber | nullUnix seconds of this account's first recorded trade.
lastTradeAtnumber | nullUnix seconds of this account's most recent recorded trade.
openValueUsdnumber | nullCurrent total notional value of all open positions, USD.
totalPnlUsdnumber | nullLifetime total PnL, realized plus unrealized, USD.
totalPnl90dUsdnumber | nullTotal PnL during the last 90 days, USD.
winRatenumber | nullLifetime win rate across realized outcomes, 0-1.
winRate90dnumber | nullWin rate during the last 90 days, 0-1.
roenumber | nullAggregate return on equity for this account's activity.
roinumber | nullAggregate return on invested capital across this account's activity.
roi90dnumber | nullReturn on invested capital during the last 90 days.
biasnumber | nullNet directional bias between long and short positioning. Positive = long skew; negative = short skew.
leveragenumber | nullAggregate effective leverage across open positions.
biasTextstring | nullHuman-readable interpretation of bias, e.g. "Very Bearish".

Start building with DexData today

Sign in, create a key and make your first call in a minute. Free credits every month, and you only pay for calls that succeed.

Get a free API key