Skip to main content
GET
/
v1
/
positions
Get Positions
curl --request GET \
  --url https://api.rivermarkets.com/v1/positions \
  --header 'X-River-Key-Id: <api-key>' \
  --header 'X-River-Signature: <api-key>' \
  --header 'X-River-Timestamp: <api-key>'
{
  "subaccount_to_positions": [
    {}
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.rivermarkets.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-River-Key-Id
string
header
required

UUID of your API key (from Settings → API Keys).

X-River-Timestamp
string
header
required

Current unix seconds. Must be within 30s of server time.

X-River-Signature
string
header
required

Base64 Ed25519 signature over the canonical request: METHOD\nPATH\nSORTED_QUERY\nTIMESTAMP\nSHA256(body) hex. See /api-reference/authentication for the full recipe.

Query Parameters

subaccount_id
string<uuid> | null

Filter by specific subaccount

river_id
integer | null

Filter by instrument

include_closed
boolean
default:false

Include positions in closed markets

Response

Successful Response

Positions grouped by subaccount.

subaccount_to_positions
Subaccount To Positions · object[]
required