This section describes the REST endpoints and corresponding TypeScript SDK methods for retrieving user account information, balances, positions, executions, and account statistics.
REST Endpoints
Resource
Endpoint
Root Account
GET /api/v1/user/root-account
Sub Accounts
GET /api/v1/user/sub-accounts
Positions
GET /api/v1/position/list?sub_account_address=<address>
Executions (Fills)
GET /api/v1/execution/list?sub_account_address=<address>
GET /api/v1/account/balance and the account_balance WebSocket topic return one entry per account. Amounts are USDC decimal strings unless noted. The fields that reflect multi-asset collateral:
Field
Description
vault_balance
Quote (USDCx) balance. Shows 0 while there is a debt.
equity
What the account is worth to liquidation, floored at zero: the quote balance (a debt counted in full), unrealized P&L and funding, and unfrozen collateral at its maintenance weight.
margin_balance
Same as equity.
collateral[]
Non-quote collateral; omitted when there is none. See below.
initial_total_collateral
Quote balance, unrealized P&L, funding, and non-quote collateral at its initial weight. Trading accounts holding non-quote collateral or owing a debt only.
maintenance_total_collateral
The same total at maintenance weight, collateral on hold excluded. Present when initial_total_collateral is.
debt
Quote owed: how far the quote balance is below zero. Omitted when nothing is owed.
fee_asset
The first asset other than the quote in fee_priority. Trading accounts only.
fee_priority[]
The assets fees are taken from first, in order. Trading accounts only; omitted while empty. See Fee Asset.
Each collateral[] entry:
Field
Description
asset_id, symbol
The asset, as in GET /api/v1/collateral/assets.
balance
Whole tokens, including the amount on hold.
frozen
Whole tokens on hold for a withdrawal.
price
USDC per token. Trading accounts only.
initial_weight, maintenance_weight
Effective weights: initial_weight is "0" unless the asset is active and freshly priced. Trading accounts only.
initial_value, maintenance_value
Value at each weight, in USDC. Trading accounts only.
Execution fee fields
Executions (REST and the execution WebSocket topic) carry how each fill’s fee was paid:
Field
Description
fee
Signed fee in raw quote units (negative is a maker rebate). Empty on fills recorded before fees were stored.
fee_asset
The asset that paid the fee; omitted when it is the quote.
fee_legs[]
When the fee was split across assets: {asset_id, amount, quote_equivalent} per asset.
seized_legs[]
On liquidation takeovers only: {asset_id, amount, quote_credited} per collateral asset seized.
These fields are raw integer units, unlike the decimal strings elsewhere. fee, quote_equivalent and quote_credited are in the quote’s units: divide by 10^decimals of asset 1. Each leg’s amount is in its own asset’s units: divide by that asset’s decimals. Both come from GET /api/v1/collateral/assets.
Timestamp Fields
REST resources use Unix timestamps in milliseconds.Common timestamp fields include:
created_time
updated_time
timestamp_ms
Some legacy responses may still include the timestamp field for backward compatibility.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Ekiden Docs","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/ekiden/McZRXOwX0mLF-82T/logo/light.svg?fit=max\u0026auto=format\u0026n=McZRXOwX0mLF-82T\u0026q=85\u0026s=1fc30a63554cb7f43f2f3c702080c17d","dark":"https://mintcdn.com/ekiden/McZRXOwX0mLF-82T/logo/dark.svg?fit=max\u0026auto=format\u0026n=McZRXOwX0mLF-82T\u0026q=85\u0026s=0056ba33d4c1ee4ffc2cd4e37d846df4"},"favicon":"https://mintcdn.com/ekiden/WKY4jTJG-5eWZWui/favicon.png?fit=max\u0026auto=format\u0026n=WKY4jTJG-5eWZWui\u0026q=85\u0026s=aeb61175e8578c97e689b10cf506fe74","background":{"color":{"dark":"#121212"}},"navbar":{"links":[{"href":"mailto:team@ekiden.fi","label":"Support"}],"primary":{"type":"button","label":"App","href":"https://app.ekiden.fi"}},"footer":{"socials":{"x":"https://x.com/ekidenfi","github":"https://github.com/ekidenfi","linkedin":"https://linkedin.com/company/ekidenfi"}},"integrations":{"ga4":{"measurementId":"G-N5ZZ958CJ8"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Documentation","icon":"book-open-cover","href":"https://docs.ekiden.fi"},{"anchor":"Community","icon":"slack","href":"https://discord.gg/37682NeRb3"},{"anchor":"Blog","icon":"newspaper","href":"https://medium.com/ekidenfi"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ekiden","hasAudioNarration":false,"actualSubdomain":"ekiden","customDomains":["docs.ekiden.fi"],"gitSource":{"type":"github","owner":"ekidenfi","repo":"ekiden-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b0cc86f6a3cada1febd9523","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"API Reference","count":186},{"language":"default","tag":"RESTful API","count":147},{"language":"default","tag":"User","count":46},{"language":"default","tag":"Market","count":36},{"language":"default","tag":"Trade","count":24},{"language":"default","tag":"Guides","count":19},{"language":"default","tag":"user","count":12},{"language":"default","tag":"Platform","count":9},{"language":"default","tag":"Account","count":8},{"language":"default","tag":"Position","count":8}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"v2/api-reference/integration/account-data","slug":"/v2/api-reference/integration/account-data","pageMetadata":{"title":"Account Data","description":null,"href":"/v2/api-reference/integration/account-data"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`This section describes the REST endpoints and corresponding TypeScript SDK methods for retrieving user account information, balances, positions, executions, and account statistics.`}),`\n`,_jsx(Heading,{level:`2`,id:`rest-endpoints`,children:`REST Endpoints`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Resource`}),_jsx(_components.th,{children:`Endpoint`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Root Account`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`GET /api/v1/user/root-account`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Sub Accounts`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`GET /api/v1/user/sub-accounts`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Positions`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`GET /api/v1/position/list?sub_account_address=\u003caddress>`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Executions (Fills)`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`GET /api/v1/execution/list?sub_account_address=\u003caddress>`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Account Balances`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`GET /api/v1/account/balance`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Account Statistics`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`GET /api/v1/account/statistics`})})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`typescript-sdk`,children:`TypeScript SDK`}),`\n`,_jsx(_components.p,{children:`Retrieve the authenticated user’s root account:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` rootAccount`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getRootAccount`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Retrieve all sub-accounts:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` subAccounts`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getSubAccounts`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Retrieve account balances:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` balances`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`account`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getBalance`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Retrieve positions:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` positions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`position`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getPositionInfo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` sub_account_address`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Retrieve execution history:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` executions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`trade`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getTradeHistory`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` sub_account_address`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Retrieve account statistics:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` statistics`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`account`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getStatistics`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` sub_account_address`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`balance-fields`,children:`Balance fields`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`GET /api/v1/account/balance`}),` and the `,_jsx(_components.code,{children:`account_balance`}),` WebSocket topic return one entry per account. Amounts are USDC decimal strings unless noted. The fields that reflect `,_jsx(_components.a,{href:`/v2/collateral`,children:`multi-asset collateral`}),`:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`vault_balance`})}),_jsxs(_components.td,{children:[`Quote (USDCx) balance. Shows `,_jsx(_components.code,{children:`0`}),` while there is a `,_jsx(_components.code,{children:`debt`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`equity`})}),_jsx(_components.td,{children:`What the account is worth to liquidation, floored at zero: the quote balance (a debt counted in full), unrealized P\u0026L and funding, and unfrozen collateral at its maintenance weight.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`margin_balance`})}),_jsxs(_components.td,{children:[`Same as `,_jsx(_components.code,{children:`equity`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`collateral[]`})}),_jsx(_components.td,{children:`Non-quote collateral; omitted when there is none. See below.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`initial_total_collateral`})}),_jsx(_components.td,{children:`Quote balance, unrealized P\u0026L, funding, and non-quote collateral at its initial weight. Trading accounts holding non-quote collateral or owing a debt only.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`maintenance_total_collateral`})}),_jsxs(_components.td,{children:[`The same total at maintenance weight, collateral on hold excluded. Present when `,_jsx(_components.code,{children:`initial_total_collateral`}),` is.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`debt`})}),_jsx(_components.td,{children:`Quote owed: how far the quote balance is below zero. Omitted when nothing is owed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fee_asset`})}),_jsxs(_components.td,{children:[`The first asset other than the quote in `,_jsx(_components.code,{children:`fee_priority`}),`. Trading accounts only.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fee_priority[]`})}),_jsxs(_components.td,{children:[`The assets fees are taken from first, in order. Trading accounts only; omitted while empty. See `,_jsx(_components.a,{href:`/v2/api-reference/integration/fee-asset`,children:`Fee Asset`}),`.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Each `,_jsx(_components.code,{children:`collateral[]`}),` entry:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`asset_id`}),`, `,_jsx(_components.code,{children:`symbol`})]}),_jsxs(_components.td,{children:[`The asset, as in `,_jsx(_components.code,{children:`GET /api/v1/collateral/assets`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`balance`})}),_jsx(_components.td,{children:`Whole tokens, including the amount on hold.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`frozen`})}),_jsx(_components.td,{children:`Whole tokens on hold for a withdrawal.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`price`})}),_jsx(_components.td,{children:`USDC per token. Trading accounts only.`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`initial_weight`}),`, `,_jsx(_components.code,{children:`maintenance_weight`})]}),_jsxs(_components.td,{children:[`Effective weights: `,_jsx(_components.code,{children:`initial_weight`}),` is `,_jsx(_components.code,{children:`\"0\"`}),` unless the asset is active and freshly priced. Trading accounts only.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`initial_value`}),`, `,_jsx(_components.code,{children:`maintenance_value`})]}),_jsx(_components.td,{children:`Value at each weight, in USDC. Trading accounts only.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`execution-fee-fields`,children:`Execution fee fields`}),`\n`,_jsxs(_components.p,{children:[`Executions (REST and the `,_jsx(_components.code,{children:`execution`}),` WebSocket topic) carry how each fill’s fee was paid:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fee`})}),_jsx(_components.td,{children:`Signed fee in raw quote units (negative is a maker rebate). Empty on fills recorded before fees were stored.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fee_asset`})}),_jsx(_components.td,{children:`The asset that paid the fee; omitted when it is the quote.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fee_legs[]`})}),_jsxs(_components.td,{children:[`When the fee was split across assets: `,_jsx(_components.code,{children:`{asset_id, amount, quote_equivalent}`}),` per asset.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`seized_legs[]`})}),_jsxs(_components.td,{children:[`On liquidation takeovers only: `,_jsx(_components.code,{children:`{asset_id, amount, quote_credited}`}),` per collateral asset seized.`]})]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`These fields are `,_jsx(_components.strong,{children:`raw integer units`}),`, unlike the decimal strings elsewhere. `,_jsx(_components.code,{children:`fee`}),`, `,_jsx(_components.code,{children:`quote_equivalent`}),` and `,_jsx(_components.code,{children:`quote_credited`}),` are in the quote’s units: divide by `,_jsx(_components.code,{children:`10^decimals`}),` of asset `,_jsx(_components.code,{children:`1`}),`. Each leg’s `,_jsx(_components.code,{children:`amount`}),` is in its own asset’s units: divide by that asset’s `,_jsx(_components.code,{children:`decimals`}),`. Both come from `,_jsx(_components.code,{children:`GET /api/v1/collateral/assets`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`timestamp-fields`,children:`Timestamp Fields`}),`\n`,_jsx(_components.p,{children:`REST resources use Unix timestamps in milliseconds.`}),`\n`,_jsx(_components.p,{children:`Common timestamp fields include:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`created_time`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`updated_time`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`timestamp_ms`})}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Some legacy responses may still include the `,_jsx(_components.code,{children:`timestamp`}),` field for backward compatibility.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Account Data","description":null,"href":"/v2/api-reference/integration/account-data"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"REST Endpoints","slug":"rest-endpoints","depth":2,"children":[]},{"title":"TypeScript SDK","slug":"typescript-sdk","depth":2,"children":[]},{"title":"Balance fields","slug":"balance-fields","depth":2,"children":[]},{"title":"Execution fee fields","slug":"execution-fee-fields","depth":2,"children":[]},{"title":"Timestamp Fields","slug":"timestamp-fields","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"ekiden","siteName":"Ekiden Docs","title":"Account Data - Ekiden Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"V1 (Single-Collateral)":{"href":"/api-reference/integration/account-data","matchLevel":1},"V2 (Multi-Collateral)":{"href":"/v2/api-reference/integration/account-data","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-11-29T14:20:26.655Z","originalFileLocation":"v2/api-reference/integration/account-data.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Ekiden Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ekiden/z_teimAOSzgIiSO9/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/ekiden/z_teimAOSzgIiSO9/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ekiden/z_teimAOSzgIiSO9/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ekiden/z_teimAOSzgIiSO9/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ekiden/z_teimAOSzgIiSO9/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ekiden/z_teimAOSzgIiSO9/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ekiden/z_teimAOSzgIiSO9/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ekiden/z_teimAOSzgIiSO9/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ekiden/z_teimAOSzgIiSO9/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Account Data - Ekiden Docs\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Ekiden Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.ekiden.fi/v2/api-reference/integration/account-data\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ekiden.mintlify.site/_mintlify/api/og/v2?division=Account+%26+Portfolio\u0026amp;title=Account+Data\u0026amp;theme=18d260df1994259a91bb0960\u0026amp;signature=6447275539ccb71c86e2342340d62070aaa9da23004eabbadf6f69ecda05bea6\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Account Data - Ekiden Docs\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ekiden.mintlify.site/_mintlify/api/og/v2?division=Account+%26+Portfolio\u0026amp;title=Account+Data\u0026amp;theme=18d260df1994259a91bb0960\u0026amp;signature=6447275539ccb71c86e2342340d62070aaa9da23004eabbadf6f69ecda05bea6\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/ekiden/z_teimAOSzgIiSO9/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Ekiden Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.ekiden.fi/v2/api-reference/integration/account-data\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/v2/api-reference/integration/account-data.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.ekiden.fi/#organization\",\"name\":\"Ekiden Docs\",\"url\":\"https://docs.ekiden.fi\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ekiden/McZRXOwX0mLF-82T/logo/light.svg?fit=max\u0026auto=format\u0026n=McZRXOwX0mLF-82T\u0026q=85\u0026s=1fc30a63554cb7f43f2f3c702080c17d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.ekiden.fi#website\",\"name\":\"Ekiden Docs\",\"url\":\"https://docs.ekiden.fi\",\"publisher\":{\"@id\":\"https://docs.ekiden.fi/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.ekiden.fi/v2/api-reference/integration/account-data#webpage\",\"url\":\"https://docs.ekiden.fi/v2/api-reference/integration/account-data\",\"name\":\"Account Data\",\"dateModified\":\"2026-11-29T14:20:26.655Z\",\"isPartOf\":{\"@id\":\"https://docs.ekiden.fi#website\"},\"breadcrumb\":{\"@id\":\"https://docs.ekiden.fi/v2/api-reference/integration/account-data#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.ekiden.fi/v2/api-reference/integration/account-data#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ekiden Docs\",\"item\":\"https://docs.ekiden.fi\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Account Data\",\"item\":\"https://docs.ekiden.fi/v2/api-reference/integration/account-data\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.ekiden.fi/v2/api-reference/integration/account-data#article\",\"headline\":\"Account Data\",\"name\":\"Account Data\",\"url\":\"https://docs.ekiden.fi/v2/api-reference/integration/account-data\",\"mainEntityOfPage\":{\"@id\":\"https://docs.ekiden.fi/v2/api-reference/integration/account-data#webpage\"},\"dateModified\":\"2026-11-29T14:20:26.655Z\",\"publisher\":{\"@id\":\"https://docs.ekiden.fi/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.ekiden.fi#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Ekiden Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Ekiden Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/v2/api-reference/integration/account-data.md","siteName":"Ekiden Docs","nav":{"global":{"anchors":[{"anchor":"Documentation","icon":"book-open-cover","href":"https://docs.ekiden.fi"},{"anchor":"Community","icon":"slack","href":"https://discord.gg/37682NeRb3"},{"anchor":"Blog","icon":"newspaper","href":"https://medium.com/ekidenfi"}]},"versions":[{"version":"V1 (Single-Collateral)","default":true,"pages":[{"title":"V1 (Single-Collateral)","href":"/api-reference/integration/account-data"}]},{"version":"V2 (Multi-Collateral)","tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/v2/getting-started"}]},{"tab":"API Reference","pages":[{"group":"Overview","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Conventions","href":"/v2/api-reference/conventions"},{"title":"Rate Limits","href":"/api-reference/rate-limits"}]},{"group":"Getting Started","pages":[{"title":"Installation","href":"/api-reference/integration/installation"},{"title":"Quick Start","href":"/api-reference/integration/quick-start"}]},{"group":"Setup","pages":[{"title":"Configuration","href":"/api-reference/integration/configuration"},{"title":"Client Initialization","href":"/api-reference/integration/initialization"},{"title":"API Authentication","href":"/api-reference/integration/onboarding-auth"}]},{"group":"Fund Your Account","pages":[{"title":"Deposit \u0026 Withdraw Funds","href":"/v2/api-reference/integration/deposit-and-withdraw"},{"title":"Fee Asset","href":"/v2/api-reference/integration/fee-asset"}]},{"group":"Market Data","pages":[{"title":"Market Data","href":"/v2/api-reference/integration/market-data"},{"title":"Insurance Pool \u0026 ADL","href":"/api-reference/integration/risk-feeds"}]},{"group":"Trade","pages":[{"title":"Orders","href":"/api-reference/integration/orders"},{"title":"Closing Positions","href":"/api-reference/integration/closing-position"},{"title":"Leverage","href":"/api-reference/integration/adjust-the-leverage"},{"title":"TP/SL, Triggers, and Reduce-Only","href":"/api-reference/integration/tpsl"}]},{"group":"Market Make","pages":[{"title":"Market Maker Integration Guide","description":null,"href":"/api-reference/integration/market-maker-integration"}]},{"group":"Account \u0026 Portfolio","pages":[{"title":"Account Data","href":"/v2/api-reference/integration/account-data"},{"title":"Account Statistics","description":null,"href":"/api-reference/integration/account-statistics"},{"title":"Referrals \u0026 Rewards","href":"/api-reference/integration/referrals-and-rewards"},{"title":"Leaderboards \u0026 Competitions","href":"/api-reference/integration/leaderboards-and-competitions"},{"title":"PnL, Margin \u0026 Funding","href":"/v2/api-reference/integration/pnl-margin-fr"}]},{"group":"Access Controls","pages":[{"title":"Root Whitelist","href":"/api-reference/integration/root-whitelist"}]},{"group":"Troubleshooting","pages":[{"title":"Troubleshooting \u0026 Best Practices","href":"/api-reference/integration/troubleshooting"}]},{"group":"RESTful API","pages":[{"group":"Access","pages":[{"title":"Activate a closed-launch access code","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json post /api/v1/access/activate","href":"/v2/api-reference/rest/access/activate-a-closed-launch-access-code"}]},{"group":"Account","pages":[{"title":"Get Account Balance","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/account/balance","href":"/v2/api-reference/rest/account/get-account-balance"},{"title":"Set fee asset","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json put /api/v1/account/fee-asset","href":"/v2/api-reference/rest/account/set-fee-asset"},{"title":"Set fee priority","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json put /api/v1/account/fee-priority","href":"/v2/api-reference/rest/account/set-fee-priority"},{"title":"Post apiv1accountfund","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json post /api/v1/account/fund","href":"/v2/api-reference/rest/account/post-apiv1accountfund"},{"title":"Get Account Statistics","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/account/statistics","href":"/v2/api-reference/rest/account/get-account-statistics"}]},{"group":"User","pages":[{"title":"Authorize User","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json post /api/v1/authorize","href":"/v2/api-reference/rest/user/authorize-user"},{"title":"Provision Canton OIDC Ledger User","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json post /api/v1/authorize/provision","href":"/v2/api-reference/rest/user/provision-canton-oidc-ledger-user"},{"title":"Get apiv1authorizewhitelistcheck","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/authorize/whitelist/check","href":"/v2/api-reference/rest/user/get-apiv1authorizewhitelistcheck"},{"title":"Put apiv1authorizewhitelist","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json put /api/v1/authorize/whitelist/{root_address}","href":"/v2/api-reference/rest/user/put-apiv1authorizewhitelist"},{"title":"Delete apiv1authorizewhitelist","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json delete /api/v1/authorize/whitelist/{root_address}","href":"/v2/api-reference/rest/user/delete-apiv1authorizewhitelist"},{"title":"Post apiv1referralclick","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json post /api/v1/referral/click","href":"/v2/api-reference/rest/user/post-apiv1referralclick"},{"title":"Get apiv1useraccess","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/user/access","href":"/v2/api-reference/rest/user/get-apiv1useraccess"},{"title":"Post apiv1useraccessactivate","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json post /api/v1/user/access/activate","href":"/v2/api-reference/rest/user/post-apiv1useraccessactivate"},{"title":"Get apiv1useraffiliate","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/user/affiliate","href":"/v2/api-reference/rest/user/get-apiv1useraffiliate"},{"title":"Get apiv1userinvite codes","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/user/invite-codes","href":"/v2/api-reference/rest/user/get-apiv1userinvite-codes"},{"title":"Post apiv1userinvite codes","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json post /api/v1/user/invite-codes","href":"/v2/api-reference/rest/user/post-apiv1userinvite-codes"},{"title":"Get apiv1userquests","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/user/quests","href":"/v2/api-reference/rest/user/get-apiv1userquests"},{"title":"Post apiv1userquests claim","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json post /api/v1/user/quests/{quest_id}/claim","href":"/v2/api-reference/rest/user/post-apiv1userquests-claim"},{"title":"Get apiv1userreferral","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/user/referral","href":"/v2/api-reference/rest/user/get-apiv1userreferral"},{"title":"Post apiv1userreferral","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json post /api/v1/user/referral","href":"/v2/api-reference/rest/user/post-apiv1userreferral"},{"title":"Get apiv1userreferral codes","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/user/referral-codes","href":"/v2/api-reference/rest/user/get-apiv1userreferral-codes"},{"title":"Post apiv1userreferral codes","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json post /api/v1/user/referral-codes","href":"/v2/api-reference/rest/user/post-apiv1userreferral-codes"},{"title":"Delete apiv1userreferral codes","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json delete /api/v1/user/referral-codes/{code_id}","href":"/v2/api-reference/rest/user/delete-apiv1userreferral-codes"},{"title":"Get apiv1userrewards","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/user/rewards","href":"/v2/api-reference/rest/user/get-apiv1userrewards"},{"title":"Get Root Account","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/user/root-account","href":"/v2/api-reference/rest/user/get-root-account"},{"title":"`POST /user/season-claim/redeem` — verifies a season-claim voucher issued\nby the testnet side and redeems it (merging the testnet root's XP into\nthe caller's mainnet account), or dry-runs the entitlement when\n`preview` is set. Root-only, same as the issue side.","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json post /api/v1/user/season-claim/redeem","href":"/v2/api-reference/rest/user/`post-userseason-claimredeem`-—-verifies-a-season-claim-voucher-issuedby-the-testnet-side-and-redeems-it-merging-the-testnet-roots-xp-intothe-callers-mainnet-account-or-dry-runs-the-entitlement-when`preview`-is-set-root-only-same-as-the-issue-side"},{"title":"`POST /user/season-claim/voucher` — issues a short-lived, server-signed\nvoucher attesting the caller's testnet root address. Root-only: a signed\nbearer proof of the wallet's identity is only meaningful for the wallet\nthat owns it.","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json post /api/v1/user/season-claim/voucher","href":"/v2/api-reference/rest/user/`post-userseason-claimvoucher`-—-issues-a-short-lived-server-signedvoucher-attesting-the-callers-testnet-root-address-root-only:-a-signedbearer-proof-of-the-wallets-identity-is-only-meaningful-for-the-walletthat-owns-it"},{"title":"Get Sub Accounts","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/user/sub-accounts","href":"/v2/api-reference/rest/user/get-sub-accounts"}]},{"group":"Collateral","pages":[{"title":"Get apiv1collateralassets","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/collateral/assets","href":"/v2/api-reference/rest/collateral/get-apiv1collateralassets"},{"title":"Contracts a user's own deposit or withdraw of a collateral asset must disclose","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/collateral/assets/{asset_id}/disclosures","href":"/v2/api-reference/rest/collateral/contracts-a-users-own-deposit-or-withdraw-of-a-collateral-asset-must-disclose"},{"title":"Post apiv1collateralassets vaults","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json post /api/v1/collateral/assets/{asset_id}/vaults","href":"/v2/api-reference/rest/collateral/post-apiv1collateralassets-vaults"}]},{"group":"competitions","pages":[{"title":"Get apiv1competitions","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/competitions","href":"/v2/api-reference/rest/competitions/get-apiv1competitions"},{"title":"Get apiv1competitions 1","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/competitions/{competition_slug}","href":"/v2/api-reference/rest/competitions/get-apiv1competitions-1"},{"title":"Get apiv1competitions leaderboard","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/competitions/{competition_slug}/leaderboard","href":"/v2/api-reference/rest/competitions/get-apiv1competitions-leaderboard"}]},{"group":"Trade","pages":[{"title":"Get Trade History","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/execution/list","href":"/v2/api-reference/rest/trade/get-trade-history"},{"title":"Amend Order","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json post /api/v1/order/amend","href":"/v2/api-reference/rest/trade/amend-order"},{"title":"Batch Amend Orders","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json post /api/v1/order/amend-batch","href":"/v2/api-reference/rest/trade/batch-amend-orders"},{"title":"Cancel Order","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json post /api/v1/order/cancel","href":"/v2/api-reference/rest/trade/cancel-order"},{"title":"Cancel All Orders","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json post /api/v1/order/cancel-all","href":"/v2/api-reference/rest/trade/cancel-all-orders"},{"title":"Batch Cancel Orders","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json post /api/v1/order/cancel-batch","href":"/v2/api-reference/rest/trade/batch-cancel-orders"},{"title":"Get Order History","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/order/history","href":"/v2/api-reference/rest/trade/get-order-history"},{"title":"Place Order","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json post /api/v1/order/place","href":"/v2/api-reference/rest/trade/place-order"},{"title":"Batch Place Orders","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json post /api/v1/order/place-batch","href":"/v2/api-reference/rest/trade/batch-place-orders"},{"title":"Get Open \u0026 Closed Orders","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/order/realtime","href":"/v2/api-reference/rest/trade/get-open-\u0026-closed-orders"}]},{"group":"System","pages":[{"title":"Get system configuration and discovery info","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/info","href":"/v2/api-reference/rest/system/get-system-configuration-and-discovery-info"}]},{"group":"Market","pages":[{"title":"Get Long Short Ratio","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/market/account-ratio","href":"/v2/api-reference/rest/market/get-long-short-ratio"},{"title":"Get ADL Alerts","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/market/adl-alert","href":"/v2/api-reference/rest/market/get-adl-alerts"},{"title":"Get ADL Alert History","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/market/adl-alert/history","href":"/v2/api-reference/rest/market/get-adl-alert-history"},{"title":"Get Funding Rate History","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/market/funding/history","href":"/v2/api-reference/rest/market/get-funding-rate-history"},{"title":"Get Index Price Kline","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/market/index-price-kline","href":"/v2/api-reference/rest/market/get-index-price-kline"},{"title":"Get Instruments Info","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/market/instruments-info","href":"/v2/api-reference/rest/market/get-instruments-info"},{"title":"Get Insurance Pool","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/market/insurance-pool","href":"/v2/api-reference/rest/market/get-insurance-pool"},{"title":"Get Insurance Pool History","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/market/insurance-pool/history","href":"/v2/api-reference/rest/market/get-insurance-pool-history"},{"title":"Get Kline","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/market/kline","href":"/v2/api-reference/rest/market/get-kline"},{"title":"Get Mark Price Kline","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/market/mark-price-kline","href":"/v2/api-reference/rest/market/get-mark-price-kline"},{"title":"Get Open Interest","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/market/open-interest","href":"/v2/api-reference/rest/market/get-open-interest"},{"title":"Get Orderbook","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/market/orderbook","href":"/v2/api-reference/rest/market/get-orderbook"},{"title":"Get Order Price Limit","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/market/price-limit","href":"/v2/api-reference/rest/market/get-order-price-limit"},{"title":"Get Recent Trades","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/market/recent-trade","href":"/v2/api-reference/rest/market/get-recent-trades"},{"title":"Get Risk Limit","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/market/risk-limit","href":"/v2/api-reference/rest/market/get-risk-limit"},{"title":"Get Stats","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/market/stats","href":"/v2/api-reference/rest/market/get-stats"},{"title":"Get Stats Volume","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/market/stats/volume","href":"/v2/api-reference/rest/market/get-stats-volume"},{"title":"Get Tickers","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/market/tickers","href":"/v2/api-reference/rest/market/get-tickers"}]},{"group":"Position","pages":[{"title":"Get Closed PnL","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/position/closed-pnl","href":"/v2/api-reference/rest/position/get-closed-pnl"},{"title":"Get Position Info","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/position/list","href":"/v2/api-reference/rest/position/get-position-info"},{"title":"Set leverage","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json post /api/v1/position/set-leverage","href":"/v2/api-reference/rest/position/set-leverage"},{"title":"Set Trading Stop","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json post /api/v1/position/trading-stop","href":"/v2/api-reference/rest/position/set-trading-stop"}]},{"group":"user","pages":[{"title":"Get apiv1userapi keys","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/user/api-keys","href":"/v2/api-reference/rest/user/get-apiv1userapi-keys"},{"title":"Post apiv1userapi keys","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json post /api/v1/user/api-keys","href":"/v2/api-reference/rest/user/post-apiv1userapi-keys"},{"title":"Delete apiv1userapi keys","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json delete /api/v1/user/api-keys/{id}","href":"/v2/api-reference/rest/user/delete-apiv1userapi-keys"},{"title":"Get apiv1usercompetitions","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/user/competitions","href":"/v2/api-reference/rest/user/get-apiv1usercompetitions"},{"title":"Get apiv1usercompetitions leaderboard","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/user/competitions/{competition_id}/leaderboard","href":"/v2/api-reference/rest/user/get-apiv1usercompetitions-leaderboard"},{"title":"Get apiv1usercompetitions placement","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/user/competitions/{competition_id}/placement","href":"/v2/api-reference/rest/user/get-apiv1usercompetitions-placement"}]},{"group":"Leaderboard","pages":[{"title":"Get Leaderboard","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/user/leaderboard","href":"/v2/api-reference/rest/leaderboard/get-leaderboard"},{"title":"Get Leaderboard Placement","deprecated":null,"version":null,"openapi":"/v2/api-reference/openapi.json get /api/v1/user/leaderboard/placement","href":"/v2/api-reference/rest/leaderboard/get-leaderboard-placement"}]}]},{"group":"WebSocket Guide","pages":[{"title":"Overview","href":"/overview"},{"title":"Connection","href":"/connection"},{"title":"Authentication","href":"/authentication"},{"title":"Topics","href":"/topics"},{"title":"Message Format","href":"/message-format"}]},{"group":"WebSocket Reference (AsyncAPI)","pages":[{"group":"Websockets","pages":[{"asyncapi":"v2/api-reference/websocket/asyncapi.json public","href":"/v2/api-reference/websocket/websockets/public","title":"Public","version":null},{"asyncapi":"v2/api-reference/websocket/asyncapi.json private","href":"/v2/api-reference/websocket/websockets/private","title":"Private","version":null}]}]},{"title":"API Error Codes","href":"/api-reference/errors"}]}]}]},"basePath":"","title":"Account Data - Ekiden Docs","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":[],"chunks":[]}