addedOutput schema / $defs
Added value: +{
+ "BalanceSheetJsonReportDto": {
+ "additionalProperties": false,
+ "properties": {
+ "asOfDate": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "generatedAt": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "grouping": {
+ "enum": [
+ "summary",
+ "grouped",
+ "detailed"
+ ],
+ "type": "string"
+ },
+ "identity": {
+ "additionalProperties": false,
+ "properties": {
+ "assets": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "difference": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "holds": {
+ "type": "boolean"
+ },
+ "liabilitiesAndEquity": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "assets",
+ "liabilitiesAndEquity",
+ "difference",
+ "holds"
+ ],
+ "type": "object"
+ },
+ "portfolio": {
+ "$ref": "#/$defs/shared8"
+ },
+ "reportType": {
+ "const": "balance-sheet",
+ "type": "string"
+ },
+ "sections": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "items": {
+ "items": {
+ "$ref": "#/$defs/BalanceSheetStatementLineDto"
+ },
+ "type": "array"
+ },
+ "totalCost": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "totalMarket": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "totalUnrealized": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "ASSETS",
+ "LIABILITIES",
+ "EQUITY"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "totalCost",
+ "totalMarket",
+ "totalUnrealized",
+ "items"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "totals": {
+ "additionalProperties": false,
+ "properties": {
+ "assets": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "equity": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "liabilities": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "assets",
+ "liabilities",
+ "equity"
+ ],
+ "type": "object"
+ },
+ "valuationMethod": {
+ "enum": [
+ "cost",
+ "market",
+ "both"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType",
+ "portfolio",
+ "asOfDate",
+ "generatedAt",
+ "valuationMethod",
+ "grouping",
+ "totals",
+ "identity"
+ ],
+ "type": "object"
+ },
+ "BalanceSheetStatementLineDto": {
+ "additionalProperties": false,
+ "properties": {
+ "accountNumber": {
+ "type": "string"
+ },
+ "children": {
+ "items": {
+ "$ref": "#/$defs/BalanceSheetStatementLineDto"
+ },
+ "type": "array"
+ },
+ "costBasis": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "isBold": {
+ "type": "boolean"
+ },
+ "isSubtotal": {
+ "type": "boolean"
+ },
+ "label": {
+ "type": "string"
+ },
+ "level": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "location": {
+ "type": "string"
+ },
+ "marketValue": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "quantity": {
+ "type": "string"
+ },
+ "unrealizedGL": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "wallet": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "label",
+ "costBasis",
+ "level"
+ ],
+ "type": "object"
+ },
+ "ConsolidatedBalanceSheetJsonReportDto": {
+ "additionalProperties": false,
+ "properties": {
+ "eliminationSchedule": {
+ "$ref": "#/$defs/shared27"
+ },
+ "scope": {
+ "$ref": "#/$defs/shared15"
+ },
+ "statement": {
+ "$ref": "#/$defs/shared18"
+ },
+ "summary": {
+ "additionalProperties": false,
+ "properties": {
+ "netWorth": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "totalAssets": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "totalEquity": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "totalLiabilities": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "totalAssets",
+ "totalLiabilities",
+ "totalEquity",
+ "netWorth"
+ ],
+ "type": "object"
+ },
+ "warnings": {
+ "$ref": "#/$defs/shared24"
+ }
+ },
+ "required": [
+ "scope",
+ "statement",
+ "eliminationSchedule",
+ "warnings",
+ "summary"
+ ],
+ "type": "object"
+ },
+ "ConsolidatedProfitAndLossJsonReportDto": {
+ "additionalProperties": false,
+ "properties": {
+ "eliminationSchedule": {
+ "$ref": "#/$defs/shared27"
+ },
+ "scope": {
+ "$ref": "#/$defs/shared15"
+ },
+ "statement": {
+ "$ref": "#/$defs/shared18"
+ },
+ "summary": {
+ "additionalProperties": false,
+ "properties": {
+ "capitalGains": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "capitalLosses": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "netIncome": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "ordinaryExpense": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "ordinaryIncome": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "totalExpensesAndLosses": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "totalRevenue": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "transactionCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "totalRevenue",
+ "ordinaryIncome",
+ "capitalGains",
+ "totalExpensesAndLosses",
+ "ordinaryExpense",
+ "capitalLosses",
+ "netIncome",
+ "transactionCount"
+ ],
+ "type": "object"
+ },
+ "warnings": {
+ "$ref": "#/$defs/shared24"
+ }
+ },
+ "required": [
+ "scope",
+ "statement",
+ "eliminationSchedule",
+ "warnings",
+ "summary"
+ ],
+ "type": "object"
+ },
+ "CostBasisLedgerJsonReportDto": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "acquisitionTimestamp": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "asset": {
+ "$ref": "#/$defs/shared4"
+ },
+ "assetId": {
+ "type": "string"
+ },
+ "diff": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "entryId": {
+ "type": "string"
+ },
+ "entryKind": {
+ "enum": [
+ "ADD",
+ "DSP",
+ "CUT",
+ "RES",
+ "REL",
+ "MVE"
+ ],
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "lotMethod": {
+ "type": "string"
+ },
+ "periodCloseId": {
+ "type": "string"
+ },
+ "portfolio": {
+ "additionalProperties": false,
+ "properties": {
+ "currency": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "slug",
+ "currency"
+ ],
+ "type": "object"
+ },
+ "portfolioTransaction": {
+ "additionalProperties": false,
+ "properties": {
+ "operationType": {
+ "$ref": "#/$defs/shared0"
+ },
+ "subType": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "operationType"
+ ],
+ "type": "object"
+ },
+ "portfolioTransactionId": {
+ "type": "string"
+ },
+ "positionId": {
+ "type": "string"
+ },
+ "price": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "timestamp": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "value": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "wallet": {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "chain": {
+ "additionalProperties": false,
+ "properties": {
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "type": "object"
+ },
+ "chainId": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "chainId",
+ "address",
+ "name",
+ "chain"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "assetId",
+ "id",
+ "entryId",
+ "timestamp",
+ "acquisitionTimestamp",
+ "diff",
+ "value",
+ "lotMethod",
+ "entryKind",
+ "portfolioTransactionId",
+ "asset",
+ "wallet",
+ "portfolioTransaction",
+ "portfolio"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "DailySummaryJsonReportDto": {
+ "additionalProperties": false,
+ "properties": {
+ "data": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "amountCost": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "amountIn": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "amountOut": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "balance": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "date": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "token": {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "chainId": {
+ "type": "string"
+ },
+ "symbol": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "chainId",
+ "address",
+ "symbol"
+ ],
+ "type": "object"
+ },
+ "wallet": {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "chainId": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "chainId",
+ "address",
+ "name"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "wallet",
+ "token",
+ "date",
+ "amountIn",
+ "amountOut",
+ "amountCost",
+ "balance"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "data"
+ ],
+ "type": "object"
+ },
+ "GainsLossesJsonReportDto": {
+ "additionalProperties": false,
+ "properties": {
+ "endDate": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "portfolio": {
+ "$ref": "#/$defs/shared5"
+ },
+ "reports": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "acquisitionDate": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "costBasis": {
+ "type": "number"
+ },
+ "disposalAmount": {
+ "type": "number"
+ },
+ "disposalDate": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "gainOrLoss": {
+ "type": "number"
+ },
+ "proceeds": {
+ "type": "number"
+ },
+ "symbol": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "symbol",
+ "disposalDate",
+ "acquisitionDate",
+ "disposalAmount",
+ "costBasis",
+ "proceeds",
+ "gainOrLoss"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "startDate": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "summary": {
+ "additionalProperties": false,
+ "properties": {
+ "currency": {
+ "type": "string"
+ },
+ "totalGainsLosses": {
+ "type": "number"
+ },
+ "totalTrades": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "totalGainsLosses",
+ "totalTrades",
+ "currency"
+ ],
+ "type": "object"
+ },
+ "treatmentNote": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "portfolio",
+ "reports",
+ "summary"
+ ],
+ "type": "object"
+ },
+ "IncomeExpenseJsonReportDto": {
+ "additionalProperties": false,
+ "properties": {
+ "endDate": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "portfolio": {
+ "$ref": "#/$defs/shared5"
+ },
+ "reports": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "accountName": {
+ "type": "string"
+ },
+ "accountSubType": {
+ "type": "string"
+ },
+ "accountType": {
+ "enum": [
+ "ASSET",
+ "LIABILITY",
+ "EQUITY",
+ "INCOME",
+ "EXPENSE"
+ ],
+ "type": "string"
+ },
+ "amount": {
+ "type": "number"
+ },
+ "assetAmount": {
+ "type": "number"
+ },
+ "date": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "fromCounterpartyExternalId": {
+ "type": "string"
+ },
+ "fromCounterpartyName": {
+ "type": "string"
+ },
+ "memo": {
+ "type": "string"
+ },
+ "operationType": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/shared0"
+ },
+ {
+ "const": "N/A",
+ "type": "string"
+ }
+ ]
+ },
+ "responsibilityCenterCells": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "toCounterpartyExternalId": {
+ "type": "string"
+ },
+ "toCounterpartyName": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "date",
+ "accountType",
+ "accountSubType",
+ "accountName",
+ "fromCounterpartyName",
+ "fromCounterpartyExternalId",
+ "toCounterpartyName",
+ "toCounterpartyExternalId",
+ "operationType",
+ "amount",
+ "responsibilityCenterCells"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "responsibilityCenterColumns": {
+ "$ref": "#/$defs/shared1"
+ },
+ "startDate": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "summary": {
+ "additionalProperties": false,
+ "properties": {
+ "currency": {
+ "type": "string"
+ },
+ "expenseBySubType": {
+ "additionalProperties": {
+ "type": "number"
+ },
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "incomeBySubType": {
+ "additionalProperties": {
+ "type": "number"
+ },
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "netIncome": {
+ "type": "number"
+ },
+ "totalExpense": {
+ "type": "number"
+ },
+ "totalIncome": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "totalIncome",
+ "totalExpense",
+ "netIncome",
+ "incomeBySubType",
+ "expenseBySubType",
+ "currency"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "portfolio",
+ "reports",
+ "responsibilityCenterColumns",
+ "summary"
+ ],
+ "type": "object"
+ },
+ "JournalEntriesJsonReportDto": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "createdAt": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "isAdjustment": {
+ "type": "boolean"
+ },
+ "lines": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "additionalProperties": false,
+ "properties": {
+ "accountNumber": {
+ "type": "string"
+ },
+ "fiatCurrency": {
+ "$ref": "#/$defs/shared4"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "accountNumber",
+ "fiatCurrency"
+ ],
+ "type": "object"
+ },
+ "accountId": {
+ "type": "string"
+ },
+ "asset": {
+ "$ref": "#/$defs/shared4"
+ },
+ "assetAmount": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "assetId": {
+ "type": "string"
+ },
+ "attribution": {
+ "additionalProperties": false,
+ "properties": {
+ "a": {
+ "$ref": "#/$defs/shared3"
+ },
+ "c": {
+ "$ref": "#/$defs/shared3"
+ },
+ "m": {
+ "$ref": "#/$defs/shared3"
+ },
+ "rc": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "r": {
+ "type": "string"
+ },
+ "s": {
+ "type": "string"
+ },
+ "t": {
+ "type": "string"
+ },
+ "v": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "t",
+ "s"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "rc"
+ ],
+ "type": "object"
+ },
+ "costBasisLot": {
+ "additionalProperties": false,
+ "properties": {
+ "entryId": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "entryId"
+ ],
+ "type": "object"
+ },
+ "counterpartyId": {
+ "type": "string"
+ },
+ "createdAt": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "entryType": {
+ "enum": [
+ "DR",
+ "CR"
+ ],
+ "type": "string"
+ },
+ "fiatAmount": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "lineNumber": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "lotEntryId": {
+ "type": "string"
+ },
+ "memo": {
+ "type": "string"
+ },
+ "originalAccountId": {
+ "type": "string"
+ },
+ "periodCloseId": {
+ "type": "string"
+ },
+ "txIndex": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "updatedAt": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "walletTransactionId": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "lineNumber",
+ "accountId",
+ "entryType",
+ "fiatAmount",
+ "attribution",
+ "createdAt",
+ "updatedAt",
+ "account"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "memo": {
+ "type": "string"
+ },
+ "portfolio": {
+ "additionalProperties": false,
+ "properties": {
+ "slug": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "slug"
+ ],
+ "type": "object"
+ },
+ "portfolioTransaction": {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "operationType": {
+ "$ref": "#/$defs/shared0"
+ },
+ "subType": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "operationType"
+ ],
+ "type": "object"
+ },
+ "portfolioTransactionId": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ },
+ "systemNotes": {
+ "type": "string"
+ },
+ "timestamp": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "updatedAt": {
+ "format": "date-time",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "timestamp",
+ "isAdjustment",
+ "status",
+ "createdAt",
+ "updatedAt",
+ "lines",
+ "portfolio"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "PaymentRequestsJsonReportDto": {
+ "additionalProperties": false,
+ "properties": {
+ "responsibilityCenterColumns": {
+ "$ref": "#/$defs/shared1"
+ },
+ "rows": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "accountLast4": {
+ "type": "string"
+ },
+ "amount": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "bankName": {
+ "type": "string"
+ },
+ "chain": {
+ "type": "string"
+ },
+ "convertedAt": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "convertedBy": {
+ "type": "string"
+ },
+ "counterparty": {
+ "type": "string"
+ },
+ "counterpartyExternalId": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "fileAttachments": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "fileName": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "fileName"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "id": {
+ "type": "string"
+ },
+ "ledgerAccount": {
+ "type": "string"
+ },
+ "paymentMethodType": {
+ "type": "string"
+ },
+ "paymentType": {
+ "enum": [
+ "CRYPTO",
+ "FIAT"
+ ],
+ "type": "string"
+ },
+ "recipientAddress": {
+ "type": "string"
+ },
+ "requestNumber": {
+ "type": "string"
+ },
+ "requestedAt": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "requestorEmail": {
+ "type": "string"
+ },
+ "responsibilityCenterCells": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "status": {
+ "type": "string"
+ },
+ "submittedAt": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "tokenAddress": {
+ "type": "string"
+ },
+ "tokenSymbol": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "requestNumber",
+ "status",
+ "requestedAt",
+ "paymentType",
+ "amount",
+ "tokenSymbol",
+ "tokenAddress",
+ "chain",
+ "counterparty",
+ "counterpartyExternalId",
+ "recipientAddress",
+ "paymentMethodType",
+ "bankName",
+ "accountLast4",
+ "ledgerAccount",
+ "responsibilityCenterCells",
+ "requestorEmail",
+ "convertedBy",
+ "description",
+ "fileAttachments"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "rows",
+ "responsibilityCenterColumns"
+ ],
+ "type": "object"
+ },
+ "ProfitAndLossJsonReportDto": {
+ "additionalProperties": false,
+ "properties": {
+ "period": {
+ "additionalProperties": false,
+ "properties": {
+ "from": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "to": {
+ "format": "date-time",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "portfolio": {
+ "$ref": "#/$defs/shared8"
+ },
+ "reportType": {
+ "const": "profit-and-loss",
+ "type": "string"
+ },
+ "sections": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "items": {
+ "items": {
+ "$ref": "#/$defs/ProfitAndLossStatementNodeDto"
+ },
+ "type": "array"
+ },
+ "total": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "REVENUE",
+ "EXPENSES"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "total",
+ "items"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "totals": {
+ "additionalProperties": false,
+ "properties": {
+ "netIncome": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "totalExpensesAndLosses": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "totalRevenue": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "transactionCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "totalRevenue",
+ "totalExpensesAndLosses",
+ "netIncome",
+ "transactionCount"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "reportType",
+ "portfolio",
+ "period",
+ "totals"
+ ],
+ "type": "object"
+ },
+ "ProfitAndLossStatementNodeDto": {
+ "additionalProperties": false,
+ "properties": {
+ "accountNumber": {
+ "type": "string"
+ },
+ "amount": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "children": {
+ "items": {
+ "$ref": "#/$defs/ProfitAndLossStatementNodeDto"
+ },
+ "type": "array"
+ },
+ "id": {
+ "type": "string"
+ },
+ "label": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "label",
+ "accountNumber",
+ "amount"
+ ],
+ "type": "object"
+ },
+ "StatementJsonReportDto": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "coin": {
+ "type": "string"
+ },
+ "dailyTransactions": {
+ "$ref": "#/$defs/shared13"
+ },
+ "dateRange": {
+ "$ref": "#/$defs/shared9"
+ },
+ "locale": {
+ "type": "string"
+ },
+ "portfolioName": {
+ "type": "string"
+ },
+ "summary": {
+ "$ref": "#/$defs/shared11"
+ },
+ "timezone": {
+ "type": "string"
+ },
+ "transactionDetails": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "type": "number"
+ },
+ "balance": {
+ "type": "number"
+ },
+ "description": {
+ "type": "string"
+ },
+ "fee": {
+ "type": "number"
+ },
+ "time": {
+ "type": "string"
+ },
+ "usdAmount": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "time",
+ "description",
+ "amount",
+ "balance"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "walletInfo": {
+ "$ref": "#/$defs/shared10"
+ }
+ },
+ "required": [
+ "portfolioName",
+ "locale",
+ "timezone",
+ "dateRange",
+ "walletInfo",
+ "coin",
+ "summary",
+ "dailyTransactions",
+ "transactionDetails"
+ ],
+ "type": "object"
+ },
+ "type": {
+ "const": "single",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "data"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "coins": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "coin": {
+ "type": "string"
+ },
+ "dailyTransactions": {
+ "$ref": "#/$defs/shared13"
+ },
+ "summary": {
+ "$ref": "#/$defs/shared11"
+ }
+ },
+ "required": [
+ "coin",
+ "summary",
+ "dailyTransactions"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "currency": {
+ "type": "string"
+ },
+ "dateRange": {
+ "$ref": "#/$defs/shared9"
+ },
+ "locale": {
+ "type": "string"
+ },
+ "portfolioName": {
+ "type": "string"
+ },
+ "timezone": {
+ "type": "string"
+ },
+ "walletInfo": {
+ "$ref": "#/$defs/shared10"
+ }
+ },
+ "required": [
+ "portfolioName",
+ "locale",
+ "timezone",
+ "dateRange",
+ "walletInfo",
+ "currency",
+ "coins"
+ ],
+ "type": "object"
+ },
+ "type": {
+ "const": "multi",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "data"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "TransactionsJsonReportDto": {
+ "additionalProperties": false,
+ "properties": {
+ "fiatCurrencies": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "responsibilityCenterColumns": {
+ "$ref": "#/$defs/shared1"
+ },
+ "transactions": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "account": {
+ "type": "string"
+ },
+ "amount": {
+ "type": "number"
+ },
+ "assetId": {
+ "type": "string"
+ },
+ "attachedFileLinks": {
+ "type": "string"
+ },
+ "balance": {
+ "type": "number"
+ },
+ "chainId": {
+ "type": "string"
+ },
+ "costBasis": {
+ "type": "number"
+ },
+ "from": {
+ "type": "string"
+ },
+ "fromCounterpartyExternalId": {
+ "type": "string"
+ },
+ "fromCounterpartyName": {
+ "type": "string"
+ },
+ "fromLabel": {
+ "type": "string"
+ },
+ "marketValue": {
+ "type": "number"
+ },
+ "memo": {
+ "type": "string"
+ },
+ "operationType": {
+ "$ref": "#/$defs/shared0"
+ },
+ "portfolioTransactionId": {
+ "type": "string"
+ },
+ "responsibilityCenterCells": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "subType": {
+ "type": "string"
+ },
+ "symbol": {
+ "type": "string"
+ },
+ "tags": {
+ "type": "string"
+ },
+ "timestamp": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "to": {
+ "type": "string"
+ },
+ "toCounterpartyExternalId": {
+ "type": "string"
+ },
+ "toCounterpartyName": {
+ "type": "string"
+ },
+ "toLabel": {
+ "type": "string"
+ },
+ "tokenAddress": {
+ "type": "string"
+ },
+ "transactionHash": {
+ "type": "string"
+ },
+ "transferType": {
+ "enum": [
+ "IN",
+ "OUT",
+ "GAS",
+ "SELF"
+ ],
+ "type": "string"
+ },
+ "walletAddress": {
+ "type": "string"
+ },
+ "walletName": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "chainId",
+ "walletName",
+ "timestamp",
+ "transferType",
+ "walletAddress",
+ "from",
+ "fromLabel",
+ "fromCounterpartyName",
+ "fromCounterpartyExternalId",
+ "to",
+ "toLabel",
+ "toCounterpartyName",
+ "toCounterpartyExternalId",
+ "symbol",
+ "amount",
+ "balance",
+ "tokenAddress",
+ "assetId",
+ "transactionHash",
+ "memo",
+ "tags",
+ "account",
+ "responsibilityCenterCells",
+ "attachedFileLinks"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "transactions",
+ "fiatCurrencies",
+ "responsibilityCenterColumns"
+ ],
+ "type": "object"
+ },
+ "TrialBalanceJsonReportDto": {
+ "additionalProperties": false,
+ "properties": {
+ "asOfDate": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "difference": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "isBalanced": {
+ "type": "boolean"
+ },
+ "portfolio": {
+ "$ref": "#/$defs/shared5"
+ },
+ "reportType": {
+ "enum": [
+ "unadjusted",
+ "adjusted"
+ ],
+ "type": "string"
+ },
+ "rows": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "accountName": {
+ "type": "string"
+ },
+ "accountNumber": {
+ "type": "string"
+ },
+ "accountSubType": {
+ "type": "string"
+ },
+ "accountType": {
+ "enum": [
+ "ASSET",
+ "LIABILITY",
+ "EQUITY",
+ "INCOME",
+ "EXPENSE"
+ ],
+ "type": "string"
+ },
+ "credit": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "debit": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "accountNumber",
+ "accountName",
+ "accountType",
+ "accountSubType",
+ "debit",
+ "credit"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "subtotals": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "accountCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "accountType": {
+ "enum": [
+ "ASSET",
+ "LIABILITY",
+ "EQUITY",
+ "INCOME",
+ "EXPENSE"
+ ],
+ "type": "string"
+ },
+ "credit": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "debit": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "accountType",
+ "debit",
+ "credit",
+ "accountCount"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "totalCredits": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "totalDebits": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "portfolio",
+ "asOfDate",
+ "reportType",
+ "rows",
+ "subtotals",
+ "totalDebits",
+ "totalCredits",
+ "difference",
+ "isBalanced"
+ ],
+ "type": "object"
+ },
+ "shared0": {
+ "enum": [
+ "DEPOSIT_FIAT",
+ "INCOME",
+ "REFUND",
+ "REBATE",
+ "WITHDRAWAL_FIAT",
+ "EXPENSE",
+ "BUY",
+ "SELL",
+ "EXCHANGE",
+ "SWAP",
+ "MOVE",
+ "INTERCOMPANY_SEND",
+ "INTERCOMPANY_RECEIVE",
+ "STAKE",
+ "UNSTAKE",
+ "PROTOCOL_DEPOSIT",
+ "PROTOCOL_WITHDRAW",
+ "VAULT_DEPOSIT",
+ "VAULT_WITHDRAW",
+ "LP_IN",
+ "LP_OUT",
+ "LOAN_BORROW",
+ "LOAN_REPAY",
+ "LOAN_LIQUIDATION",
+ "LEND_GIVE",
+ "LEND_WITHDRAW",
+ "ADJUSTMENT",
+ "UNCATEGORIZED",
+ "SPAM"
+ ],
+ "type": "string"
+ },
+ "shared1": {
+ "items": {
+ "$ref": "#/$defs/shared2"
+ },
+ "type": "array"
+ },
+ "shared10": {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "chain": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "address",
+ "chain"
+ ],
+ "type": "object"
+ },
+ "shared11": {
+ "items": {
+ "$ref": "#/$defs/shared12"
+ },
+ "type": "array"
+ },
+ "shared12": {
+ "additionalProperties": false,
+ "properties": {
+ "currency": {
+ "type": "string"
+ },
+ "text": {
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "fiat",
+ "crypto",
+ "number"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "text",
+ "value",
+ "currency",
+ "type"
+ ],
+ "type": "object"
+ },
+ "shared13": {
+ "items": {
+ "$ref": "#/$defs/shared14"
+ },
+ "type": "array"
+ },
+ "shared14": {
+ "additionalProperties": false,
+ "properties": {
+ "amountCost": {
+ "type": "number"
+ },
+ "amountIn": {
+ "type": "number"
+ },
+ "amountOut": {
+ "type": "number"
+ },
+ "balance": {
+ "type": "number"
+ },
+ "countIn": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "countOut": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "date": {
+ "type": "string"
+ },
+ "net": {
+ "type": "number"
+ },
+ "symbol": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "date",
+ "net",
+ "symbol",
+ "countIn",
+ "amountIn",
+ "countOut",
+ "amountOut",
+ "amountCost",
+ "balance"
+ ],
+ "type": "object"
+ },
+ "shared15": {
+ "additionalProperties": false,
+ "properties": {
+ "excludedEntities": {
+ "$ref": "#/$defs/shared16"
+ },
+ "includedEntities": {
+ "$ref": "#/$defs/shared16"
+ },
+ "reportingCurrency": {
+ "type": "string"
+ },
+ "scopeName": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "scopeName",
+ "reportingCurrency",
+ "includedEntities",
+ "excludedEntities"
+ ],
+ "type": "object"
+ },
+ "shared16": {
+ "items": {
+ "$ref": "#/$defs/shared17"
+ },
+ "type": "array"
+ },
+ "shared17": {
+ "additionalProperties": false,
+ "properties": {
+ "entityLabel": {
+ "type": "string"
+ },
+ "entityRole": {
+ "type": "string"
+ },
+ "notes": {
+ "type": "string"
+ },
+ "portfolioCurrency": {
+ "type": "string"
+ },
+ "portfolioName": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "entityLabel",
+ "portfolioName",
+ "portfolioCurrency"
+ ],
+ "type": "object"
+ },
+ "shared18": {
+ "additionalProperties": false,
+ "properties": {
+ "entityColumns": {
+ "$ref": "#/$defs/shared19"
+ },
+ "rows": {
+ "$ref": "#/$defs/shared21"
+ },
+ "warnings": {
+ "$ref": "#/$defs/shared24"
+ }
+ },
+ "required": [
+ "entityColumns",
+ "rows",
+ "warnings"
+ ],
+ "type": "object"
+ },
+ "shared19": {
+ "items": {
+ "$ref": "#/$defs/shared20"
+ },
+ "type": "array"
+ },
+ "shared2": {
+ "additionalProperties": false,
+ "properties": {
+ "header": {
+ "type": "string"
+ },
+ "key": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "header",
+ "key"
+ ],
+ "type": "object"
+ },
+ "shared20": {
+ "additionalProperties": false,
+ "properties": {
+ "entityLabel": {
+ "type": "string"
+ },
+ "portfolioCurrency": {
+ "type": "string"
+ },
+ "portfolioSlug": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "portfolioSlug",
+ "entityLabel",
+ "portfolioCurrency"
+ ],
+ "type": "object"
+ },
+ "shared21": {
+ "items": {
+ "$ref": "#/$defs/shared22"
+ },
+ "type": "array"
+ },
+ "shared22": {
+ "additionalProperties": false,
+ "properties": {
+ "accountNumber": {
+ "type": "string"
+ },
+ "eliminationAmount": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "entityAmounts": {
+ "$ref": "#/$defs/shared23"
+ },
+ "groupTotal": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "key": {
+ "type": "string"
+ },
+ "label": {
+ "type": "string"
+ },
+ "level": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "rowKind": {
+ "enum": [
+ "group-header",
+ "account",
+ "subtotal",
+ "section-total",
+ "grand-total"
+ ],
+ "type": "string"
+ },
+ "section": {
+ "type": "string"
+ },
+ "standaloneGroupTotal": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "key",
+ "rowKind",
+ "section",
+ "label",
+ "level",
+ "entityAmounts",
+ "standaloneGroupTotal",
+ "eliminationAmount",
+ "groupTotal"
+ ],
+ "type": "object"
+ },
+ "shared23": {
+ "additionalProperties": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "shared24": {
+ "items": {
+ "$ref": "#/$defs/shared25"
+ },
+ "type": "array"
+ },
+ "shared25": {
+ "additionalProperties": false,
+ "properties": {
+ "entityLabels": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "severity": {
+ "enum": [
+ "blocking",
+ "warning"
+ ],
+ "type": "string"
+ },
+ "type": {
+ "$ref": "#/$defs/shared26"
+ }
+ },
+ "required": [
+ "type",
+ "severity",
+ "message",
+ "entityLabels"
+ ],
+ "type": "object"
+ },
+ "shared26": {
+ "enum": [
+ "account-hierarchy-conflict",
+ "account-label-conflict",
+ "elimination-row-missing",
+ "intercompany-elimination-incomplete",
+ "intercompany-transfer",
+ "mixed-currency"
+ ],
+ "type": "string"
+ },
+ "shared27": {
+ "items": {
+ "$ref": "#/$defs/shared28"
+ },
+ "type": "array"
+ },
+ "shared28": {
+ "additionalProperties": false,
+ "properties": {
+ "accountName": {
+ "type": "string"
+ },
+ "accountNumber": {
+ "type": "string"
+ },
+ "amount": {
+ "pattern": "^-?\\d+(?:\\.\\d+)?$",
+ "type": "string"
+ },
+ "destinationPortfolioSlug": {
+ "type": "string"
+ },
+ "explanation": {
+ "type": "string"
+ },
+ "kind": {
+ "$ref": "#/$defs/shared29"
+ },
+ "pairId": {
+ "type": "string"
+ },
+ "rowKey": {
+ "type": "string"
+ },
+ "sourcePortfolioSlug": {
+ "type": "string"
+ },
+ "statementType": {
+ "enum": [
+ "balance-sheet",
+ "profit-and-loss"
+ ],
+ "type": "string"
+ },
+ "treatment": {
+ "enum": [
+ "OPERATING_FUNDING",
+ "CARRYOVER_BASIS_TRANSFER"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "pairId",
+ "treatment",
+ "kind",
+ "statementType",
+ "sourcePortfolioSlug",
+ "destinationPortfolioSlug",
+ "rowKey",
+ "accountName",
+ "amount",
+ "explanation"
+ ],
+ "type": "object"
+ },
+ "shared29": {
+ "enum": [
+ "carryover-investment-capital",
+ "operating-funding-deferred-gain-realized",
+ "operating-funding-group-basis",
+ "operating-funding-income-expense",
+ "operating-funding-internal-gain-loss"
+ ],
+ "type": "string"
+ },
+ "shared3": {
+ "additionalProperties": false,
+ "properties": {
+ "r": {
+ "type": "string"
+ },
+ "s": {
+ "type": "string"
+ },
+ "v": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "s"
+ ],
+ "type": "object"
+ },
+ "shared30": {
+ "oneOf": [
+ {
+ "$ref": "#/$defs/shared31"
+ },
+ {
+ "$ref": "#/$defs/shared32"
+ },
+ {
+ "$ref": "#/$defs/shared33"
+ },
+ {
+ "$ref": "#/$defs/shared34"
+ },
+ {
+ "$ref": "#/$defs/shared35"
+ },
+ {
+ "$ref": "#/$defs/shared36"
+ },
+ {
+ "$ref": "#/$defs/shared37"
+ },
+ {
+ "$ref": "#/$defs/shared40"
+ },
+ {
+ "$ref": "#/$defs/shared41"
+ },
+ {
+ "$ref": "#/$defs/shared42"
+ },
+ {
+ "$ref": "#/$defs/shared43"
+ },
+ {
+ "$ref": "#/$defs/shared44"
+ },
+ {
+ "$ref": "#/$defs/shared45"
+ },
+ {
+ "$ref": "#/$defs/shared46"
+ }
+ ]
+ },
+ "shared31": {
+ "additionalProperties": false,
+ "properties": {
+ "capitalGains": {
+ "type": "string"
+ },
+ "capitalLosses": {
+ "type": "string"
+ },
+ "netIncome": {
+ "type": "string"
+ },
+ "ordinaryExpense": {
+ "type": "string"
+ },
+ "ordinaryIncome": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "profit-and-loss",
+ "type": "string"
+ },
+ "totalExpensesAndLosses": {
+ "type": "string"
+ },
+ "totalRevenue": {
+ "type": "string"
+ },
+ "transactionCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalRevenue",
+ "ordinaryIncome",
+ "capitalGains",
+ "totalExpensesAndLosses",
+ "ordinaryExpense",
+ "capitalLosses",
+ "netIncome",
+ "transactionCount"
+ ],
+ "type": "object"
+ },
+ "shared32": {
+ "additionalProperties": false,
+ "properties": {
+ "capitalGains": {
+ "type": "string"
+ },
+ "capitalLosses": {
+ "type": "string"
+ },
+ "netIncome": {
+ "type": "string"
+ },
+ "ordinaryExpense": {
+ "type": "string"
+ },
+ "ordinaryIncome": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "consolidated-profit-and-loss",
+ "type": "string"
+ },
+ "totalExpensesAndLosses": {
+ "type": "string"
+ },
+ "totalRevenue": {
+ "type": "string"
+ },
+ "transactionCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalRevenue",
+ "ordinaryIncome",
+ "capitalGains",
+ "totalExpensesAndLosses",
+ "ordinaryExpense",
+ "capitalLosses",
+ "netIncome",
+ "transactionCount"
+ ],
+ "type": "object"
+ },
+ "shared33": {
+ "additionalProperties": false,
+ "properties": {
+ "netWorth": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "balance-sheet",
+ "type": "string"
+ },
+ "totalAssets": {
+ "type": "string"
+ },
+ "totalEquity": {
+ "type": "string"
+ },
+ "totalLiabilities": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalAssets",
+ "totalLiabilities",
+ "totalEquity",
+ "netWorth"
+ ],
+ "type": "object"
+ },
+ "shared34": {
+ "additionalProperties": false,
+ "properties": {
+ "netWorth": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "consolidated-balance-sheet",
+ "type": "string"
+ },
+ "totalAssets": {
+ "type": "string"
+ },
+ "totalEquity": {
+ "type": "string"
+ },
+ "totalLiabilities": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalAssets",
+ "totalLiabilities",
+ "totalEquity",
+ "netWorth"
+ ],
+ "type": "object"
+ },
+ "shared35": {
+ "additionalProperties": false,
+ "properties": {
+ "netIncome": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "income-expense",
+ "type": "string"
+ },
+ "totalExpense": {
+ "type": "string"
+ },
+ "totalIncome": {
+ "type": "string"
+ },
+ "transactionCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalIncome",
+ "totalExpense",
+ "netIncome",
+ "transactionCount"
+ ],
+ "type": "object"
+ },
+ "shared36": {
+ "additionalProperties": false,
+ "properties": {
+ "percentGainOrLoss": {
+ "type": "string"
+ },
+ "reportType": {
+ "const": "gains-losses",
+ "type": "string"
+ },
+ "totalCostBasis": {
+ "type": "string"
+ },
+ "totalGainOrLoss": {
+ "type": "string"
+ },
+ "totalProceeds": {
+ "type": "string"
+ },
+ "tradeCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalProceeds",
+ "totalCostBasis",
+ "totalGainOrLoss",
+ "tradeCount"
+ ],
+ "type": "object"
+ },
+ "shared37": {
+ "additionalProperties": false,
+ "properties": {
+ "accountCount": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "difference": {
+ "type": "string"
+ },
+ "isBalanced": {
+ "type": "boolean"
+ },
+ "reportType": {
+ "const": "trial-balance",
+ "type": "string"
+ },
+ "subTotals": {
+ "$ref": "#/$defs/shared38"
+ },
+ "totalCredits": {
+ "type": "string"
+ },
+ "totalDebits": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType",
+ "totalDebits",
+ "totalCredits",
+ "difference",
+ "isBalanced",
+ "accountCount",
+ "subTotals"
+ ],
+ "type": "object"
+ },
+ "shared38": {
+ "additionalProperties": {
+ "$ref": "#/$defs/shared39"
+ },
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "shared39": {
+ "additionalProperties": false,
+ "properties": {
+ "credit": {
+ "type": "string"
+ },
+ "debit": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "debit",
+ "credit"
+ ],
+ "type": "object"
+ },
+ "shared4": {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "symbol": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "symbol"
+ ],
+ "type": "object"
+ },
+ "shared40": {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "daily-summary",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ "shared41": {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "statement",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ "shared42": {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "transactions",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ "shared43": {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "journal-entries",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ "shared44": {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "cost-basis-ledger",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ "shared45": {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "payment-requests",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ "shared46": {
+ "additionalProperties": false,
+ "properties": {
+ "reportType": {
+ "const": "portfolio-conversion-workbook-template",
+ "type": "string"
+ }
+ },
+ "required": [
+ "reportType"
+ ],
+ "type": "object"
+ },
+ "shared47": {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "$ref": "#/$defs/shared48"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ },
+ "shared48": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "details": {
+ "additionalProperties": {},
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "message": {
+ "type": "string"
+ },
+ "requestId": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "requestId"
+ ],
+ "type": "object"
+ },
+ "shared5": {
+ "additionalProperties": false,
+ "properties": {
+ "accountingConfiguration": {
+ "$ref": "#/$defs/shared6"
+ },
+ "currency": {
+ "type": "string"
+ },
+ "fiscalPeriodStart": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "reportingTimezone": {
+ "type": "string"
+ },
+ "slug": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "slug",
+ "name",
+ "currency",
+ "reportingTimezone",
+ "accountingConfiguration",
+ "fiscalPeriodStart"
+ ],
+ "type": "object"
+ },
+ "shared6": {
+ "additionalProperties": false,
+ "properties": {
+ "baseCurrency": {
+ "type": "string"
+ },
+ "costBasisLotMethod": {
+ "enum": [
+ "FIFO",
+ "LIFO",
+ "HIFO",
+ "ACB"
+ ],
+ "type": "string"
+ },
+ "costBasisPerWallet": {
+ "type": "boolean"
+ },
+ "defiDepositTreatment": {
+ "enum": [
+ "TAXABLE_EXCHANGE",
+ "NON_TAXABLE_RESERVATION"
+ ],
+ "type": "string"
+ },
+ "financialReportingFramework": {
+ "$ref": "#/$defs/shared7"
+ },
+ "gasFeeAccountingTreatment": {
+ "enum": [
+ "DISPOSAL_AND_COST_BASIS",
+ "EXPENSE_ONLY"
+ ],
+ "type": "string"
+ },
+ "isPurchaseTaxable": {
+ "type": "boolean"
+ },
+ "jurisdictionCode": {
+ "type": "string"
+ },
+ "separateIncomeExpenseLines": {
+ "type": "boolean"
+ },
+ "stablecoinTreatment": {
+ "enum": [
+ "BASE",
+ "ASSET"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "gasFeeAccountingTreatment",
+ "isPurchaseTaxable",
+ "costBasisLotMethod",
+ "baseCurrency",
+ "jurisdictionCode",
+ "stablecoinTreatment",
+ "costBasisPerWallet",
+ "defiDepositTreatment",
+ "separateIncomeExpenseLines"
+ ],
+ "type": "object"
+ },
+ "shared7": {
+ "enum": [
+ "TAX_ONLY",
+ "US_GAAP_PRE_2025",
+ "US_GAAP_ASC350_60",
+ "IFRS_IAS38",
+ "IFRS_IAS38_REVAL",
+ "IFRS_IAS2_LCNRV",
+ "IFRS_IAS2_BROKER_TRADER_FVLCTS",
+ "ASPE",
+ "FRS_102",
+ "AASB_138",
+ "OTHER"
+ ],
+ "type": "string"
+ },
+ "shared8": {
+ "additionalProperties": false,
+ "properties": {
+ "currency": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "timezone": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "currency",
+ "timezone"
+ ],
+ "type": "object"
+ },
+ "shared9": {
+ "additionalProperties": false,
+ "properties": {
+ "from": {
+ "type": "string"
+ },
+ "to": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "from",
+ "to"
+ ],
+ "type": "object"
+ }
+}