Skip to main content
cesto.positions.list returns a user’s open and closing positions, resolved from their external Solana wallet address (Phantom, Solflare, etc.) — no end-user login required.
const { positions, pendingClosePositions } = await cesto.positions.list({
  wallet: 'EXTERNAL_SOLANA_ADDRESS',
});
wallet
string
required
External Solana wallet address to look up.
positions
Position[]
Live open / partially-open positions.
pendingClosePositions
Position[]
Positions with a close currently in progress.
A wallet with no Cesto account returns an empty result ({ positions: [], pendingClosePositions: [] }) — it is not an error. The wallet argument is required; an empty value throws before any request is made.