Skip to main content
All paths are relative to the base URL. See authentication and errors and idempotency. Balances include native perpetual, supported HIP-3, and spot balances. Top-level equity, withdrawable, and margin_used describe the native perpetual account. The perpetuals array exposes these metrics per DEX ("" for native, "xyz" for XYZ). Do not sum these balances blindly: collateral may be shared across account modes. Positions include all supported DEXes by default; pass ?dex=xyz to select XYZ or ?dex= for native markets only. Fills come from Legend’s indexed history and can lag the venue; they are isolated by user, wallet, and network. Pagination cursors are opaque and must not be edited.

Read account balances

GET /v1/account Requires trading:read.

Example request

Response

See the OpenAPI schema for nested response objects and validation patterns. Illustrative successful response:

Read positions across supported DEXes or filter by DEX

GET /v1/positions Requires trading:read.

Parameters

Example request

Response

See the OpenAPI schema for nested response objects and validation patterns. Illustrative successful response:

List account fills indexed by Legend

GET /v1/fills Requires trading:read.

Parameters

Example request

Response

See the OpenAPI schema for nested response objects and validation patterns. Illustrative successful response: