Skip to main content
POST
/
v2
/
pnl
/
tokens
/
{token}
/
positions
/
batch
Batch positions for one token across wallets
curl --request POST \
  --url https://api.dexploit.dev/v2/pnl/tokens/{token}/positions/batch \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "wallets": [
    "<string>"
  ]
}
'
{
  "token": "<string>",
  "pnl_mode": "<string>",
  "count": 123,
  "positions": [
    {
      "wallet": "<string>",
      "balance_atomic": 123,
      "avg_cost_per_token": 123,
      "cost_basis_sol": 123,
      "realized_sol": 123,
      "unrealized_sol": 123,
      "current_value_sol": 123,
      "total_buys_sol": 123,
      "total_sells_sol": 123,
      "total_buy_count": 123,
      "total_sell_count": 123,
      "largest_buy_sol": 123,
      "largest_sell_sol": 123,
      "fastest_flip_seconds": 123,
      "longest_hold_seconds": 123,
      "first_trade_ts": 123,
      "last_trade_ts": 123,
      "is_arbitrageur": true,
      "tags": [
        "<string>"
      ],
      "realized_breakdown": {
        "raw": 123,
        "strict": 123,
        "adjusted": 123
      },
      "realized_usd": 123,
      "unrealized_usd": 123,
      "current_value_usd": 123,
      "cost_basis_usd": 123
    }
  ]
}

Authorizations

X-API-Key
string
header
required

Preferred for swaps-api endpoints (/swaps/*, /stats/*, /trending, /pool-events).

Path Parameters

token
string
required

Token mint address (base58).

Query Parameters

pnl_mode
enum<string>
default:adjusted

PnL accounting mode. strict (FIFO) and adjusted (weighted-avg cost) are realized-PnL figures; raw is net cash-flow (Σ sells − Σ buys), not realized PnL. Unknown values fall back to adjusted.

Available options:
raw,
strict,
adjusted

Body

application/json
wallets
string[]
required
Required array length: 1 - 200 elements

Response

Batch positions

token
string
pnl_mode
string
count
integer
positions
(object | null)[]

Same shape as PnlPosition but keyed on wallet (the mint key is removed and wallet inserted). Returned by token-scoped endpoints.