Account Positions
Retrieve all open positions for a specific trading account including quantity, cost basis, current market value, and unrealized profit/loss. Track portfolio holdings and performance metrics in real-time.
Use Case: Display a portfolio summary with current positions, P&L, and percentage gains/losses for each holding.
Documentation Index
Fetch the complete documentation index at: https://finance.dev/llms.txt
Use this file to discover all available pages before exploring further.
Demo response (all fields)
This matches trade-xh-svcGetPositionsResponse / PositionResponse (svc/trade-xh-svc/internal/transport/http/response.go). Position numerics are decimal strings. The sample includes every JSON field on the response object.
Authorizations
OAuth2 Bearer token: obtain an access token from the token endpoint and send it in the Authorization header.
Path Parameters
Account whose positions you want to read. Enter the account ID from User Accounts.
Response
Account positions retrieved successfully
Response for GET /v1/accounts/{id}/positions. Cached positions for the account plus data availability metadata (trade-xh-svc). Numeric amounts are returned as decimal strings.