Skip to main content
GET
/
v1
/
dflow
/
wallet
/
positions
/
{wallet_address}
Get Dflow Wallet Positions
curl --request GET \
  --url https://api.predexon.com/v1/dflow/wallet/positions/{wallet_address} \
  --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,
    "offset": 123,
    "total": 123,
    "has_more": true
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication. Get yours at https://dashboard.predexon.com

Path Parameters

wallet_address
string
required

Wallet address to fetch positions for

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

market_ticker
string | null

Filter by market ticker (case-insensitive)

sort_by
enum<string>
default:total_cost_basis

Field to sort by

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

Sort order: asc or desc

Available options:
asc,
desc
limit
integer
default:100

Maximum number of positions to return

Required range: 1 <= x <= 500
offset
integer
default:0

Number of positions to skip for pagination

Required range: x >= 0

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
Pagination · object
required

Offset-based pagination model.