Skip to main content
GET
/
v2
/
dflow
/
wallet
/
positions
/
{wallet}
Get Dflow Wallet Positions
curl --request GET \
  --url https://api.predexon.com/v2/dflow/wallet/positions/{wallet} \
  --header 'x-api-key: <api-key>'
{
  "wallet": "<string>",
  "positions": [
    {
      "outcome_mint": "<string>",
      "status": "open",
      "total_cost_basis": 123,
      "avg_entry_price": 123,
      "realized_pnl": 123,
      "fees_paid": 123,
      "total_qty_bought": 123,
      "total_qty_sold": 123,
      "market_ticker": "<string>",
      "market_title": "<string>",
      "yes_subtitle": "<string>",
      "no_subtitle": "<string>",
      "outcome": "<string>",
      "first_trade_at": 123,
      "last_trade_at": 123
    }
  ],
  "summary": {
    "total_positions": 123,
    "open_positions": 123,
    "closed_positions": 123,
    "total_cost_basis": 123,
    "total_realized_pnl": 123,
    "total_fees_paid": 123
  },
  "pagination": {
    "limit": 123,
    "count": 123,
    "has_more": true,
    "pagination_key": "<string>"
  }
}
Fetch positions for a wallet on Dflow. Returns cost basis, realized PnL, and fees. Open positions have total_qty_bought > total_qty_sold.
ConstraintValue
limit1–500 (default 100)

Authorizations

x-api-key
string
header
required

Path Parameters

wallet
string
required

Solana wallet address (base58-encoded, 32-44 chars)

Query Parameters

status
enum<string> | null

Filter by position status: open, closed, or all (default) Dflow position status enum.

Available options:
open,
closed
outcome_mint
string | null

Filter by specific outcome mint address

market_ticker
string | null

Filter by market ticker (case-insensitive)

sort_by
enum<string>
default:total_cost_basis

Sort by: total_qty_bought, total_cost_basis, or realized_pnl

Available options:
total_qty_bought,
total_cost_basis,
realized_pnl
order
enum<string>
default:desc

Sort order: asc or desc

Available options:
asc,
desc
limit
integer
default:100

Maximum number of positions to return (1-500)

Required range: 1 <= x <= 500
pagination_key
string | null

Base64-encoded cursor for pagination

Response

Successful Response

Dflow wallet positions endpoint response.

wallet
string
required

Wallet address

positions
DflowPosition · object[]
required
summary
DflowPositionsSummary · object
required

Summary of all dflow positions.

pagination
CursorPagination · object
required

Cursor-based pagination for endpoints that don't support offset.