{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or expired API Key",
"request_id": "req_example",
"suggested_action": "Send an API key in X-API-Key, or an OAuth access token as Authorization: Bearer. Refresh an expired access token.",
"documentation_url": "https://entendre.ai/docs/get-started/authentication"
}
}
{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or expired API Key",
"request_id": "req_example",
"suggested_action": "Send an API key in X-API-Key, or an OAuth access token as Authorization: Bearer. Refresh an expired access token.",
"documentation_url": "https://entendre.ai/docs/get-started/authentication"
}
}
Accounting-period start dates (ISO 8601, UTC), for a caller that holds the dates and not the period IDs. A date with no stored period is valid. Cannot be combined with period IDs (400).
Sort field. Default date_received. sold_cost_basis (cost_basis × quantity_sold), proceeds and realized_gain (proceeds − sold_cost_basis) are calculated over the listed disposals. Rows with the same value are ordered by lot ID.
Present when summary=true. Totals cover all pages. Flat totals appear only for a single currency.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Entendre Docs","description":"Documentation for the Entendre Unified API and MCP server: accounting, treasury and documents for crypto and fiat finance teams.","colors":{"primary":"#6366F1","light":"#818CF8","dark":"#4F46E5"},"logo":{"light":"https://mintcdn.com/entendre/iLG_yPYNFEzW9piO/logo.svg?fit=max\u0026auto=format\u0026n=iLG_yPYNFEzW9piO\u0026q=85\u0026s=e7ab9f91191f7aa74918c227c0675fc6","dark":"https://mintcdn.com/entendre/iLG_yPYNFEzW9piO/logo.svg?fit=max\u0026auto=format\u0026n=iLG_yPYNFEzW9piO\u0026q=85\u0026s=e7ab9f91191f7aa74918c227c0675fc6"},"favicon":"https://mintcdn.com/entendre/4Vx5A6rF_dhHssvv/favicon.ico?fit=max\u0026auto=format\u0026n=4Vx5A6rF_dhHssvv\u0026q=85\u0026s=35f0090147c1f9afbde9638b91c7cd74","api":{"params":{"expanded":"closed"},"playground":{"display":"simple"},"examples":{"defaults":"required","languages":["bash","javascript","python"],"prefill":true}},"navbar":{"primary":{"type":"button","label":"Sign in","href":"https://app.entendre.finance"}},"footer":{"socials":{"x":"https://x.com/entendreai","website":"https://entendre.ai"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"entendre","hasAudioNarration":false,"actualSubdomain":"entendre","customDomains":["entendre.ai"],"gitSource":{"type":"github","owner":"entendrefinance","repo":"monorepo","deployBranch":"master","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af4a1deb7449631187b152a","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"API Reference","count":123},{"language":"default","tag":"Core","count":41},{"language":"default","tag":"Accounting","count":26},{"language":"default","tag":"Agents","count":19},{"language":"default","tag":"Firms","count":17},{"language":"default","tag":"Integrations","count":16},{"language":"default","tag":"Cash Application","count":10},{"language":"default","tag":"GL Mapping","count":10},{"language":"default","tag":"Reporting","count":10},{"language":"default","tag":"Journals","count":9}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","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":"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":"assistant-v5","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":"workos-sso-scim","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":"workos-signup","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":"workos-enabled","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":"sso-setup-deadline-banner","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}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".entendre-body-collapsed>:not(.api-section-heading){display:none}.entendre-body-toggle{margin-left:0.75rem;padding:0.25rem 0.5rem;border:1px solid currentColor;border-radius:0.375rem;background:transparent;color:inherit;font:inherit;font-size:0.75rem;cursor:pointer;white-space:nowrap}.entendre-body-toggle:focus-visible{outline:2px solid currentColor;outline-offset:3px}#topbar-cta-button svg{display:none}#topbar-cta-button a{padding-right:0.75rem}"}],"page":{"pagePath":"api-reference/reporting/realized-gains-and-losses/get-realized-gains-and-losses","slug":"/api-reference/reporting/realized-gains-and-losses/get-realized-gains-and-losses","pageMetadata":{"authority":"canonical","as-of":"2026-09-25T00:00:00.000Z","owner":"amr","title":"Get realized gains \u0026 losses","description":"Returns proceeds, cost basis and realized gains or losses for the disposal period, with the calculation method.","openapi":"openapi-public-preview.json GET /v1/reports/realized-gains","href":"/api-reference/reporting/realized-gains-and-losses/get-realized-gains-and-losses"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Returns proceeds, cost basis and realized gains or losses for the disposal period, with the calculation method.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"authority":"canonical","as-of":"2026-09-25T00:00:00.000Z","owner":"amr","title":"Get realized gains \u0026 losses","description":"Returns proceeds, cost basis and realized gains or losses for the disposal period, with the calculation method.","openapi":"openapi-public-preview.json GET /v1/reports/realized-gains","href":"/api-reference/reporting/realized-gains-and-losses/get-realized-gains-and-losses"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/entendre/f23b26253e1cc75d/request-body.js"],"openApiReferenceData":{"operation":{"operationId":"get_realized_gains_and_losses","summary":"Get realized gains \u0026 losses","description":"Returns proceeds, cost basis and realized gains or losses for the disposal period, with the calculation method.","tags":["Realized Gains \u0026 Losses"],"parameters":["4930b4a0-a530-4740-a0cd-72c07edce64f","67d4d6c2-4f31-4b77-8a37-ce92b4883660","7921b7fc-9c1e-4d5f-bd74-24c5679121b8","ae4a8a89-d2dc-46e1-972f-2bf72ad92095","d85c07b1-ad62-4a8a-8b65-5b5d86449d90","98a8cd36-276f-4284-8176-830386a954a4","f1ef69fd-d485-4fb5-94fa-bfe122f9435a","4d10e9bf-62dd-4a99-a9c7-0f11b8c4e90d","a4d4514b-24f9-4b54-a036-bf5bc3303787","14789b3c-8203-4f19-8282-694ff9b38da7"],"responses":{"200":"ef5306a0-9e56-492e-9023-1a4cae562e7a","400":"e17eddd6-2272-4dfb-8510-0a605b7ae7bf","401":"b6053064-8f6a-472f-8555-2f2750e1ce2f","403":"02a8405b-7359-4b92-9b91-50e35e710e4e","404":"715e933c-1d4d-4f9f-aa04-6984e22fc1dd","429":"0ea41cd2-f62b-464f-9bb9-2d2c0c51bfa2","500":"5a8e0359-80c9-4778-ad4b-7603f96e8bc0","503":"728e71ac-9938-47e1-9edf-d78036c29df7"},"x-product":"Reporting","x-access-class":"read","method":"get","type":"path","servers":["9e59403a-73c1-494e-9818-59dd36bdbfad"],"security":["1fe0c3f6-35d9-41d2-ac91-13356ced44bb"],"path":"/v1/reports/realized-gains","baseUrlOptions":["https://api.entendre.finance"],"title":"Get realized gains \u0026 losses","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[]},"dependencies":{"parameters":{"4930b4a0-a530-4740-a0cd-72c07edce64f":{"name":"accounting_period_ids","in":"query","schema":{"type":"array","items":{"type":"string","uniqueKey":"items.[INDEX]","typeLabel":"string"},"description":"Any of these accounting period IDs. Omit to include all periods within the other filters.","uniqueKey":"","typeLabel":"string[]"},"description":"Any of these accounting period IDs. Omit to include all periods within the other filters.","style":"form","explode":true},"67d4d6c2-4f31-4b77-8a37-ce92b4883660":{"name":"accounting_period_start_date_utcs","in":"query","schema":{"type":"array","items":{"type":"string","format":"date-time","uniqueKey":"items.[INDEX]","typeLabel":"string\u003cdate-time>"},"description":"Accounting-period start dates (ISO 8601, UTC), for a caller that holds the dates and not the period IDs. A date with no stored period is valid. Cannot be combined with period IDs (400).","uniqueKey":"","typeLabel":"string\u003cdate-time>[]"},"description":"Accounting-period start dates (ISO 8601, UTC), for a caller that holds the dates and not the period IDs. A date with no stored period is valid. Cannot be combined with period IDs (400).","style":"form","explode":true},"7921b7fc-9c1e-4d5f-bd74-24c5679121b8":{"name":"asset_types","in":"query","schema":{"type":"array","items":{"type":"string","uniqueKey":"items.[INDEX]","typeLabel":"string"},"description":"Asset type filters (such as `ETH`, `USDC`). Omit to include every asset type.","uniqueKey":"","typeLabel":"string[]"},"description":"Asset type filters (such as `ETH`, `USDC`). Omit to include every asset type.","style":"form","explode":true},"ae4a8a89-d2dc-46e1-972f-2bf72ad92095":{"name":"summary","in":"query","required":false,"schema":{"type":"boolean","isRequired":false,"description":"Include totals across all matching pages, grouped by currency. If totals cannot be calculated, the request fails.","uniqueKey":"","typeLabel":"boolean"},"description":"Include totals across all matching pages, grouped by currency. If totals cannot be calculated, the request fails."},"d85c07b1-ad62-4a8a-8b65-5b5d86449d90":{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","enum":["date_received","asset_record","quantity","remaining_quantity","id","sold_cost_basis","proceeds","realized_gain"],"default":"date_received","isRequired":false,"description":"Sort field. Default `date_received`. `sold_cost_basis` (`cost_basis × quantity_sold`), `proceeds` and `realized_gain` (`proceeds − sold_cost_basis`) are calculated over the listed disposals. Rows with the same value are ordered by lot ID.","uniqueKey":"","typeLabel":"enum\u003cstring>"},"description":"Sort field. Default `date_received`. `sold_cost_basis` (`cost_basis × quantity_sold`), `proceeds` and `realized_gain` (`proceeds − sold_cost_basis`) are calculated over the listed disposals. Rows with the same value are ordered by lot ID."},"98a8cd36-276f-4284-8176-830386a954a4":{"name":"sort_direction","in":"query","required":false,"schema":{"type":"string","enum":["asc","desc"],"default":"desc","isRequired":false,"description":"Sort direction. Default `desc`.","uniqueKey":"","typeLabel":"enum\u003cstring>"},"description":"Sort direction. Default `desc`."},"f1ef69fd-d485-4fb5-94fa-bfe122f9435a":{"name":"expand","in":"query","required":false,"schema":{"type":"string","isRequired":false,"description":"Comma-separated related objects to add to each row: `acquisition_transaction`, `disposal_transactions`. An unknown value is rejected with 400.","uniqueKey":"","typeLabel":"string"},"description":"Comma-separated related objects to add to each row: `acquisition_transaction`, `disposal_transactions`. An unknown value is rejected with 400."},"4d10e9bf-62dd-4a99-a9c7-0f11b8c4e90d":{"name":"limit","in":"query","required":false,"description":"Maximum number of records to return.","schema":{"type":"integer","minimum":1,"maximum":100,"default":50,"isRequired":false,"description":"Maximum number of records to return.","uniqueKey":"","typeLabel":"integer"}},"a4d4514b-24f9-4b54-a036-bf5bc3303787":{"name":"cursor","in":"query","required":false,"description":"The `next_cursor` value from the previous page. Keep the other filters unchanged.","schema":{"type":"string","isRequired":false,"description":"The `next_cursor` value from the previous page. Keep the other filters unchanged.","uniqueKey":"","typeLabel":"string"}},"14789b3c-8203-4f19-8282-694ff9b38da7":{"name":"legal_entity_ids","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","description":"Legal entity ID (`le_…`).","example":"le_507f1f77bcf86cd799439011","uniqueKey":"items.[INDEX]","typeLabel":"string"},"uniqueItems":true,"isRequired":false,"description":"Filter by one or more legal entity IDs. Omit to include all authorized entities. An empty list is invalid.","uniqueKey":"","typeLabel":"string[]"},"style":"form","explode":true,"description":"Filter by one or more legal entity IDs. Omit to include all authorized entities. An empty list is invalid."}},"responses":{"ef5306a0-9e56-492e-9023-1a4cae562e7a":{"description":"The request succeeded.","headers":{"X-Request-Id":{"description":"Support correlation ID.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","required":["id","asset_type","asset_record","date_received","quantity","remaining_quantity","cost_basis","currency","disposals","quantity_sold","proceeds","long_term_quantity_sold","long_term_proceeds","short_term_quantity_sold","short_term_proceeds"],"properties":{"id":{"type":"string","description":"Prefixed asset lot ID (`ast_`).","isRequired":true,"uniqueKey":"data.items.[INDEX].id","typeLabel":"string"},"asset_type":{"type":"string","description":"Token / currency symbol (such as `ETH`, `USDC`).","isRequired":true,"uniqueKey":"data.items.[INDEX].asset_type","typeLabel":"string"},"asset_record":{"type":"string","description":"Asset record ID.","isRequired":true,"uniqueKey":"data.items.[INDEX].asset_record","typeLabel":"string"},"date_received":{"type":"string","format":"date-time","description":"ISO timestamp when the lot was acquired. The field name matches the schedule of dispositions report.","isRequired":true,"uniqueKey":"data.items.[INDEX].date_received","typeLabel":"string\u003cdate-time>"},"quantity":{"type":"string","description":"Original quantity acquired, as a decimal string.","isRequired":true,"uniqueKey":"data.items.[INDEX].quantity","typeLabel":"string"},"remaining_quantity":{"type":"string","description":"Quantity still held after all disposals.","isRequired":true,"uniqueKey":"data.items.[INDEX].remaining_quantity","typeLabel":"string"},"cost_basis":{"type":"string","description":"Cost basis per unit, as a decimal string.","isRequired":true,"uniqueKey":"data.items.[INDEX].cost_basis","typeLabel":"string"},"currency":{"type":"string","description":"Currency of the proceeds and cost basis.","example":"USD","isRequired":true,"uniqueKey":"data.items.[INDEX].currency","typeLabel":"string"},"disposals":{"type":"array","description":"Disposal events for this lot.","items":{"type":"object","required":["sale_date","quantity_sold","sale_price"],"properties":{"sale_date":{"type":"string","format":"date-time","description":"Date of the disposal (ISO 8601).","isRequired":true,"uniqueKey":"data.items.[INDEX].disposals.items.[INDEX].sale_date","typeLabel":"string\u003cdate-time>"},"quantity_sold":{"type":"string","description":"Quantity disposed on this event.","isRequired":true,"uniqueKey":"data.items.[INDEX].disposals.items.[INDEX].quantity_sold","typeLabel":"string"},"sale_price":{"type":"string","description":"Proceeds per unit, as a decimal string.","isRequired":true,"uniqueKey":"data.items.[INDEX].disposals.items.[INDEX].sale_price","typeLabel":"string"}},"uniqueKey":"data.items.[INDEX].disposals.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.items.[INDEX].disposals","typeLabel":"object[]"},"quantity_sold":{"oneOf":[{"type":"string","description":"Total quantity disposed from this lot, as a decimal string. Calculated from the listed disposals; `null` when the value is not a finite number.","isRequired":true,"uniqueKey":"data.items.[INDEX].quantity_sold.oneOf.0","typeLabel":"string"},{"type":"null","description":"Total quantity disposed from this lot, as a decimal string. Calculated from the listed disposals; `null` when the value is not a finite number.","isRequired":true,"uniqueKey":"data.items.[INDEX].quantity_sold.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].quantity_sold","typeLabel":"string | null"},"proceeds":{"oneOf":[{"type":"string","description":"Sum of `quantity_sold × sale_price` over the disposals, as a decimal string. Calculated from the listed disposals; `null` when the value is not a finite number.","isRequired":true,"uniqueKey":"data.items.[INDEX].proceeds.oneOf.0","typeLabel":"string"},{"type":"null","description":"Sum of `quantity_sold × sale_price` over the disposals, as a decimal string. Calculated from the listed disposals; `null` when the value is not a finite number.","isRequired":true,"uniqueKey":"data.items.[INDEX].proceeds.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].proceeds","typeLabel":"string | null"},"long_term_quantity_sold":{"oneOf":[{"type":"string","description":"Quantity disposed more than 365.25 days after `date_received`, as a decimal string. Calculated from the listed disposals; `null` when the value is not a finite number.","isRequired":true,"uniqueKey":"data.items.[INDEX].long_term_quantity_sold.oneOf.0","typeLabel":"string"},{"type":"null","description":"Quantity disposed more than 365.25 days after `date_received`, as a decimal string. Calculated from the listed disposals; `null` when the value is not a finite number.","isRequired":true,"uniqueKey":"data.items.[INDEX].long_term_quantity_sold.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].long_term_quantity_sold","typeLabel":"string | null"},"long_term_proceeds":{"oneOf":[{"type":"string","description":"Proceeds of the long-term disposals, as a decimal string. Calculated from the listed disposals; `null` when the value is not a finite number.","isRequired":true,"uniqueKey":"data.items.[INDEX].long_term_proceeds.oneOf.0","typeLabel":"string"},{"type":"null","description":"Proceeds of the long-term disposals, as a decimal string. Calculated from the listed disposals; `null` when the value is not a finite number.","isRequired":true,"uniqueKey":"data.items.[INDEX].long_term_proceeds.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].long_term_proceeds","typeLabel":"string | null"},"short_term_quantity_sold":{"oneOf":[{"type":"string","description":"Quantity disposed 365.25 days or less after `date_received`, as a decimal string. Calculated from the listed disposals; `null` when the value is not a finite number.","isRequired":true,"uniqueKey":"data.items.[INDEX].short_term_quantity_sold.oneOf.0","typeLabel":"string"},{"type":"null","description":"Quantity disposed 365.25 days or less after `date_received`, as a decimal string. Calculated from the listed disposals; `null` when the value is not a finite number.","isRequired":true,"uniqueKey":"data.items.[INDEX].short_term_quantity_sold.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].short_term_quantity_sold","typeLabel":"string | null"},"short_term_proceeds":{"oneOf":[{"type":"string","description":"Proceeds of the short-term disposals, as a decimal string. Calculated from the listed disposals; `null` when the value is not a finite number.","isRequired":true,"uniqueKey":"data.items.[INDEX].short_term_proceeds.oneOf.0","typeLabel":"string"},{"type":"null","description":"Proceeds of the short-term disposals, as a decimal string. Calculated from the listed disposals; `null` when the value is not a finite number.","isRequired":true,"uniqueKey":"data.items.[INDEX].short_term_proceeds.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].short_term_proceeds","typeLabel":"string | null"},"acquisition_transaction":{"oneOf":[{"type":"object","description":"Only with `expand=acquisition_transaction`. The transaction that created the lot; `null` when it is not found in the organization.","required":["id","sequence_number"],"properties":{"id":{"type":"string","description":"Prefixed transaction ID (`txn_`).","isRequired":true,"uniqueKey":"data.items.[INDEX].acquisition_transaction.oneOf.0.id","typeLabel":"string"},"sequence_number":{"oneOf":[{"type":"string","description":"Transaction number shown in the app.","isRequired":true,"uniqueKey":"data.items.[INDEX].acquisition_transaction.oneOf.0.sequence_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Transaction number shown in the app.","isRequired":true,"uniqueKey":"data.items.[INDEX].acquisition_transaction.oneOf.0.sequence_number.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].acquisition_transaction.oneOf.0.sequence_number","typeLabel":"string | null"}},"uniqueKey":"data.items.[INDEX].acquisition_transaction.oneOf.0","typeLabel":"object"},{"type":"null","description":"Only with `expand=acquisition_transaction`. The transaction that created the lot; `null` when it is not found in the organization.","required":["id","sequence_number"],"properties":{"id":{"type":"string","description":"Prefixed transaction ID (`txn_`)."},"sequence_number":{"oneOf":[{"type":"string","description":"Transaction number shown in the app."},{"type":"null","description":"Transaction number shown in the app."}]}},"uniqueKey":"data.items.[INDEX].acquisition_transaction.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.items.[INDEX].acquisition_transaction","typeLabel":"object | null"},"disposal_transactions":{"type":"array","description":"Only with `expand=disposal_transactions`. The unique transactions of the disposals, in disposal order. A transaction that is not found in the organization is left out.","items":{"type":"object","required":["id","sequence_number"],"properties":{"id":{"type":"string","description":"Prefixed transaction ID (`txn_`).","isRequired":true,"uniqueKey":"data.items.[INDEX].disposal_transactions.items.[INDEX].id","typeLabel":"string"},"sequence_number":{"oneOf":[{"type":"string","description":"Transaction number shown in the app.","isRequired":true,"uniqueKey":"data.items.[INDEX].disposal_transactions.items.[INDEX].sequence_number.oneOf.0","typeLabel":"string"},{"type":"null","description":"Transaction number shown in the app.","isRequired":true,"uniqueKey":"data.items.[INDEX].disposal_transactions.items.[INDEX].sequence_number.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].disposal_transactions.items.[INDEX].sequence_number","typeLabel":"string | null"}},"uniqueKey":"data.items.[INDEX].disposal_transactions.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.items.[INDEX].disposal_transactions","typeLabel":"object[]"}},"uniqueKey":"data.items.[INDEX]","typeLabel":"object"},"description":"The records.","isRequired":true,"uniqueKey":"data","typeLabel":"object[]"},"has_more":{"type":"boolean","description":"Whether another page is available.","isRequired":true,"uniqueKey":"has_more","typeLabel":"boolean"},"next_cursor":{"oneOf":[{"type":"string","description":"Cursor for the next page, or `null` on the last page.","isRequired":true,"uniqueKey":"next_cursor.oneOf.0","typeLabel":"string"},{"type":"null","description":"Cursor for the next page, or `null` on the last page.","isRequired":true,"uniqueKey":"next_cursor.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"next_cursor","typeLabel":"string | null"},"summary":{"type":"object","description":"Present when `summary=true`. Totals cover all pages. Flat totals appear only for a single currency.","required":["methodology","by_currency","disposal_count","sold_asset_count"],"properties":{"methodology":{"type":"string","description":"Always `per_unit_cost_basis_approximation`: (sale price − cost basis) × quantity sold, for each disposal.","isRequired":true,"uniqueKey":"summary.methodology","typeLabel":"string"},"by_currency":{"type":"array","description":"Totals for each lot currency, sorted by currency code. Currencies are not combined.","items":{"type":"object","required":["currency","total_proceeds","total_cost_basis","total_gain","short_term_gain","long_term_gain","disposal_count","sold_asset_count"],"properties":{"currency":{"type":"string","description":"ISO 4217 fiat currency these totals are denominated in (from the lots' own records).","isRequired":true,"uniqueKey":"summary.by_currency.items.[INDEX].currency","typeLabel":"string"},"total_proceeds":{"type":"string","description":"Sum of proceeds from this currency's disposals (decimal string).","isRequired":true,"uniqueKey":"summary.by_currency.items.[INDEX].total_proceeds","typeLabel":"string"},"total_cost_basis":{"type":"string","description":"Sum of cost basis for this currency's disposals (decimal string).","isRequired":true,"uniqueKey":"summary.by_currency.items.[INDEX].total_cost_basis","typeLabel":"string"},"total_gain":{"type":"string","description":"Net gain or loss in this currency. Negative values indicate a net loss (decimal string).","isRequired":true,"uniqueKey":"summary.by_currency.items.[INDEX].total_gain","typeLabel":"string"},"short_term_gain":{"type":"string","description":"Gain/loss from assets held 1 year or less (decimal string).","isRequired":true,"uniqueKey":"summary.by_currency.items.[INDEX].short_term_gain","typeLabel":"string"},"long_term_gain":{"type":"string","description":"Gain/loss from assets held more than 1 year (365.25-day boundary) (decimal string).","isRequired":true,"uniqueKey":"summary.by_currency.items.[INDEX].long_term_gain","typeLabel":"string"},"disposal_count":{"type":"integer","description":"Disposal events in this currency.","isRequired":true,"uniqueKey":"summary.by_currency.items.[INDEX].disposal_count","typeLabel":"integer"},"sold_asset_count":{"type":"integer","description":"Sold asset lots in this currency.","isRequired":true,"uniqueKey":"summary.by_currency.items.[INDEX].sold_asset_count","typeLabel":"integer"}},"uniqueKey":"summary.by_currency.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"summary.by_currency","typeLabel":"object[]"},"disposal_count":{"type":"integer","description":"Total number of disposal events in the period, across all currencies (counts are currency-independent).","isRequired":true,"uniqueKey":"summary.disposal_count","typeLabel":"integer"},"sold_asset_count":{"type":"integer","description":"Number of sold asset lots aggregated across all currencies (the rows the paginated report would return).","isRequired":true,"uniqueKey":"summary.sold_asset_count","typeLabel":"integer"},"currency":{"type":"string","description":"ISO 4217 fiat currency of the flat totals. Present only when the whole scope is single-currency.","uniqueKey":"summary.currency","typeLabel":"string"},"total_proceeds":{"type":"string","description":"Sum of proceeds from all disposals (decimal string). Present only when single-currency.","uniqueKey":"summary.total_proceeds","typeLabel":"string"},"total_cost_basis":{"type":"string","description":"Sum of cost basis for all disposals (decimal string). Present only when single-currency.","uniqueKey":"summary.total_cost_basis","typeLabel":"string"},"total_gain":{"type":"string","description":"Net gain or loss. Negative values indicate a net loss (decimal string). Present only when single-currency.","uniqueKey":"summary.total_gain","typeLabel":"string"},"short_term_gain":{"type":"string","description":"Gain/loss from assets held 1 year or less (decimal string). Present only when single-currency.","uniqueKey":"summary.short_term_gain","typeLabel":"string"},"long_term_gain":{"type":"string","description":"Gain/loss from assets held more than 1 year (365.25-day boundary) (decimal string). Present only when single-currency.","uniqueKey":"summary.long_term_gain","typeLabel":"string"}},"uniqueKey":"summary","typeLabel":"object"}},"required":["data","has_more","next_cursor"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"example":{"data":[{"id":"ast_507f1f77bcf86cd799439011","asset_type":"ETH","asset_record":"ETH-1","date_received":"2026-08-01T00:00:00Z","quantity":"100.00","remaining_quantity":"0.00","cost_basis":"100.00","currency":"USD","disposals":[{"sale_date":"2026-08-31T12:00:00Z","quantity_sold":"100.00","sale_price":"110.00"}],"quantity_sold":"100","proceeds":"11000","long_term_quantity_sold":"0","long_term_proceeds":"0","short_term_quantity_sold":"100","short_term_proceeds":"11000"}],"has_more":false,"next_cursor":null,"summary":{"methodology":"per_unit_cost_basis_approximation","by_currency":[{"currency":"USD","total_proceeds":"11000.00","total_cost_basis":"10000.00","total_gain":"1000.00","short_term_gain":"1000.00","long_term_gain":"0.00","disposal_count":1,"sold_asset_count":1}],"currency":"USD","total_proceeds":"11000.00","total_cost_basis":"10000.00","total_gain":"1000.00","short_term_gain":"1000.00","long_term_gain":"0.00","disposal_count":1,"sold_asset_count":1}},"examples":{"Example":{"title":"Example","value":{"data":[{"id":"ast_507f1f77bcf86cd799439011","asset_type":"ETH","asset_record":"ETH-1","date_received":"2026-08-01T00:00:00Z","quantity":"100.00","remaining_quantity":"0.00","cost_basis":"100.00","currency":"USD","disposals":[{"sale_date":"2026-08-31T12:00:00Z","quantity_sold":"100.00","sale_price":"110.00"}],"quantity_sold":"100","proceeds":"11000","long_term_quantity_sold":"0","long_term_proceeds":"0","short_term_quantity_sold":"100","short_term_proceeds":"11000"}],"has_more":false,"next_cursor":null,"summary":{"methodology":"per_unit_cost_basis_approximation","by_currency":[{"currency":"USD","total_proceeds":"11000.00","total_cost_basis":"10000.00","total_gain":"1000.00","short_term_gain":"1000.00","long_term_gain":"0.00","disposal_count":1,"sold_asset_count":1}],"currency":"USD","total_proceeds":"11000.00","total_cost_basis":"10000.00","total_gain":"1000.00","short_term_gain":"1000.00","long_term_gain":"0.00","disposal_count":1,"sold_asset_count":1}}}},"exampleType":"examples"}},"exampleType":"examples"},"e17eddd6-2272-4dfb-8510-0a605b7ae7bf":{"description":"The request is invalid. `error.fields` lists the fields to correct. Nothing was changed.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","description":"Machine-readable error code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Technical description for developers.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","description":"Unique request ID for support escalation.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"fields":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"error.fields.additionalProperties","typeLabel":"string"},"description":"Present only on VALIDATION_ERROR. Maps failing field paths to reason strings.","uniqueKey":"error.fields","typeLabel":"object"},"details":{"type":"object","additionalProperties":true,"description":"Optional redacted diagnostic details. Request validation uses fields or field_errors.","uniqueKey":"error.details","typeLabel":"object"},"suggested_action":{"type":"string","description":"A suggested next step.","uniqueKey":"error.suggested_action","typeLabel":"string"},"documentation_url":{"type":"string","format":"uri","description":"Link to documentation about this error.","uniqueKey":"error.documentation_url","typeLabel":"string\u003curi>"}},"description":"Error details.","isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"VALIDATION_ERROR","message":"Invalid path, query or request body.","request_id":"req_example"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"VALIDATION_ERROR","message":"Invalid path, query or request body.","request_id":"req_example"}}}},"exampleType":"examples"}},"exampleType":"examples"},"b6053064-8f6a-472f-8555-2f2750e1ce2f":{"description":"The API key is missing, invalid or expired.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","description":"Machine-readable error code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Technical description for developers.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","description":"Unique request ID for support escalation.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"fields":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"error.fields.additionalProperties","typeLabel":"string"},"description":"Present only on VALIDATION_ERROR. Maps failing field paths to reason strings.","uniqueKey":"error.fields","typeLabel":"object"},"details":{"type":"object","additionalProperties":true,"description":"Optional redacted diagnostic details. Request validation uses fields or field_errors.","uniqueKey":"error.details","typeLabel":"object"},"suggested_action":{"type":"string","description":"A suggested next step.","uniqueKey":"error.suggested_action","typeLabel":"string"},"documentation_url":{"type":"string","format":"uri","description":"Link to documentation about this error.","uniqueKey":"error.documentation_url","typeLabel":"string\u003curi>"}},"description":"Error details.","isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"UNAUTHORIZED","message":"Invalid or expired API Key","request_id":"req_example","suggested_action":"Send an API key in X-API-Key, or an OAuth access token as Authorization: Bearer. Refresh an expired access token.","documentation_url":"https://entendre.ai/docs/get-started/authentication"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"UNAUTHORIZED","message":"Invalid or expired API Key","request_id":"req_example","suggested_action":"Send an API key in X-API-Key, or an OAuth access token as Authorization: Bearer. Refresh an expired access token.","documentation_url":"https://entendre.ai/docs/get-started/authentication"}}}},"exampleType":"examples"}},"headers":{"WWW-Authenticate":{"description":"Bearer challenge with `realm=\"entendre\"` and `resource_metadata`, the URL of the protected-resource metadata (RFC 9728). `error=\"invalid_token\"` is added when the credential that was sent is invalid or expired.","schema":{"type":"string"}}},"exampleType":"examples"},"02a8405b-7359-4b92-9b91-50e35e710e4e":{"description":"The API key does not have the required scope or is not associated with a user, or the action needs a review in the dashboard.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","description":"Machine-readable error code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Technical description for developers.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","description":"Unique request ID for support escalation.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"fields":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"error.fields.additionalProperties","typeLabel":"string"},"description":"Present only on VALIDATION_ERROR. Maps failing field paths to reason strings.","uniqueKey":"error.fields","typeLabel":"object"},"details":{"type":"object","additionalProperties":true,"description":"Optional redacted diagnostic details. Request validation uses fields or field_errors.","uniqueKey":"error.details","typeLabel":"object"},"suggested_action":{"type":"string","description":"A suggested next step.","uniqueKey":"error.suggested_action","typeLabel":"string"},"documentation_url":{"type":"string","format":"uri","description":"Link to documentation about this error.","uniqueKey":"error.documentation_url","typeLabel":"string\u003curi>"}},"description":"Error details.","isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"FORBIDDEN","message":"Insufficient access to organization","request_id":"req_example"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"FORBIDDEN","message":"Insufficient access to organization","request_id":"req_example"}}}},"exampleType":"examples"}},"exampleType":"examples"},"715e933c-1d4d-4f9f-aa04-6984e22fc1dd":{"description":"The resource does not exist, or your organization cannot access it.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","description":"Machine-readable error code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Technical description for developers.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","description":"Unique request ID for support escalation.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"fields":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"error.fields.additionalProperties","typeLabel":"string"},"description":"Present only on VALIDATION_ERROR. Maps failing field paths to reason strings.","uniqueKey":"error.fields","typeLabel":"object"},"details":{"type":"object","additionalProperties":true,"description":"Optional redacted diagnostic details. Request validation uses fields or field_errors.","uniqueKey":"error.details","typeLabel":"object"},"suggested_action":{"type":"string","description":"A suggested next step.","uniqueKey":"error.suggested_action","typeLabel":"string"},"documentation_url":{"type":"string","format":"uri","description":"Link to documentation about this error.","uniqueKey":"error.documentation_url","typeLabel":"string\u003curi>"}},"description":"Error details.","isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"RESOURCE_NOT_FOUND","message":"Resource not found","request_id":"req_example"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"RESOURCE_NOT_FOUND","message":"Resource not found","request_id":"req_example"}}}},"exampleType":"examples"}},"exampleType":"examples"},"0ea41cd2-f62b-464f-9bb9-2d2c0c51bfa2":{"description":"Too many requests. If the response has a `Retry-After` header, wait that many seconds before you retry. Otherwise, read `error.message`.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","description":"Machine-readable error code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Technical description for developers.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","description":"Unique request ID for support escalation.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"fields":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"error.fields.additionalProperties","typeLabel":"string"},"description":"Present only on VALIDATION_ERROR. Maps failing field paths to reason strings.","uniqueKey":"error.fields","typeLabel":"object"},"details":{"type":"object","additionalProperties":true,"description":"Optional redacted diagnostic details. Request validation uses fields or field_errors.","uniqueKey":"error.details","typeLabel":"object"},"suggested_action":{"type":"string","description":"A suggested next step.","uniqueKey":"error.suggested_action","typeLabel":"string"},"documentation_url":{"type":"string","format":"uri","description":"Link to documentation about this error.","uniqueKey":"error.documentation_url","typeLabel":"string\u003curi>"}},"description":"Error details.","isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"RATE_LIMITED","message":"Rate limit exceeded. Retry after 30s.","request_id":"req_example"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"RATE_LIMITED","message":"Rate limit exceeded. Retry after 30s.","request_id":"req_example"}}}},"exampleType":"examples"}},"exampleType":"examples"},"5a8e0359-80c9-4778-ad4b-7603f96e8bc0":{"description":"An unexpected error occurred. A write can still have taken effect; check the resource before you retry. Give the `request_id` to support.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","description":"Machine-readable error code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Technical description for developers.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","description":"Unique request ID for support escalation.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"fields":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"error.fields.additionalProperties","typeLabel":"string"},"description":"Present only on VALIDATION_ERROR. Maps failing field paths to reason strings.","uniqueKey":"error.fields","typeLabel":"object"},"details":{"type":"object","additionalProperties":true,"description":"Optional redacted diagnostic details. Request validation uses fields or field_errors.","uniqueKey":"error.details","typeLabel":"object"},"suggested_action":{"type":"string","description":"A suggested next step.","uniqueKey":"error.suggested_action","typeLabel":"string"},"documentation_url":{"type":"string","format":"uri","description":"Link to documentation about this error.","uniqueKey":"error.documentation_url","typeLabel":"string\u003curi>"}},"description":"Error details.","isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","request_id":"req_example"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"INTERNAL_ERROR","message":"Internal server error","request_id":"req_example"}}}},"exampleType":"examples"}},"exampleType":"examples"},"728e71ac-9938-47e1-9edf-d78036c29df7":{"description":"A service that this operation needs is unavailable. If the response has a `Retry-After` header, wait that many seconds. Check for earlier accepted work before you send the request again.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message","request_id"],"properties":{"code":{"type":"string","description":"Machine-readable error code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Technical description for developers.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"request_id":{"type":"string","description":"Unique request ID for support escalation.","isRequired":true,"uniqueKey":"error.request_id","typeLabel":"string"},"fields":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"error.fields.additionalProperties","typeLabel":"string"},"description":"Present only on VALIDATION_ERROR. Maps failing field paths to reason strings.","uniqueKey":"error.fields","typeLabel":"object"},"details":{"type":"object","additionalProperties":true,"description":"Optional redacted diagnostic details. Request validation uses fields or field_errors.","uniqueKey":"error.details","typeLabel":"object"},"suggested_action":{"type":"string","description":"A suggested next step.","uniqueKey":"error.suggested_action","typeLabel":"string"},"documentation_url":{"type":"string","format":"uri","description":"Link to documentation about this error.","uniqueKey":"error.documentation_url","typeLabel":"string\u003curi>"}},"description":"Error details.","isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"SERVICE_UNAVAILABLE","message":"Service unavailable.","request_id":"req_example"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"SERVICE_UNAVAILABLE","message":"Service unavailable.","request_id":"req_example"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"1fe0c3f6-35d9-41d2-ac91-13356ced44bb":{"ApiKey":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Your organization API key. See [Authentication](/get-started/authentication).","scopes":[],"schemeName":"ApiKey"}}},"servers":{"9e59403a-73c1-494e-9818-59dd36bdbfad":{"url":"https://api.entendre.finance","description":"Production API."}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Your organization API key. See [Authentication](/get-started/authentication).","scopes":[],"schemeName":"ApiKey"},"schema":{"title":"X-API-Key","type":"string","description":"Your organization API key. See [Authentication](/get-started/authentication).","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKey","name":"X-API-Key"}],"title":"ApiKey"}]},"originalFileLocation":"openapi-public-preview.json"},"subdomain":"entendre","siteName":"Entendre Docs","title":"Get realized gains \u0026 losses - Entendre Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-25T11:45:45.475Z","originalFileLocation":"api-reference/reporting/realized-gains-and-losses/get-realized-gains-and-losses.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=\"description\" content=\"Returns proceeds, cost basis and realized gains or losses for the disposal period, with the calculation method.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Entendre Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/entendre/Mf9zE4F1cDdIJzLg/_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=\"/docs/mintlify-assets/_mintlify/favicons/entendre/Mf9zE4F1cDdIJzLg/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/entendre/Mf9zE4F1cDdIJzLg/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/entendre/Mf9zE4F1cDdIJzLg/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/entendre/Mf9zE4F1cDdIJzLg/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/entendre/Mf9zE4F1cDdIJzLg/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/entendre/Mf9zE4F1cDdIJzLg/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/entendre/Mf9zE4F1cDdIJzLg/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/entendre/Mf9zE4F1cDdIJzLg/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get realized gains \u0026amp; losses - Entendre Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Returns proceeds, cost basis and realized gains or losses for the disposal period, with the calculation method.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Entendre Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://entendre.ai/docs/api-reference/reporting/realized-gains-and-losses/get-realized-gains-and-losses\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://entendre.mintlify.site/docs/_mintlify/api/og/v2?division=Realized+Gains+%26+Losses\u0026amp;title=Get+realized+gains+%26+losses\u0026amp;description=Returns+proceeds%2C+cost+basis+and+realized+gains+or+losses+for+the+disposal+period%2C+with+the+calculation+method.\u0026amp;theme=455e3eee472c81219447aa36\u0026amp;signature=ca4400775d0e20b20b7f016bc2da2740bb669cf1153b4084543b7a0ef5cf25a8\">\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=\"Get realized gains \u0026amp; losses - Entendre Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Returns proceeds, cost basis and realized gains or losses for the disposal period, with the calculation method.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://entendre.mintlify.site/docs/_mintlify/api/og/v2?division=Realized+Gains+%26+Losses\u0026amp;title=Get+realized+gains+%26+losses\u0026amp;description=Returns+proceeds%2C+cost+basis+and+realized+gains+or+losses+for+the+disposal+period%2C+with+the+calculation+method.\u0026amp;theme=455e3eee472c81219447aa36\u0026amp;signature=ca4400775d0e20b20b7f016bc2da2740bb669cf1153b4084543b7a0ef5cf25a8\">\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=\"/docs/mintlify-assets/_mintlify/favicons/entendre/Mf9zE4F1cDdIJzLg/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Entendre Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366F1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://entendre.ai/docs/api-reference/reporting/realized-gains-and-losses/get-realized-gains-and-losses\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/reporting/realized-gains-and-losses/get-realized-gains-and-losses.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://entendre.ai/#organization\",\"name\":\"Entendre Docs\",\"url\":\"https://entendre.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/entendre/iLG_yPYNFEzW9piO/logo.svg?fit=max\u0026auto=format\u0026n=iLG_yPYNFEzW9piO\u0026q=85\u0026s=e7ab9f91191f7aa74918c227c0675fc6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://entendre.ai/docs#website\",\"name\":\"Entendre Docs\",\"url\":\"https://entendre.ai/docs\",\"publisher\":{\"@id\":\"https://entendre.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://entendre.ai/docs/api-reference/reporting/realized-gains-and-losses/get-realized-gains-and-losses#webpage\",\"url\":\"https://entendre.ai/docs/api-reference/reporting/realized-gains-and-losses/get-realized-gains-and-losses\",\"name\":\"Get realized gains \u0026 losses\",\"description\":\"Returns proceeds, cost basis and realized gains or losses for the disposal period, with the calculation method.\",\"dateModified\":\"2026-09-25T11:45:45.475Z\",\"isPartOf\":{\"@id\":\"https://entendre.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://entendre.ai/docs/api-reference/reporting/realized-gains-and-losses/get-realized-gains-and-losses#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://entendre.ai/docs/api-reference/reporting/realized-gains-and-losses/get-realized-gains-and-losses#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Reporting\",\"item\":\"https://entendre.ai/docs/api-reference/reporting/income-statement/get-income-statement\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get realized gains \u0026 losses\",\"item\":\"https://entendre.ai/docs/api-reference/reporting/realized-gains-and-losses/get-realized-gains-and-losses\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://entendre.ai/docs/api-reference/reporting/realized-gains-and-losses/get-realized-gains-and-losses#apireference\",\"headline\":\"Get realized gains \u0026 losses\",\"name\":\"Get realized gains \u0026 losses\",\"description\":\"Returns proceeds, cost basis and realized gains or losses for the disposal period, with the calculation method.\",\"url\":\"https://entendre.ai/docs/api-reference/reporting/realized-gains-and-losses/get-realized-gains-and-losses\",\"mainEntityOfPage\":{\"@id\":\"https://entendre.ai/docs/api-reference/reporting/realized-gains-and-losses/get-realized-gains-and-losses#webpage\"},\"dateModified\":\"2026-09-25T11:45:45.475Z\",\"publisher\":{\"@id\":\"https://entendre.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://entendre.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Entendre Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Entendre Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/reporting/realized-gains-and-losses/get-realized-gains-and-losses.md","siteName":"Entendre Docs","nav":{"global":null,"tabs":[{"tab":"Docs","pages":[{"title":"Docs","href":"/get-started/introduction"}]},{"tab":"API Reference","groups":[{"group":"Using the API","pages":[{"title":"Overview","href":"/api-reference/overview"}]},{"group":"Core","pages":[{"group":"Organization","pages":[{"title":"Get organization","openapi":"openapi-public-preview.json GET /v1/organization","href":"/api-reference/core/organization/get-organization"},{"title":"Update organization","openapi":"openapi-public-preview.json PATCH /v1/organization","href":"/api-reference/core/organization/update-organization"},{"title":"List organization members","openapi":"openapi-public-preview.json GET /v1/organization/members","href":"/api-reference/core/organization/list-organization-members"}]},{"group":"Transactions","pages":[{"title":"List transactions","openapi":"openapi-public-preview.json GET /v1/transactions","href":"/api-reference/core/transactions/list-transactions"},{"title":"Create transaction","openapi":"openapi-public-preview.json POST /v1/transactions","href":"/api-reference/core/transactions/create-transaction"},{"title":"Update transaction","openapi":"openapi-public-preview.json PATCH /v1/transactions/{transaction_id}","href":"/api-reference/core/transactions/update-transaction"},{"title":"Delete transaction","openapi":"openapi-public-preview.json DELETE /v1/transactions/{transaction_id}","href":"/api-reference/core/transactions/delete-transaction"}]},{"group":"Sources","pages":[{"title":"List sources","openapi":"openapi-public-preview.json GET /v1/sources","href":"/api-reference/core/sources/list-sources"},{"title":"Create source","openapi":"openapi-public-preview.json POST /v1/sources","href":"/api-reference/core/sources/create-source"},{"title":"Update source","openapi":"openapi-public-preview.json PATCH /v1/sources/{source_id}","href":"/api-reference/core/sources/update-source"},{"title":"Delete source","openapi":"openapi-public-preview.json DELETE /v1/sources/{source_id}","href":"/api-reference/core/sources/delete-source"},{"title":"Import transactions from source","openapi":"openapi-public-preview.json POST /v1/sources/{source_id}/imports","href":"/api-reference/core/sources/import-transactions-from-source"}]},{"group":"Assets","pages":[{"title":"List assets","openapi":"openapi-public-preview.json GET /v1/assets","href":"/api-reference/core/assets/list-assets"},{"title":"Create manual asset","openapi":"openapi-public-preview.json POST /v1/assets","href":"/api-reference/core/assets/create-manual-asset"},{"title":"Update manual asset","openapi":"openapi-public-preview.json PATCH /v1/assets/{asset_id}","href":"/api-reference/core/assets/update-manual-asset"},{"title":"Delete manual asset","openapi":"openapi-public-preview.json DELETE /v1/assets/{asset_id}","href":"/api-reference/core/assets/delete-manual-asset"}]},{"group":"Journals","pages":[{"title":"List journals","openapi":"openapi-public-preview.json GET /v1/journal-entries","href":"/api-reference/core/journals/list-journals"},{"title":"Create journal","openapi":"openapi-public-preview.json POST /v1/journal-entries","href":"/api-reference/core/journals/create-journal"},{"title":"Update journal","openapi":"openapi-public-preview.json PATCH /v1/journal-entries/{journal_id}","href":"/api-reference/core/journals/update-journal"},{"title":"Delete journal","openapi":"openapi-public-preview.json DELETE /v1/journal-entries/{journal_id}","href":"/api-reference/core/journals/delete-journal"},{"title":"Post journal","openapi":"openapi-public-preview.json POST /v1/journal-entries/{journal_id}/post","href":"/api-reference/core/journals/post-journal"},{"title":"Unpost journal","openapi":"openapi-public-preview.json POST /v1/journal-entries/{journal_id}/unpost","href":"/api-reference/core/journals/unpost-journal"},{"title":"Reverse journal","openapi":"openapi-public-preview.json POST /v1/journal-entries/{journal_id}/reverse","href":"/api-reference/core/journals/reverse-journal"},{"title":"Sync journals","openapi":"openapi-public-preview.json POST /v1/journal-entries/syncs","href":"/api-reference/core/journals/sync-journals"},{"title":"List journal sync jobs","openapi":"openapi-public-preview.json GET /v1/journal-entries/syncs","href":"/api-reference/core/journals/list-journal-sync-jobs"}]},{"group":"Documents","pages":[{"title":"List documents","openapi":"openapi-public-preview.json GET /v1/vault/documents","href":"/api-reference/core/documents/list-documents"},{"title":"Upload document","openapi":"openapi-public-preview.json POST /v1/vault/documents","href":"/api-reference/core/documents/upload-document"},{"title":"Update document","openapi":"openapi-public-preview.json PATCH /v1/vault/documents/{document_id}","href":"/api-reference/core/documents/update-document"},{"title":"Delete document","openapi":"openapi-public-preview.json DELETE /v1/vault/documents/{document_id}","href":"/api-reference/core/documents/delete-document"}]},{"group":"Legal Entities","pages":[{"title":"List legal entities","openapi":"openapi-public-preview.json GET /v1/legal-entities","href":"/api-reference/core/legal-entities/list-legal-entities"},{"title":"Create legal entity","openapi":"openapi-public-preview.json POST /v1/legal-entities","href":"/api-reference/core/legal-entities/create-legal-entity"},{"title":"Update legal entity","openapi":"openapi-public-preview.json PATCH /v1/legal-entities/{legal_entity_id}","href":"/api-reference/core/legal-entities/update-legal-entity"},{"title":"Delete legal entity","openapi":"openapi-public-preview.json DELETE /v1/legal-entities/{legal_entity_id}","href":"/api-reference/core/legal-entities/delete-legal-entity"}]},{"group":"Ledger Accounts","pages":[{"title":"List ledger accounts","openapi":"openapi-public-preview.json GET /v1/ledger-accounts","href":"/api-reference/core/ledger-accounts/list-ledger-accounts"},{"title":"Create ledger account","openapi":"openapi-public-preview.json POST /v1/ledger-accounts","href":"/api-reference/core/ledger-accounts/create-ledger-account"},{"title":"Update ledger account","openapi":"openapi-public-preview.json PATCH /v1/ledger-accounts/{ledger_account_id}","href":"/api-reference/core/ledger-accounts/update-ledger-account"},{"title":"Delete ledger account","openapi":"openapi-public-preview.json DELETE /v1/ledger-accounts/{ledger_account_id}","href":"/api-reference/core/ledger-accounts/delete-ledger-account"}]},{"group":"Tags","pages":[{"title":"List tags","openapi":"openapi-public-preview.json GET /v1/tags","href":"/api-reference/core/tags/list-tags"},{"title":"Create tag","openapi":"openapi-public-preview.json POST /v1/tags","href":"/api-reference/core/tags/create-tag"},{"title":"Update tag","openapi":"openapi-public-preview.json PATCH /v1/tags/{tag_id}","href":"/api-reference/core/tags/update-tag"},{"title":"Delete tag","openapi":"openapi-public-preview.json DELETE /v1/tags/{tag_id}","href":"/api-reference/core/tags/delete-tag"}]}]},{"group":"Accounting","pages":[{"group":"Accruals","pages":[{"title":"Find vendors for accruals","openapi":"openapi-public-preview.json GET /v1/vault/vendors","href":"/api-reference/accounting/accruals/find-vendors-for-accruals"},{"title":"List accruals","openapi":"openapi-public-preview.json GET /v1/accruals","href":"/api-reference/accounting/accruals/list-accruals"},{"title":"Post accrual entries","openapi":"openapi-public-preview.json POST /v1/accruals","href":"/api-reference/accounting/accruals/post-accrual-entries"},{"title":"Reverse accrual","openapi":"openapi-public-preview.json POST /v1/accruals/{accrual_id}/reverse","href":"/api-reference/accounting/accruals/reverse-accrual"}]},{"group":"Cash Application","pages":[{"title":"List eligible invoices","openapi":"openapi-public-preview.json GET /v1/cash-applications/invoices","href":"/api-reference/accounting/cash-application/list-eligible-invoices"},{"title":"Refresh Stripe invoice","openapi":"openapi-public-preview.json POST /v1/cash-applications/invoices/refresh","href":"/api-reference/accounting/cash-application/refresh-stripe-invoice"},{"title":"Preview cash application","openapi":"openapi-public-preview.json POST /v1/cash-applications/preview","href":"/api-reference/accounting/cash-application/preview-cash-application"},{"title":"List cash applications","openapi":"openapi-public-preview.json GET /v1/cash-applications","href":"/api-reference/accounting/cash-application/list-cash-applications"},{"title":"Create and apply cash application","openapi":"openapi-public-preview.json POST /v1/cash-applications","href":"/api-reference/accounting/cash-application/create-and-apply-cash-application"},{"title":"Update cash application","openapi":"openapi-public-preview.json PATCH /v1/cash-applications/{application_id}","href":"/api-reference/accounting/cash-application/update-cash-application"},{"title":"Apply cash application","openapi":"openapi-public-preview.json POST /v1/cash-applications/{application_id}/apply","href":"/api-reference/accounting/cash-application/apply-cash-application"},{"title":"Unapply cash application","openapi":"openapi-public-preview.json POST /v1/cash-applications/{application_id}/unapply","href":"/api-reference/accounting/cash-application/unapply-cash-application"},{"title":"Complete cash application","openapi":"openapi-public-preview.json POST /v1/cash-applications/{application_id}/complete","href":"/api-reference/accounting/cash-application/complete-cash-application"},{"title":"Void cash application","openapi":"openapi-public-preview.json POST /v1/cash-applications/{application_id}/void","href":"/api-reference/accounting/cash-application/void-cash-application"}]},{"group":"Classification","pages":[{"title":"Classify transactions","openapi":"openapi-public-preview.json POST /v1/classifications","href":"/api-reference/accounting/classification/classify-transactions"},{"title":"Get classification status","openapi":"openapi-public-preview.json GET /v1/classifications/{classification_id}","href":"/api-reference/accounting/classification/get-classification"}]},{"group":"Cost Basis","pages":[{"title":"Get cost basis settings","openapi":"openapi-public-preview.json GET /v1/settings/cost-basis","href":"/api-reference/accounting/cost-basis/get-cost-basis-settings"},{"title":"Update cost basis settings","openapi":"openapi-public-preview.json PUT /v1/settings/cost-basis","href":"/api-reference/accounting/cost-basis/update-cost-basis-settings"}]},{"group":"Purpose Accounts","pages":[{"title":"List purpose accounts","openapi":"openapi-public-preview.json GET /v1/organization/purpose-accounts","href":"/api-reference/accounting/purpose-accounts/list-purpose-accounts"},{"title":"Set realized gain or loss account","openapi":"openapi-public-preview.json PUT /v1/organization/purpose-accounts","href":"/api-reference/accounting/purpose-accounts/set-purpose-account"}]},{"group":"Revaluation","pages":[{"title":"List revaluations","openapi":"openapi-public-preview.json GET /v1/revaluations","href":"/api-reference/accounting/revaluation/list-revaluations"},{"title":"Create revaluation","openapi":"openapi-public-preview.json POST /v1/revaluations","href":"/api-reference/accounting/revaluation/create-revaluation"}]},{"group":"Accounting Periods","pages":[{"title":"List accounting periods","openapi":"openapi-public-preview.json GET /v1/accounting-periods","href":"/api-reference/accounting/accounting-periods/list-accounting-periods"},{"title":"Check period readiness","openapi":"openapi-public-preview.json GET /v1/accounting-periods/{period_id}/close-preflight","href":"/api-reference/accounting/accounting-periods/check-period-readiness"},{"title":"Close accounting period","openapi":"openapi-public-preview.json POST /v1/accounting-periods/{period_id}/close","href":"/api-reference/accounting/accounting-periods/close-accounting-period"},{"title":"Reopen accounting period","openapi":"openapi-public-preview.json POST /v1/accounting-periods/{period_id}/reopen","href":"/api-reference/accounting/accounting-periods/reopen-accounting-period"}]}]},{"group":"Reporting","pages":[{"group":"Income Statement","pages":[{"title":"Get income statement","openapi":"openapi-public-preview.json GET /v1/reports/income-statement","href":"/api-reference/reporting/income-statement/get-income-statement"}]},{"group":"Balance Sheet","pages":[{"title":"Get balance sheet","openapi":"openapi-public-preview.json GET /v1/reports/balance-sheet","href":"/api-reference/reporting/balance-sheet/get-balance-sheet"}]},{"group":"Trial Balance","pages":[{"title":"Get trial balance","openapi":"openapi-public-preview.json GET /v1/reports/trial-balance","href":"/api-reference/reporting/trial-balance/get-trial-balance"}]},{"group":"Closing Positions","pages":[{"title":"Get closing positions","openapi":"openapi-public-preview.json GET /v1/reports/closing-positions","href":"/api-reference/reporting/closing-positions/get-closing-positions"}]},{"group":"Treasury Balances","pages":[{"title":"Get treasury balances","openapi":"openapi-public-preview.json GET /v1/reports/treasury-balances","href":"/api-reference/reporting/treasury-balances/get-treasury-balances"},{"title":"Refresh treasury balances","description":"Queues a refresh of the stored wallet and bank balances that the treasury balances report returns.","openapi":"openapi-public-preview.json POST /v1/reports/treasury-balances/refresh","href":"/api-reference/reporting/treasury-balances/refresh-treasury-balances"}]},{"group":"Realized Gains \u0026 Losses","pages":[{"title":"Get realized gains \u0026 losses","openapi":"openapi-public-preview.json GET /v1/reports/realized-gains","href":"/api-reference/reporting/realized-gains-and-losses/get-realized-gains-and-losses"}]},{"group":"Asset Tax Lots","pages":[{"title":"Get asset tax lots","description":"Returns acquisition lots, remaining quantities, cost basis and linked dispositions.","openapi":"openapi-public-preview.json GET /v1/reports/asset-tax-lots","href":"/api-reference/reporting/asset-tax-lots/get-asset-tax-lots"}]},{"group":"Schedule of Dispositions","pages":[{"title":"Get schedule of dispositions","openapi":"openapi-public-preview.json GET /v1/reports/schedule-of-dispositions","href":"/api-reference/reporting/schedule-of-dispositions/get-schedule-of-dispositions"}]},{"group":"Financial Insights","pages":[{"title":"Get financial insights","openapi":"openapi-public-preview.json GET /v1/reports/financial-insights","href":"/api-reference/reporting/financial-insights/get-financial-insights"}]}]},{"group":"Agents","pages":[{"group":"Agents","pages":[{"title":"List agents","openapi":"openapi-public-preview.json GET /v1/agents","href":"/api-reference/agents/agents/list-agents"},{"title":"Create agent","openapi":"openapi-public-preview.json POST /v1/agents","href":"/api-reference/agents/agents/create-agent"},{"title":"Update agent","openapi":"openapi-public-preview.json PATCH /v1/agents/{agent_id}","href":"/api-reference/agents/agents/update-agent"},{"title":"Delete agent","openapi":"openapi-public-preview.json DELETE /v1/agents/{agent_id}","href":"/api-reference/agents/agents/delete-agent"},{"title":"Run agent","openapi":"openapi-public-preview.json POST /v1/agents/{agent_id}/runs","href":"/api-reference/agents/agents/run-agent"},{"title":"List agent runs","openapi":"openapi-public-preview.json GET /v1/agents/{agent_id}/runs","href":"/api-reference/agents/agents/list-agent-runs"},{"title":"Cancel agent run","openapi":"openapi-public-preview.json POST /v1/agents/{agent_id}/runs/{run_id}/cancel","href":"/api-reference/agents/agents/cancel-agent-run"}]},{"group":"Memory","pages":[{"title":"List memory","openapi":"openapi-public-preview.json GET /v1/memory","href":"/api-reference/agents/memory/list-memory"},{"title":"Search memory","openapi":"openapi-public-preview.json GET /v1/memory/search","href":"/api-reference/agents/memory/search-memory"},{"title":"Read memory","openapi":"openapi-public-preview.json GET /v1/memory/file","href":"/api-reference/agents/memory/read-memory"},{"title":"Write memory","openapi":"openapi-public-preview.json PUT /v1/memory/file","href":"/api-reference/agents/memory/write-memory"},{"title":"Delete memory","openapi":"openapi-public-preview.json DELETE /v1/memory/file","href":"/api-reference/agents/memory/delete-memory"}]}]},{"group":"Integrations","pages":[{"group":"Connections","pages":[{"title":"List integrations","openapi":"openapi-public-preview.json GET /v1/integrations","href":"/api-reference/integrations/connections/list-integrations"},{"title":"List connections","openapi":"openapi-public-preview.json GET /v1/connections","href":"/api-reference/integrations/connections/list-connections"},{"title":"Connect provider","openapi":"openapi-public-preview.json POST /v1/connections","href":"/api-reference/integrations/connections/connect-provider"},{"title":"Update connection","openapi":"openapi-public-preview.json PATCH /v1/connections/{connection_id}","href":"/api-reference/integrations/connections/update-connection"},{"title":"Reauthorize connection","openapi":"openapi-public-preview.json POST /v1/connections/{connection_id}/reauthorize","href":"/api-reference/integrations/connections/reauthorize-connection"},{"title":"Disconnect connection","openapi":"openapi-public-preview.json DELETE /v1/connections/{connection_id}","href":"/api-reference/integrations/connections/disconnect-provider"}]},{"group":"GL Mapping","pages":[{"title":"List external accounts","openapi":"openapi-public-preview.json GET /v1/connections/{connection_id}/external-accounts","href":"/api-reference/integrations/gl-mapping/list-external-ledger-accounts"},{"title":"List external entities","openapi":"openapi-public-preview.json GET /v1/connections/{connection_id}/external-entities","href":"/api-reference/integrations/gl-mapping/list-external-legal-entities"},{"title":"List account mappings","openapi":"openapi-public-preview.json GET /v1/connections/{connection_id}/account-mappings","href":"/api-reference/integrations/gl-mapping/list-account-mappings"},{"title":"Set account mapping","openapi":"openapi-public-preview.json PUT /v1/connections/{connection_id}/account-mappings/{ledger_account_id}","href":"/api-reference/integrations/gl-mapping/map-ledger-account-to-erp"},{"title":"Remove account mapping","openapi":"openapi-public-preview.json DELETE /v1/connections/{connection_id}/account-mappings/{ledger_account_id}","href":"/api-reference/integrations/gl-mapping/remove-erp-account-mapping"},{"title":"List entity mappings","openapi":"openapi-public-preview.json GET /v1/connections/{connection_id}/entity-mappings","href":"/api-reference/integrations/gl-mapping/list-entity-mappings"},{"title":"Set entity mapping","openapi":"openapi-public-preview.json PUT /v1/connections/{connection_id}/entity-mappings/{legal_entity_id}","href":"/api-reference/integrations/gl-mapping/map-legal-entity-to-erp"},{"title":"Remove entity mapping","openapi":"openapi-public-preview.json DELETE /v1/connections/{connection_id}/entity-mappings/{legal_entity_id}","href":"/api-reference/integrations/gl-mapping/remove-erp-entity-mapping"},{"title":"List accounting imports","openapi":"openapi-public-preview.json GET /v1/connections/{connection_id}/imports","href":"/api-reference/integrations/gl-mapping/list-erp-imports"},{"title":"Import accounting data","openapi":"openapi-public-preview.json POST /v1/connections/{connection_id}/imports","href":"/api-reference/integrations/gl-mapping/import-from-erp"}]}]},{"group":"Firms","pages":[{"group":"Request","pages":[{"title":"List requests","openapi":"openapi-public-preview.json GET /v1/firm/requests","href":"/api-reference/firms/request/list-requests"},{"title":"Create request","openapi":"openapi-public-preview.json POST /v1/firm/requests","href":"/api-reference/firms/request/create-request"},{"title":"Resend request","openapi":"openapi-public-preview.json POST /v1/firm/requests/{request_id}/resend","href":"/api-reference/firms/request/resend-request"},{"title":"Cancel request","openapi":"openapi-public-preview.json POST /v1/firm/requests/{request_id}/cancel","href":"/api-reference/firms/request/cancel-request"}]},{"group":"Client","pages":[{"title":"List clients","openapi":"openapi-public-preview.json GET /v1/firm/clients","href":"/api-reference/firms/client/list-clients"},{"title":"Create client","openapi":"openapi-public-preview.json POST /v1/firm/clients","href":"/api-reference/firms/client/create-client"},{"title":"Update client","openapi":"openapi-public-preview.json PATCH /v1/firm/clients/{client_id}","href":"/api-reference/firms/client/update-client"},{"title":"Unlink client","openapi":"openapi-public-preview.json DELETE /v1/firm/clients/{client_id}","href":"/api-reference/firms/client/unlink-client"}]},{"group":"Team","pages":[{"title":"List team members","openapi":"openapi-public-preview.json GET /v1/firm/members","href":"/api-reference/firms/team/list-team-members"},{"title":"Update team member","openapi":"openapi-public-preview.json PATCH /v1/firm/members/{member_id}","href":"/api-reference/firms/team/update-team-member"},{"title":"Remove team member","openapi":"openapi-public-preview.json DELETE /v1/firm/members/{member_id}","href":"/api-reference/firms/team/remove-team-member"},{"title":"List invitations","openapi":"openapi-public-preview.json GET /v1/firm/invitations","href":"/api-reference/firms/team/list-invitations"},{"title":"Invite team member","openapi":"openapi-public-preview.json POST /v1/firm/invitations","href":"/api-reference/firms/team/invite-team-member"},{"title":"Resend invitation","openapi":"openapi-public-preview.json POST /v1/firm/invitations/{invitation_id}/resend","href":"/api-reference/firms/team/resend-invitation"},{"title":"Revoke invitation","openapi":"openapi-public-preview.json DELETE /v1/firm/invitations/{invitation_id}","href":"/api-reference/firms/team/revoke-invitation"}]},{"group":"Settings","pages":[{"title":"Get firm settings","openapi":"openapi-public-preview.json GET /v1/firm/settings","href":"/api-reference/firms/settings/get-firm-settings"},{"title":"Update firm settings","openapi":"openapi-public-preview.json PATCH /v1/firm/settings","href":"/api-reference/firms/settings/update-firm-settings"}]}]}]}]},"basePath":"","title":"Get realized gains \u0026 losses - Entendre Docs","buildId":"dpl_6PxPD4Fj1JDU9BJxEHvfdUmxKThw","deploymentId":"dpl_6PxPD4Fj1JDU9BJxEHvfdUmxKThw","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CASS2Vpq.js","utils-4k9fyWRu.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-UU-UueZb.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BgJ0LOYq.js","snippetPresets-CMgzlMR-.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BzEJegkK.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CZuQIZdk.js","shallow-Bw5arfMA.js","getApiPlaygroundDisplay-Ds834aVN.js","CodeSnippet-CKzmjw9L.js","CodeSnippets-BRpgomdp.js","Page-DvEUoD2H.js","getPastedJson-B0N-Tn76.js","icon-DASMs9nC.js","MethodPill-BA6DBLqx.js","DuplicateIcon-BMT5qfbJ.js","createIcon-CNfwVWPx.js","DynamicMarkdown-JYyBNlrJ.js","SectionHeading-BbZnmz8a.js","axios-vUo_bRtp.js","Markdown-LUU0YLpA.js","clsx-Di4ek5Ae.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-VEVWQCR4.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CPszyu99.js"]}