BRAINIAC Crypto Tax Computation is an MCP server published by software.brainiac, hosted at www.brainiac.software. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 15 tools, including crypto-tax_cost-basis-lots, crypto-tax_specific-id-select, crypto-tax_us-form-8949-rows, crypto-tax_uk-share-pooling, crypto-tax_canada-acb.
Paid Crypto Tax Computation API via x402. Unpaid tool calls return 402.
1,088 connections through 4 shared values. Tap any node.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
Match disposals to acquisition lots by FIFO, LIFO, HIFO or average cost and compute gains from a caller-supplied ledger and fiat values. Docs: https://www.brainiac.software/api/crypto-tax/cost-basis-lots Keywords: when computing crypto tax or cost basis, fiatCurrency, method, ledger, feePolicy, disposals, openLots, warnings, Match disposals to acquisition lots, cost basis lots.
| Parameter | Type | Description |
|---|---|---|
| ledger * | array | ledger, array. Required. |
| method * | string | method, string, one of FIFO, LIFO, HIFO, AVERAGE. Required. |
| feePolicy | string | feePolicy, string, one of add_to_basis_and_deduct_from_proceeds, ignore. Required. |
| fiatCurrency * | string | fiatCurrency, string, length 3 to 3. Required. |
{
"name": "crypto-tax_cost-basis-lots",
"title": "Match disposals to acquisition lots",
"description": "Match disposals to acquisition lots by FIFO, LIFO, HIFO or average cost and compute gains from a caller-supplied ledger and fiat values. Docs: https://www.brainiac.software/api/crypto-tax/cost-basis-lots Keywords: when computing crypto tax or cost basis, fiatCurrency, method, ledger, feePolicy, disposals, openLots, warnings, Match disposals to acquisition lots, cost basis lots.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"fiatCurrency",
"method",
"ledger"
],
"properties": {
"ledger": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"ts",
"type",
"asset",
"qty",
"fiatValue",
"wallet"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "id, string, length 1 to 128. Required."
},
"ts": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "ts, string, date-time. Required."
},
"qty": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"description": "qty, string. Required."
},
"type": {
"enum": [
"buy",
"sell",
"transfer_in",
"transfer_out",
"income",
"fee",
"trade"
],
"type": "string",
"description": "type, string, one of buy, sell, transfer_in, transfer_out, income, fee. Required."
},
"asset": {
"type": "string",
"maxLength": 32,
"minLength": 1,
"description": "asset, string, length 1 to 32. Required."
},
"txHash": {
"anyOf": [
{
"type": "string",
"maxLength": 128,
"minLength": 1
},
{
"type": "null"
}
],
"description": "txHash, value. Optional."
},
"wallet": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "wallet, string, length 1 to 128. Required."
},
"feeFiat": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0,
"description": "feeFiat, integer, from 0 to 9007199254740991. Required."
},
"fiatValue": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "fiatValue, integer, from 0 to 9007199254740991. Required."
},
"counterQty": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
{
"type": "null"
}
],
"description": "counterQty, value. Optional."
},
"counterAsset": {
"anyOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 1
},
{
"type": "null"
}
],
"description": "counterAsset, value. Optional."
}
},
"description": "item, object. Required."
},
"description": "ledger, array. Required."
},
"method": {
"enum": [
"FIFO",
"LIFO",
"HIFO",
"AVERAGE"
],
"type": "string",
"description": "method, string, one of FIFO, LIFO, HIFO, AVERAGE. Required."
},
"feePolicy": {
"enum": [
"add_to_basis_and_deduct_from_proceeds",
"ignore"
],
"type": "string",
"default": "add_to_basis_and_deduct_from_proceeds",
"description": "feePolicy, string, one of add_to_basis_and_deduct_from_proceeds, ignore. Required."
},
"fiatCurrency": {
"type": "string",
"maxLength": 3,
"minLength": 3,
"description": "fiatCurrency, string, length 3 to 3. Required."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"method": {
"type": "string",
"description": "method. String."
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"openLots": {
"type": "array",
"items": {
"type": "object",
"properties": {
"qty": {
"type": "string",
"description": "qty. String."
},
"asset": {
"type": "string",
"description": "asset. String."
},
"basis": {
"type": "number",
"description": "basis. Number."
},
"lotId": {
"type": "string",
"description": "lotId. String."
},
"wallet": {
"type": "string",
"description": "wallet. String."
},
"acquiredTs": {
"type": "string",
"description": "acquiredTs. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "openLots. Array."
},
"warnings": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "warnings. Array."
},
"disposals": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "id. String."
},
"qty": {
"type": "string",
"description": "qty. String."
},
"gain": {
"type": "number",
"description": "gain. Number."
},
"asset": {
"type": "string",
"description": "asset. String."
},
"basis": {
"type": "number",
"description": "basis. Number."
},
"matches": {
"type": "array",
"items": {
"type": "object",
"properties": {
"qty": {
"type": "string",
"description": "qty. String."
},
"basis": {
"type": "number",
"description": "basis. Number."
},
"lotId": {
"type": "string",
"description": "lotId. String."
},
"acquiredTs": {
"type": "string",
"description": "acquiredTs. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "matches. Array."
},
"proceeds": {
"type": "number",
"description": "proceeds. Number."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "disposals. Array."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"fiatCurrency": {
"type": "string",
"description": "fiatCurrency. String."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Match disposals to acquisition lots",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Apply caller-chosen lot identifications to disposals, validate timing and quantities, and return matched basis or structured selection errors. Docs: https://www.brainiac.software/api/crypto-tax/specific-id-select Keywords: when computing crypto tax or cost basis, ledger, selections, fiatCurrency, feePolicy, disposals, openLots, warnings, errors, Apply specific-identification lot selections, specific id select.
| Parameter | Type | Description |
|---|---|---|
| ledger * | array | ledger, array. Required. |
| feePolicy | string | feePolicy, string, one of add_to_basis_and_deduct_from_proceeds, ignore. Required. |
| selections * | array | selections, array. Required. |
| fiatCurrency | string | fiatCurrency, string, length 3 to 3. Required. |
{
"name": "crypto-tax_specific-id-select",
"title": "Apply specific-identification lot selections",
"description": "Apply caller-chosen lot identifications to disposals, validate timing and quantities, and return matched basis or structured selection errors. Docs: https://www.brainiac.software/api/crypto-tax/specific-id-select Keywords: when computing crypto tax or cost basis, ledger, selections, fiatCurrency, feePolicy, disposals, openLots, warnings, errors, Apply specific-identification lot selections, specific id select.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"ledger",
"selections"
],
"properties": {
"ledger": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"ts",
"type",
"asset",
"qty",
"fiatValue",
"wallet"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "id, string, length 1 to 128. Required."
},
"ts": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "ts, string, date-time. Required."
},
"qty": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"description": "qty, string. Required."
},
"type": {
"enum": [
"buy",
"sell",
"transfer_in",
"transfer_out",
"income",
"fee",
"trade"
],
"type": "string",
"description": "type, string, one of buy, sell, transfer_in, transfer_out, income, fee. Required."
},
"asset": {
"type": "string",
"maxLength": 32,
"minLength": 1,
"description": "asset, string, length 1 to 32. Required."
},
"txHash": {
"anyOf": [
{
"type": "string",
"maxLength": 128,
"minLength": 1
},
{
"type": "null"
}
],
"description": "txHash, value. Optional."
},
"wallet": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "wallet, string, length 1 to 128. Required."
},
"feeFiat": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0,
"description": "feeFiat, integer, from 0 to 9007199254740991. Required."
},
"fiatValue": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "fiatValue, integer, from 0 to 9007199254740991. Required."
},
"counterQty": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
{
"type": "null"
}
],
"description": "counterQty, value. Optional."
},
"counterAsset": {
"anyOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 1
},
{
"type": "null"
}
],
"description": "counterAsset, value. Optional."
}
},
"description": "item, object. Required."
},
"description": "ledger, array. Required."
},
"feePolicy": {
"enum": [
"add_to_basis_and_deduct_from_proceeds",
"ignore"
],
"type": "string",
"default": "add_to_basis_and_deduct_from_proceeds",
"description": "feePolicy, string, one of add_to_basis_and_deduct_from_proceeds, ignore. Required."
},
"selections": {
"type": "array",
"items": {
"type": "object",
"required": [
"disposalId",
"lots"
],
"properties": {
"lots": {
"type": "array",
"items": {
"type": "object",
"required": [
"lotId",
"qty"
],
"properties": {
"qty": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"description": "qty, string. Required."
},
"lotId": {
"type": "string",
"minLength": 1,
"description": "lotId, string, length 1 to any. Required."
}
},
"description": "item, object. Required."
},
"description": "lots, array. Required."
},
"disposalId": {
"type": "string",
"minLength": 1,
"description": "disposalId, string, length 1 to any. Required."
}
},
"description": "item, object. Required."
},
"description": "selections, array. Required."
},
"fiatCurrency": {
"type": "string",
"default": "USD",
"maxLength": 3,
"minLength": 3,
"description": "fiatCurrency, string, length 3 to 3. Required."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"errors": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "errors. Array."
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"openLots": {
"type": "array",
"items": {
"type": "object",
"properties": {
"qty": {
"type": "string",
"description": "qty. String."
},
"asset": {
"type": "string",
"description": "asset. String."
},
"basis": {
"type": "number",
"description": "basis. Number."
},
"lotId": {
"type": "string",
"description": "lotId. String."
},
"wallet": {
"type": "string",
"description": "wallet. String."
},
"acquiredTs": {
"type": "string",
"description": "acquiredTs. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "openLots. Array."
},
"warnings": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "warnings. Array."
},
"disposals": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "id. String."
},
"qty": {
"type": "string",
"description": "qty. String."
},
"gain": {
"type": "number",
"description": "gain. Number."
},
"asset": {
"type": "string",
"description": "asset. String."
},
"basis": {
"type": "number",
"description": "basis. Number."
},
"matches": {
"type": "array",
"items": {
"type": "object",
"properties": {
"qty": {
"type": "string",
"description": "qty. String."
},
"basis": {
"type": "number",
"description": "basis. Number."
},
"lotId": {
"type": "string",
"description": "lotId. String."
},
"acquiredTs": {
"type": "string",
"description": "acquiredTs. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "matches. Array."
},
"proceeds": {
"type": "number",
"description": "proceeds. Number."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "disposals. Array."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Apply specific-identification lot selections",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Produce Form 8949 rows and Schedule D box totals from caller disposals using 2025 short/long-term and 1099-B / 1099-DA box rules. Docs: https://www.brainiac.software/api/crypto-tax/us-form-8949-rows Keywords: when computing crypto tax or cost basis, taxYear, disposals, roundToDollars, rows, totalsByBox, Build IRS Form 8949 rows, us form 8949 rows.
| Parameter | Type | Description |
|---|---|---|
| taxYear * | integer | taxYear, integer, from -9007199254740991 to 9007199254740991. Required. |
| disposals * | array | disposals, array. Required. |
| roundToDollars | boolean | roundToDollars, boolean. Required. |
{
"name": "crypto-tax_us-form-8949-rows",
"title": "Build IRS Form 8949 rows",
"description": "Produce Form 8949 rows and Schedule D box totals from caller disposals using 2025 short/long-term and 1099-B / 1099-DA box rules. Docs: https://www.brainiac.software/api/crypto-tax/us-form-8949-rows Keywords: when computing crypto tax or cost basis, taxYear, disposals, roundToDollars, rows, totalsByBox, Build IRS Form 8949 rows, us form 8949 rows.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"taxYear",
"disposals"
],
"properties": {
"taxYear": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "taxYear, integer, from -9007199254740991 to 9007199254740991. Required."
},
"disposals": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"description",
"acquired",
"sold",
"proceeds",
"basis",
"reportedOn",
"basisReported"
],
"properties": {
"id": {
"type": "string",
"minLength": 1,
"description": "id, string, length 1 to any. Required."
},
"sold": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "acquired, string, date. Required."
},
"basis": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "proceeds, integer, from 0 to 9007199254740991. Required."
},
"acquired": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "acquired, string, date. Required."
},
"proceeds": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "proceeds, integer, from 0 to 9007199254740991. Required."
},
"adjustment": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "adjustment, integer, from -9007199254740991 to 9007199254740991. Required."
},
"reportedOn": {
"enum": [
"1099-DA",
"1099-B",
"none"
],
"type": "string",
"description": "reportedOn, string, one of 1099-DA, 1099-B, none. Required."
},
"description": {
"type": "string",
"maxLength": 256,
"minLength": 1,
"description": "description, string, length 1 to 256. Required."
},
"basisReported": {
"type": "boolean",
"description": "basisReported, boolean. Required."
},
"adjustmentCode": {
"anyOf": [
{
"type": "string",
"maxLength": 8
},
{
"type": "null"
}
],
"description": "adjustmentCode, value. Optional."
}
},
"description": "item, object. Required."
},
"description": "disposals, array. Required."
},
"roundToDollars": {
"type": "boolean",
"default": false,
"description": "roundToDollars, boolean. Required."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"rows": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "id. String."
},
"box": {
"type": "string",
"description": "box. String."
},
"code": {
"type": "null",
"description": "code. Null."
},
"gain": {
"type": "number",
"description": "gain. Number."
},
"part": {
"type": "string",
"description": "part. String."
},
"term": {
"type": "string",
"description": "term. String."
},
"basis": {
"type": "number",
"description": "basis. Number."
},
"dateSold": {
"type": "string",
"description": "dateSold. String."
},
"proceeds": {
"type": "number",
"description": "proceeds. Number."
},
"adjustment": {
"type": "number",
"description": "adjustment. Number."
},
"description": {
"type": "string",
"description": "description. String."
},
"dateAcquired": {
"type": "string",
"description": "dateAcquired. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "rows. Array."
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"taxYear": {
"type": "number",
"description": "taxYear. Number."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"totalsByBox": {
"type": "object",
"properties": {
"J": {
"type": "object",
"properties": {
"gain": {
"type": "number",
"description": "gain. Number."
},
"basis": {
"type": "number",
"description": "basis. Number."
},
"proceeds": {
"type": "number",
"description": "proceeds. Number."
},
"adjustment": {
"type": "number",
"description": "adjustment. Number."
}
},
"description": "J. Object.",
"additionalProperties": {}
}
},
"description": "totalsByBox. Object.",
"additionalProperties": {}
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Build IRS Form 8949 rows",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Apply same-day, 30-day and section 104 share-pooling rules to a GBP ledger and return allowable cost, gains, pool balances and AEA. Docs: https://www.brainiac.software/api/crypto-tax/uk-share-pooling Keywords: when computing crypto tax or cost basis, ledger, taxYear, fiatCurrency, feePolicy, disposals, pool, netGain, annualExemptAmount, taxableAfterAea, warnings, UK share pooling for cryptoassets, uk share pooling.
| Parameter | Type | Description |
|---|---|---|
| ledger * | array | ledger, array. Required. |
| taxYear * | string | taxYear, string. Required. |
| feePolicy | string | feePolicy, string, one of add_to_basis_and_deduct_from_proceeds, ignore. Required. |
| fiatCurrency | string | fiatCurrency, string, length 3 to 3. Required. |
{
"name": "crypto-tax_uk-share-pooling",
"title": "UK share pooling for cryptoassets",
"description": "Apply same-day, 30-day and section 104 share-pooling rules to a GBP ledger and return allowable cost, gains, pool balances and AEA. Docs: https://www.brainiac.software/api/crypto-tax/uk-share-pooling Keywords: when computing crypto tax or cost basis, ledger, taxYear, fiatCurrency, feePolicy, disposals, pool, netGain, annualExemptAmount, taxableAfterAea, warnings, UK share pooling for cryptoassets, uk share pooling.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"ledger",
"taxYear"
],
"properties": {
"ledger": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"ts",
"type",
"asset",
"qty",
"fiatValue",
"wallet"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "id, string, length 1 to 128. Required."
},
"ts": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "ts, string, date-time. Required."
},
"qty": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"description": "qty, string. Required."
},
"type": {
"enum": [
"buy",
"sell",
"transfer_in",
"transfer_out",
"income",
"fee",
"trade"
],
"type": "string",
"description": "type, string, one of buy, sell, transfer_in, transfer_out, income, fee. Required."
},
"asset": {
"type": "string",
"maxLength": 32,
"minLength": 1,
"description": "asset, string, length 1 to 32. Required."
},
"txHash": {
"anyOf": [
{
"type": "string",
"maxLength": 128,
"minLength": 1
},
{
"type": "null"
}
],
"description": "txHash, value. Optional."
},
"wallet": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "wallet, string, length 1 to 128. Required."
},
"feeFiat": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0,
"description": "feeFiat, integer, from 0 to 9007199254740991. Required."
},
"fiatValue": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "fiatValue, integer, from 0 to 9007199254740991. Required."
},
"counterQty": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
{
"type": "null"
}
],
"description": "counterQty, value. Optional."
},
"counterAsset": {
"anyOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 1
},
{
"type": "null"
}
],
"description": "counterAsset, value. Optional."
}
},
"description": "item, object. Required."
},
"description": "ledger, array. Required."
},
"taxYear": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}$",
"description": "taxYear, string. Required."
},
"feePolicy": {
"enum": [
"add_to_basis_and_deduct_from_proceeds",
"ignore"
],
"type": "string",
"default": "add_to_basis_and_deduct_from_proceeds",
"description": "feePolicy, string, one of add_to_basis_and_deduct_from_proceeds, ignore. Required."
},
"fiatCurrency": {
"type": "string",
"default": "GBP",
"maxLength": 3,
"minLength": 3,
"description": "fiatCurrency, string, length 3 to 3. Required."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"pool": {
"type": "object",
"properties": {
"BTC": {
"type": "object",
"properties": {
"qty": {
"type": "string",
"description": "qty. String."
},
"cost": {
"type": "number",
"description": "cost. Number."
}
},
"description": "BTC. Object.",
"additionalProperties": {}
}
},
"description": "pool. Object.",
"additionalProperties": {}
},
"netGain": {
"type": "number",
"description": "netGain. Number."
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"taxYear": {
"type": "string",
"description": "taxYear. String."
},
"warnings": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "warnings. Array."
},
"disposals": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "id. String."
},
"gain": {
"type": "number",
"description": "gain. Number."
},
"matches": {
"type": "array",
"items": {
"type": "object",
"properties": {
"qty": {
"type": "string",
"description": "qty. String."
},
"cost": {
"type": "number",
"description": "cost. Number."
},
"rule": {
"type": "string",
"description": "rule. String."
},
"acqId": {
"type": "string",
"description": "acqId. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "matches. Array."
},
"proceeds": {
"type": "number",
"description": "proceeds. Number."
},
"allowableCost": {
"type": "number",
"description": "allowableCost. Number."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "disposals. Array."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"taxableAfterAea": {
"type": "number",
"description": "taxableAfterAea. Number."
},
"annualExemptAmount": {
"type": "number",
"description": "annualExemptAmount. Number."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "UK share pooling for cryptoassets",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Compute Canadian ACB and capital gains with superficial-loss detection for identical properties on a CAD ledger. Docs: https://www.brainiac.software/api/crypto-tax/canada-acb Keywords: when computing crypto tax or cost basis, ledger, treatment, fiatCurrency, feePolicy, disposals, acb, warnings, Canadian adjusted cost base, canada acb.
| Parameter | Type | Description |
|---|---|---|
| ledger * | array | ledger, array. Required. |
| feePolicy | string | feePolicy, string, one of add_to_basis_and_deduct_from_proceeds, ignore. Required. |
| treatment | string | treatment, string. Required. |
| fiatCurrency | string | fiatCurrency, string, length 3 to 3. Required. |
{
"name": "crypto-tax_canada-acb",
"title": "Canadian adjusted cost base",
"description": "Compute Canadian ACB and capital gains with superficial-loss detection for identical properties on a CAD ledger. Docs: https://www.brainiac.software/api/crypto-tax/canada-acb Keywords: when computing crypto tax or cost basis, ledger, treatment, fiatCurrency, feePolicy, disposals, acb, warnings, Canadian adjusted cost base, canada acb.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"ledger"
],
"properties": {
"ledger": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"ts",
"type",
"asset",
"qty",
"fiatValue",
"wallet"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "id, string, length 1 to 128. Required."
},
"ts": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "ts, string, date-time. Required."
},
"qty": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"description": "qty, string. Required."
},
"type": {
"enum": [
"buy",
"sell",
"transfer_in",
"transfer_out",
"income",
"fee",
"trade"
],
"type": "string",
"description": "type, string, one of buy, sell, transfer_in, transfer_out, income, fee. Required."
},
"asset": {
"type": "string",
"maxLength": 32,
"minLength": 1,
"description": "asset, string, length 1 to 32. Required."
},
"txHash": {
"anyOf": [
{
"type": "string",
"maxLength": 128,
"minLength": 1
},
{
"type": "null"
}
],
"description": "txHash, value. Optional."
},
"wallet": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "wallet, string, length 1 to 128. Required."
},
"feeFiat": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0,
"description": "feeFiat, integer, from 0 to 9007199254740991. Required."
},
"fiatValue": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "fiatValue, integer, from 0 to 9007199254740991. Required."
},
"counterQty": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
{
"type": "null"
}
],
"description": "counterQty, value. Optional."
},
"counterAsset": {
"anyOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 1
},
{
"type": "null"
}
],
"description": "counterAsset, value. Optional."
}
},
"description": "item, object. Required."
},
"description": "ledger, array. Required."
},
"feePolicy": {
"enum": [
"add_to_basis_and_deduct_from_proceeds",
"ignore"
],
"type": "string",
"default": "add_to_basis_and_deduct_from_proceeds",
"description": "feePolicy, string, one of add_to_basis_and_deduct_from_proceeds, ignore. Required."
},
"treatment": {
"type": "string",
"const": "capital",
"default": "capital",
"description": "treatment, string. Required."
},
"fiatCurrency": {
"type": "string",
"default": "CAD",
"maxLength": 3,
"minLength": 3,
"description": "fiatCurrency, string, length 3 to 3. Required."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"acb": {
"type": "object",
"properties": {
"BTC": {
"type": "object",
"properties": {
"acb": {
"type": "number",
"description": "acb. Number."
},
"qty": {
"type": "string",
"description": "qty. String."
}
},
"description": "BTC. Object.",
"additionalProperties": {}
}
},
"description": "acb. Object.",
"additionalProperties": {}
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"warnings": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "warnings. Array."
},
"disposals": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "id. String."
},
"gain": {
"type": "number",
"description": "gain. Number."
},
"acbUsed": {
"type": "number",
"description": "acbUsed. Number."
},
"proceeds": {
"type": "number",
"description": "proceeds. Number."
},
"superficialLossDenied": {
"type": "number",
"description": "superficialLossDenied. Number."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "disposals. Array."
},
"treatment": {
"type": "string",
"description": "treatment. String."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Canadian adjusted cost base",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Apply the Australian 12-month CGT discount by entity type after losses, from caller event proceeds and cost base. Docs: https://www.brainiac.software/api/crypto-tax/australia-cgt-discount Keywords: when computing crypto tax or cost basis, entity, resident, events, carriedForwardLosses, grossGains, lossesApplied, discountRate, netCapitalGain, Australian CGT discount, australia cgt discount.
| Parameter | Type | Description |
|---|---|---|
| entity * | string | entity, string, one of individual, trust, super_fund, company. Required. |
| events * | array | events, array. Required. |
| resident * | boolean | resident, boolean. Required. |
| carriedForwardLosses | integer | carriedForwardLosses, integer, from 0 to 9007199254740991. Required. |
{
"name": "crypto-tax_australia-cgt-discount",
"title": "Australian CGT discount",
"description": "Apply the Australian 12-month CGT discount by entity type after losses, from caller event proceeds and cost base. Docs: https://www.brainiac.software/api/crypto-tax/australia-cgt-discount Keywords: when computing crypto tax or cost basis, entity, resident, events, carriedForwardLosses, grossGains, lossesApplied, discountRate, netCapitalGain, Australian CGT discount, australia cgt discount.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"entity",
"resident",
"events"
],
"properties": {
"entity": {
"enum": [
"individual",
"trust",
"super_fund",
"company"
],
"type": "string",
"description": "entity, string, one of individual, trust, super_fund, company. Required."
},
"events": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"acquired",
"eventDate",
"capitalProceeds",
"costBase"
],
"properties": {
"id": {
"type": "string",
"minLength": 1,
"description": "id, string, length 1 to any. Required."
},
"acquired": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "acquired, string, date. Required."
},
"costBase": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "capitalProceeds, integer, from 0 to 9007199254740991. Required."
},
"eventDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "acquired, string, date. Required."
},
"capitalProceeds": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "capitalProceeds, integer, from 0 to 9007199254740991. Required."
}
},
"description": "item, object. Required."
},
"description": "events, array. Required."
},
"resident": {
"type": "boolean",
"description": "resident, boolean. Required."
},
"carriedForwardLosses": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0,
"description": "carriedForwardLosses, integer, from 0 to 9007199254740991. Required."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"events": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "id. String."
},
"gain": {
"type": "number",
"description": "gain. Number."
},
"discountEligible": {
"type": "boolean",
"description": "discountEligible. Boolean."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "events. Array."
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"grossGains": {
"type": "number",
"description": "grossGains. Number."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"discountRate": {
"type": "number",
"description": "discountRate. Number."
},
"lossesApplied": {
"type": "number",
"description": "lossesApplied. Number."
},
"netCapitalGain": {
"type": "number",
"description": "netCapitalGain. Number."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Australian CGT discount",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Classify crypto private sales under §23 EStG with FIFO (or caller method), one-year holding and the €1,000 Freigrenze. Docs: https://www.brainiac.software/api/crypto-tax/germany-holding-period Keywords: when computing crypto tax or cost basis, ledger, calendarYear, method, fiatCurrency, feePolicy, disposals, taxableGainTotal, exempt, reason, German 23 holding-period screen, germany holding period.
| Parameter | Type | Description |
|---|---|---|
| ledger * | array | ledger, array. Required. |
| method | string | method, string, one of FIFO, LIFO, HIFO, AVERAGE. Required. |
| feePolicy | string | feePolicy, string, one of add_to_basis_and_deduct_from_proceeds, ignore. Required. |
| calendarYear * | integer | calendarYear, integer, from -9007199254740991 to 9007199254740991. Required. |
| fiatCurrency | string | fiatCurrency, string, length 3 to 3. Required. |
{
"name": "crypto-tax_germany-holding-period",
"title": "German §23 holding-period screen",
"description": "Classify crypto private sales under §23 EStG with FIFO (or caller method), one-year holding and the €1,000 Freigrenze. Docs: https://www.brainiac.software/api/crypto-tax/germany-holding-period Keywords: when computing crypto tax or cost basis, ledger, calendarYear, method, fiatCurrency, feePolicy, disposals, taxableGainTotal, exempt, reason, German 23 holding-period screen, germany holding period.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"ledger",
"calendarYear"
],
"properties": {
"ledger": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"ts",
"type",
"asset",
"qty",
"fiatValue",
"wallet"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "id, string, length 1 to 128. Required."
},
"ts": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "ts, string, date-time. Required."
},
"qty": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"description": "qty, string. Required."
},
"type": {
"enum": [
"buy",
"sell",
"transfer_in",
"transfer_out",
"income",
"fee",
"trade"
],
"type": "string",
"description": "type, string, one of buy, sell, transfer_in, transfer_out, income, fee. Required."
},
"asset": {
"type": "string",
"maxLength": 32,
"minLength": 1,
"description": "asset, string, length 1 to 32. Required."
},
"txHash": {
"anyOf": [
{
"type": "string",
"maxLength": 128,
"minLength": 1
},
{
"type": "null"
}
],
"description": "txHash, value. Optional."
},
"wallet": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "wallet, string, length 1 to 128. Required."
},
"feeFiat": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0,
"description": "feeFiat, integer, from 0 to 9007199254740991. Required."
},
"fiatValue": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "fiatValue, integer, from 0 to 9007199254740991. Required."
},
"counterQty": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
{
"type": "null"
}
],
"description": "counterQty, value. Optional."
},
"counterAsset": {
"anyOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 1
},
{
"type": "null"
}
],
"description": "counterAsset, value. Optional."
}
},
"description": "item, object. Required."
},
"description": "ledger, array. Required."
},
"method": {
"enum": [
"FIFO",
"LIFO",
"HIFO",
"AVERAGE"
],
"type": "string",
"default": "FIFO",
"description": "method, string, one of FIFO, LIFO, HIFO, AVERAGE. Required."
},
"feePolicy": {
"enum": [
"add_to_basis_and_deduct_from_proceeds",
"ignore"
],
"type": "string",
"default": "add_to_basis_and_deduct_from_proceeds",
"description": "feePolicy, string, one of add_to_basis_and_deduct_from_proceeds, ignore. Required."
},
"calendarYear": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "calendarYear, integer, from -9007199254740991 to 9007199254740991. Required."
},
"fiatCurrency": {
"type": "string",
"default": "EUR",
"maxLength": 3,
"minLength": 3,
"description": "fiatCurrency, string, length 3 to 3. Required."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"exempt": {
"type": "boolean",
"description": "exempt. Boolean."
},
"method": {
"type": "string",
"description": "method. String."
},
"reason": {
"type": "string",
"description": "reason. String."
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"disposals": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "id. String."
},
"gain": {
"type": "number",
"description": "gain. Number."
},
"sold": {
"type": "string",
"description": "sold. String."
},
"taxable": {
"type": "boolean",
"description": "taxable. Boolean."
},
"acquired": {
"type": "string",
"description": "acquired. String."
},
"holdingDays": {
"type": "number",
"description": "holdingDays. Number."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "disposals. Array."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"calendarYear": {
"type": "number",
"description": "calendarYear. Number."
},
"taxableGainTotal": {
"type": "number",
"description": "taxableGainTotal. Number."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "German §23 holding-period screen",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Value staking, mining, airdrop and interest receipts in fiat using caller-supplied prices within a max lag window. Docs: https://www.brainiac.software/api/crypto-tax/income-events-value Keywords: when computing crypto tax or cost basis, events, prices, maxPriceLagHours, fiatCurrency, totalsByKind, missingPrices, Value staking and income events, income events value.
| Parameter | Type | Description |
|---|---|---|
| events * | array | events, array. Required. |
| prices * | array | prices, array. Required. |
| fiatCurrency * | string | fiatCurrency, string, length 3 to 3. Required. |
| maxPriceLagHours * | number | maxPriceLagHours, number, from any to 8760. Required. |
{
"name": "crypto-tax_income-events-value",
"title": "Value staking and income events",
"description": "Value staking, mining, airdrop and interest receipts in fiat using caller-supplied prices within a max lag window. Docs: https://www.brainiac.software/api/crypto-tax/income-events-value Keywords: when computing crypto tax or cost basis, events, prices, maxPriceLagHours, fiatCurrency, totalsByKind, missingPrices, Value staking and income events, income events value.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"events",
"prices",
"maxPriceLagHours",
"fiatCurrency"
],
"properties": {
"events": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"ts",
"asset",
"qty",
"kind"
],
"properties": {
"id": {
"type": "string",
"minLength": 1,
"description": "id, string, length 1 to any. Required."
},
"ts": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "ts, string, date-time. Required."
},
"qty": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"description": "qty, string. Required."
},
"kind": {
"enum": [
"staking",
"mining",
"airdrop",
"interest",
"other"
],
"type": "string",
"description": "kind, string, one of staking, mining, airdrop, interest, other. Required."
},
"asset": {
"type": "string",
"maxLength": 32,
"minLength": 1,
"description": "asset, string, length 1 to 32. Required."
}
},
"description": "item, object. Required."
},
"description": "events, array. Required."
},
"prices": {
"type": "array",
"items": {
"type": "object",
"required": [
"asset",
"ts",
"price"
],
"properties": {
"ts": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "ts, string, date-time. Required."
},
"asset": {
"type": "string",
"maxLength": 32,
"minLength": 1,
"description": "asset, string, length 1 to 32. Required."
},
"price": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "price, integer, from 0 to 9007199254740991. Required."
}
},
"description": "item, object. Required."
},
"description": "prices, array. Required."
},
"fiatCurrency": {
"type": "string",
"maxLength": 3,
"minLength": 3,
"description": "fiatCurrency, string, length 3 to 3. Required."
},
"maxPriceLagHours": {
"type": "number",
"maximum": 8760,
"description": "maxPriceLagHours, number, from any to 8760. Required.",
"exclusiveMinimum": 0
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"events": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "id. String."
},
"kind": {
"type": "string",
"description": "kind. String."
},
"asset": {
"type": "string",
"description": "asset. String."
},
"value": {
"type": "number",
"description": "value. Number."
},
"priceTs": {
"type": "string",
"description": "priceTs. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "events. Array."
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"fiatCurrency": {
"type": "string",
"description": "fiatCurrency. String."
},
"totalsByKind": {
"type": "object",
"properties": {
"staking": {
"type": "number",
"description": "staking. Number."
}
},
"description": "totalsByKind. Object.",
"additionalProperties": {}
},
"missingPrices": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "missingPrices. Array."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Value staking and income events",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Pair outgoing and incoming transfers between the caller's own wallets by txHash or amount/time so they are not treated as disposals. Docs: https://www.brainiac.software/api/crypto-tax/transfer-match Keywords: when computing crypto tax or cost basis, ledger, windowMinutes, maxFeeRatio, pairs, unmatchedOut, unmatchedIn, warnings, Match internal wallet transfers, transfer match.
| Parameter | Type | Description |
|---|---|---|
| ledger * | array | ledger, array. Required. |
| maxFeeRatio | number | maxFeeRatio, number, from 0 to 1. Required. |
| windowMinutes | number | windowMinutes, number, from any to 43200. Required. |
{
"name": "crypto-tax_transfer-match",
"title": "Match internal wallet transfers",
"description": "Pair outgoing and incoming transfers between the caller's own wallets by txHash or amount/time so they are not treated as disposals. Docs: https://www.brainiac.software/api/crypto-tax/transfer-match Keywords: when computing crypto tax or cost basis, ledger, windowMinutes, maxFeeRatio, pairs, unmatchedOut, unmatchedIn, warnings, Match internal wallet transfers, transfer match.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"ledger"
],
"properties": {
"ledger": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"ts",
"type",
"asset",
"qty",
"fiatValue",
"wallet"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "id, string, length 1 to 128. Required."
},
"ts": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "ts, string, date-time. Required."
},
"qty": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"description": "qty, string. Required."
},
"type": {
"enum": [
"buy",
"sell",
"transfer_in",
"transfer_out",
"income",
"fee",
"trade"
],
"type": "string",
"description": "type, string, one of buy, sell, transfer_in, transfer_out, income, fee. Required."
},
"asset": {
"type": "string",
"maxLength": 32,
"minLength": 1,
"description": "asset, string, length 1 to 32. Required."
},
"txHash": {
"anyOf": [
{
"type": "string",
"maxLength": 128,
"minLength": 1
},
{
"type": "null"
}
],
"description": "txHash, value. Optional."
},
"wallet": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "wallet, string, length 1 to 128. Required."
},
"feeFiat": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0,
"description": "feeFiat, integer, from 0 to 9007199254740991. Required."
},
"fiatValue": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "fiatValue, integer, from 0 to 9007199254740991. Required."
},
"counterQty": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
{
"type": "null"
}
],
"description": "counterQty, value. Optional."
},
"counterAsset": {
"anyOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 1
},
{
"type": "null"
}
],
"description": "counterAsset, value. Optional."
}
},
"description": "item, object. Required."
},
"description": "ledger, array. Required."
},
"maxFeeRatio": {
"type": "number",
"default": 0.02,
"maximum": 1,
"minimum": 0,
"description": "maxFeeRatio, number, from 0 to 1. Required."
},
"windowMinutes": {
"type": "number",
"default": 120,
"maximum": 43200,
"description": "windowMinutes, number, from any to 43200. Required.",
"exclusiveMinimum": 0
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"pairs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"fee": {
"type": "string",
"description": "fee. String."
},
"inId": {
"type": "string",
"description": "inId. String."
},
"asset": {
"type": "string",
"description": "asset. String."
},
"outId": {
"type": "string",
"description": "outId. String."
},
"matchedBy": {
"type": "string",
"description": "matchedBy. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "pairs. Array."
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"warnings": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "warnings. Array."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"unmatchedIn": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "unmatchedIn. Array."
},
"unmatchedOut": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "unmatchedOut. Array."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Match internal wallet transfers",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Assign network/gas fees to acquisition basis, disposal proceeds, expense or fee-asset disposal per caller policy. Docs: https://www.brainiac.software/api/crypto-tax/network-fee-allocate Keywords: when computing crypto tax or cost basis, fees, policy, adjustments, feeAssetDisposals, Allocate network and gas fees, network fee allocate, Crypto Tax Computation.
| Parameter | Type | Description |
|---|---|---|
| fees * | array | fees, array. Required. |
| policy * | object | policy, object. Required. |
{
"name": "crypto-tax_network-fee-allocate",
"title": "Allocate network and gas fees",
"description": "Assign network/gas fees to acquisition basis, disposal proceeds, expense or fee-asset disposal per caller policy. Docs: https://www.brainiac.software/api/crypto-tax/network-fee-allocate Keywords: when computing crypto tax or cost basis, fees, policy, adjustments, feeAssetDisposals, Allocate network and gas fees, network fee allocate, Crypto Tax Computation.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"fees",
"policy"
],
"properties": {
"fees": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"relatedId",
"context",
"asset",
"qty",
"fiatValue"
],
"properties": {
"id": {
"type": "string",
"minLength": 1,
"description": "id, string, length 1 to any. Required."
},
"qty": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"description": "qty, string. Required."
},
"asset": {
"type": "string",
"maxLength": 32,
"minLength": 1,
"description": "asset, string, length 1 to 32. Required."
},
"context": {
"enum": [
"disposal",
"acquisition",
"transfer",
"failed_tx"
],
"type": "string",
"description": "context, string, one of disposal, acquisition, transfer, failed_tx. Required."
},
"fiatValue": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "fiatValue, integer, from 0 to 9007199254740991. Required."
},
"relatedId": {
"type": "string",
"minLength": 1,
"description": "relatedId, string, length 1 to any. Required."
}
},
"description": "item, object. Required."
},
"description": "fees, array. Required."
},
"policy": {
"type": "object",
"required": [
"transfer",
"failed_tx"
],
"properties": {
"disposal": {
"enum": [
"deduct_from_proceeds"
],
"type": "string",
"default": "deduct_from_proceeds",
"description": "disposal, string, one of deduct_from_proceeds. Required."
},
"transfer": {
"enum": [
"add_to_basis",
"disposal_of_fee_asset",
"expense"
],
"type": "string",
"description": "transfer, string, one of add_to_basis, disposal_of_fee_asset, expense. Required."
},
"failed_tx": {
"enum": [
"expense",
"ignore"
],
"type": "string",
"description": "failed tx, string, one of expense, ignore. Required."
},
"acquisition": {
"enum": [
"add_to_basis"
],
"type": "string",
"default": "add_to_basis",
"description": "acquisition, string, one of add_to_basis. Required."
}
},
"description": "policy, object. Required."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"adjustments": {
"type": "array",
"items": {
"type": "object",
"properties": {
"feeId": {
"type": "string",
"description": "feeId. String."
},
"action": {
"type": "string",
"description": "action. String."
},
"amount": {
"type": "number",
"description": "amount. Number."
},
"target": {
"type": "string",
"description": "target. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "adjustments. Array."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"feeAssetDisposals": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "feeAssetDisposals. Array."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Allocate network and gas fees",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}List open lots with unrealised losses at caller prices and an estimated tax saving, with US/UK rule flags. Docs: https://www.brainiac.software/api/crypto-tax/tax-loss-harvest Keywords: when computing crypto tax or cost basis, openLots, prices, marginalRate, jurisdiction, asOf, candidates, totalLoss, List tax-loss harvest candidates, tax loss harvest.
| Parameter | Type | Description |
|---|---|---|
| asOf * | string | acquired, string, date. Required. |
| prices * | object | prices, object. Required. |
| openLots * | array | openLots, array. Required. |
| jurisdiction * | string | jurisdiction, string, one of US, UK, other. Required. |
| marginalRate * | number | marginalRate, number, from 0 to 1. Required. |
{
"name": "crypto-tax_tax-loss-harvest",
"title": "List tax-loss harvest candidates",
"description": "List open lots with unrealised losses at caller prices and an estimated tax saving, with US/UK rule flags. Docs: https://www.brainiac.software/api/crypto-tax/tax-loss-harvest Keywords: when computing crypto tax or cost basis, openLots, prices, marginalRate, jurisdiction, asOf, candidates, totalLoss, List tax-loss harvest candidates, tax loss harvest.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"openLots",
"prices",
"marginalRate",
"jurisdiction",
"asOf"
],
"properties": {
"asOf": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "acquired, string, date. Required."
},
"prices": {
"type": "object",
"description": "prices, object. Required.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"openLots": {
"type": "array",
"items": {
"type": "object",
"required": [
"lotId",
"asset",
"qty",
"basis",
"acquired"
],
"properties": {
"qty": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"description": "qty, string. Required."
},
"asset": {
"type": "string",
"maxLength": 32,
"minLength": 1,
"description": "asset, string, length 1 to 32. Required."
},
"basis": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "basis, integer, from 0 to 9007199254740991. Required."
},
"lotId": {
"type": "string",
"minLength": 1,
"description": "lotId, string, length 1 to any. Required."
},
"acquired": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "acquired, string, date. Required."
}
},
"description": "item, object. Required."
},
"description": "openLots, array. Required."
},
"jurisdiction": {
"enum": [
"US",
"UK",
"other"
],
"type": "string",
"description": "jurisdiction, string, one of US, UK, other. Required."
},
"marginalRate": {
"type": "number",
"maximum": 1,
"minimum": 0,
"description": "marginalRate, number, from 0 to 1. Required."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"asOf": {
"type": "string",
"description": "asOf. String."
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"totalLoss": {
"type": "number",
"description": "totalLoss. Number."
},
"candidates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"qty": {
"type": "string",
"description": "qty. String."
},
"asset": {
"type": "string",
"description": "asset. String."
},
"basis": {
"type": "number",
"description": "basis. Number."
},
"flags": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "flags. Array."
},
"lotId": {
"type": "string",
"description": "lotId. String."
},
"value": {
"type": "number",
"description": "value. Number."
},
"unrealisedLoss": {
"type": "number",
"description": "unrealisedLoss. Number."
},
"estimatedTaxSaving": {
"type": "number",
"description": "estimatedTaxSaving. Number."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "candidates. Array."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "List tax-loss harvest candidates",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Compute realised P/L for linear perpetuals/futures and options including fees and funding from caller trade inputs. Docs: https://www.brainiac.software/api/crypto-tax/derivatives-pnl Keywords: when computing crypto tax or cost basis, trades, total, Derivatives realised P/L, derivatives pnl, Crypto Tax Computation, crypto tax, trades.id.
| Parameter | Type | Description |
|---|---|---|
| trades * | array | trades, array. Required. |
{
"name": "crypto-tax_derivatives-pnl",
"title": "Derivatives realised P/L",
"description": "Compute realised P/L for linear perpetuals/futures and options including fees and funding from caller trade inputs. Docs: https://www.brainiac.software/api/crypto-tax/derivatives-pnl Keywords: when computing crypto tax or cost basis, trades, total, Derivatives realised P/L, derivatives pnl, Crypto Tax Computation, crypto tax, trades.id.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"trades"
],
"properties": {
"trades": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"instrument",
"kind",
"side",
"qty",
"entryPrice",
"exitPrice"
],
"properties": {
"id": {
"type": "string",
"minLength": 1,
"description": "id, string, length 1 to any. Required."
},
"qty": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"description": "qty, string. Required."
},
"fees": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0,
"description": "fees, integer, from 0 to 9007199254740991. Required."
},
"kind": {
"enum": [
"linear_future",
"option"
],
"type": "string",
"description": "kind, string, one of linear_future, option. Required."
},
"side": {
"enum": [
"long",
"short"
],
"type": "string",
"description": "side, string, one of long, short. Required."
},
"premium": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "premium, integer, from -9007199254740991 to 9007199254740991. Optional."
},
"exitPrice": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "entryPrice, integer, from -9007199254740991 to 9007199254740991. Required."
},
"entryPrice": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "entryPrice, integer, from -9007199254740991 to 9007199254740991. Required."
},
"instrument": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"description": "instrument, string, length 1 to 64. Required."
},
"fundingPayments": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "entryPrice, integer, from -9007199254740991 to 9007199254740991. Required."
},
"default": [],
"description": "fundingPayments, array. Required."
},
"settlementValue": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "settlementValue, integer, from -9007199254740991 to 9007199254740991. Optional."
}
},
"description": "item, object. Required."
},
"description": "trades, array. Required."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"total": {
"type": "number",
"description": "total. Number."
},
"trades": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "id. String."
},
"fees": {
"type": "number",
"description": "fees. Number."
},
"netPnl": {
"type": "number",
"description": "netPnl. Number."
},
"funding": {
"type": "number",
"description": "funding. Number."
},
"grossPnl": {
"type": "number",
"description": "grossPnl. Number."
},
"instrument": {
"type": "string",
"description": "instrument. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "trades. Array."
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Derivatives realised P/L",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Replay a ledger to a date with a cost-basis method and report holdings, basis, unrealised gain, dust and unpriced assets at caller prices. Docs: https://www.brainiac.software/api/crypto-tax/unrealized-snapshot Keywords: when computing crypto tax or cost basis, ledger, asOf, prices, method, feePolicy, dustThresholdFiat, fiatCurrency, holdings, dust, unpriced, openLots, Unrealised holdings snapshot, unrealized snapshot.
| Parameter | Type | Description |
|---|---|---|
| asOf * | string | ts, string, date-time. Required. |
| ledger * | array | ledger, array. Required. |
| method | string | method, string, one of FIFO, LIFO, HIFO, AVERAGE. Required. |
| prices * | object | prices, object. Required. |
| feePolicy | string | feePolicy, string, one of add_to_basis_and_deduct_from_proceeds, ignore. Required. |
| fiatCurrency | string | fiatCurrency, string, length 3 to 3. Required. |
| dustThresholdFiat | integer | dustThresholdFiat, integer, from 0 to 9007199254740991. Required. |
Convert a caller CSV export into the shared ledger schema using a caller column mapping, or return a mapping template from headers. Docs: https://www.brainiac.software/api/crypto-tax/exchange-csv-normalize Keywords: when computing crypto tax or cost basis, csv, mapping, wallet, fiatCurrency, ledger, rejectedRows, mappingTemplate, Normalize exchange CSV to ledger, exchange csv normalize.
| Parameter | Type | Description |
|---|---|---|
| csv * | string | csv, string, length 0 to 10485760. Required. |
| wallet | string | wallet, string, length 1 to 128. Required. |
| mapping | object | mapping, object. Optional. |
| fiatCurrency | string | fiatCurrency, string, length 3 to 3. Required. |
{
"name": "crypto-tax_exchange-csv-normalize",
"title": "Normalize exchange CSV to ledger",
"description": "Convert a caller CSV export into the shared ledger schema using a caller column mapping, or return a mapping template from headers. Docs: https://www.brainiac.software/api/crypto-tax/exchange-csv-normalize Keywords: when computing crypto tax or cost basis, csv, mapping, wallet, fiatCurrency, ledger, rejectedRows, mappingTemplate, Normalize exchange CSV to ledger, exchange csv normalize.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"csv"
],
"properties": {
"csv": {
"type": "string",
"maxLength": 10485760,
"description": "csv, string, length 0 to 10485760. Required."
},
"wallet": {
"type": "string",
"default": "exchange",
"maxLength": 128,
"minLength": 1,
"description": "wallet, string, length 1 to 128. Required."
},
"mapping": {
"type": "object",
"required": [
"ts",
"type",
"asset",
"qty",
"fiatValue"
],
"properties": {
"id": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "object",
"required": [
"column"
],
"properties": {
"scale": {
"type": "number",
"exclusiveMinimum": 0
},
"column": {
"type": "string",
"minLength": 1
},
"format": {
"type": "string",
"minLength": 1
},
"values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"timezone": {
"type": "string",
"minLength": 1
}
}
}
],
"description": "id, value. Optional."
},
"ts": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "object",
"required": [
"column"
],
"properties": {
"scale": {
"type": "number",
"exclusiveMinimum": 0
},
"column": {
"type": "string",
"minLength": 1
},
"format": {
"type": "string",
"minLength": 1
},
"values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"timezone": {
"type": "string",
"minLength": 1
}
}
}
],
"description": "ts, value. Required."
},
"qty": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "object",
"required": [
"column"
],
"properties": {
"scale": {
"type": "number",
"exclusiveMinimum": 0
},
"column": {
"type": "string",
"minLength": 1
},
"format": {
"type": "string",
"minLength": 1
},
"values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"timezone": {
"type": "string",
"minLength": 1
}
}
}
],
"description": "ts, value. Required."
},
"type": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "object",
"required": [
"column"
],
"properties": {
"scale": {
"type": "number",
"exclusiveMinimum": 0
},
"column": {
"type": "string",
"minLength": 1
},
"format": {
"type": "string",
"minLength": 1
},
"values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"timezone": {
"type": "string",
"minLength": 1
}
}
}
],
"description": "ts, value. Required."
},
"asset": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "object",
"required": [
"column"
],
"properties": {
"scale": {
"type": "number",
"exclusiveMinimum": 0
},
"column": {
"type": "string",
"minLength": 1
},
"format": {
"type": "string",
"minLength": 1
},
"values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"timezone": {
"type": "string",
"minLength": 1
}
}
}
],
"description": "ts, value. Required."
},
"txHash": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "object",
"required": [
"column"
],
"properties": {
"scale": {
"type": "number",
"exclusiveMinimum": 0
},
"column": {
"type": "string",
"minLength": 1
},
"format": {
"type": "string",
"minLength": 1
},
"values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"timezone": {
"type": "string",
"minLength": 1
}
}
}
],
"description": "txHash, value. Optional."
},
"wallet": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "object",
"required": [
"column"
],
"properties": {
"scale": {
"type": "number",
"exclusiveMinimum": 0
},
"column": {
"type": "string",
"minLength": 1
},
"format": {
"type": "string",
"minLength": 1
},
"values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"timezone": {
"type": "string",
"minLength": 1
}
}
}
],
"description": "wallet, value. Optional."
},
"feeFiat": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "object",
"required": [
"column"
],
"properties": {
"scale": {
"type": "number",
"exclusiveMinimum": 0
},
"column": {
"type": "string",
"minLength": 1
},
"format": {
"type": "string",
"minLength": 1
},
"values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"timezone": {
"type": "string",
"minLength": 1
}
}
}
],
"description": "feeFiat, value. Optional."
},
"fiatValue": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "object",
"required": [
"column"
],
"properties": {
"scale": {
"type": "number",
"exclusiveMinimum": 0
},
"column": {
"type": "string",
"minLength": 1
},
"format": {
"type": "string",
"minLength": 1
},
"values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"timezone": {
"type": "string",
"minLength": 1
}
}
}
],
"description": "ts, value. Required."
},
"counterQty": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "object",
"required": [
"column"
],
"properties": {
"scale": {
"type": "number",
"exclusiveMinimum": 0
},
"column": {
"type": "string",
"minLength": 1
},
"format": {
"type": "string",
"minLength": 1
},
"values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"timezone": {
"type": "string",
"minLength": 1
}
}
}
],
"description": "counterQty, value. Optional."
},
"counterAsset": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "object",
"required": [
"column"
],
"properties": {
"scale": {
"type": "number",
"exclusiveMinimum": 0
},
"column": {
"type": "string",
"minLength": 1
},
"format": {
"type": "string",
"minLength": 1
},
"values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"timezone": {
"type": "string",
"minLength": 1
}
}
}
],
"description": "counterAsset, value. Optional."
}
},
"description": "mapping, object. Optional."
},
"fiatCurrency": {
"type": "string",
"default": "USD",
"maxLength": 3,
"minLength": 3,
"description": "fiatCurrency, string, length 3 to 3. Required."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"ledger": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "id. String."
},
"ts": {
"type": "string",
"description": "ts. String."
},
"qty": {
"type": "string",
"description": "qty. String."
},
"type": {
"type": "string",
"description": "type. String."
},
"asset": {
"type": "string",
"description": "asset. String."
},
"txHash": {
"type": "null",
"description": "txHash. Null."
},
"wallet": {
"type": "string",
"description": "wallet. String."
},
"feeFiat": {
"type": "number",
"description": "feeFiat. Number."
},
"fiatValue": {
"type": "number",
"description": "fiatValue. Number."
},
"counterQty": {
"type": "null",
"description": "counterQty. Null."
},
"counterAsset": {
"type": "null",
"description": "counterAsset. Null."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "ledger. Array."
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
},
"fiatCurrency": {
"type": "string",
"description": "fiatCurrency. String."
},
"rejectedRows": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "rejectedRows. Array."
},
"mappingTemplate": {
"type": "null",
"description": "mappingTemplate. Null."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Normalize exchange CSV to ledger",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Replay balances to find disposal-without-acquisition, negative balance, unmatched transfer-in and unpriced events before gains are computed. Docs: https://www.brainiac.software/api/crypto-tax/missing-basis-detect Keywords: when computing crypto tax or cost basis, ledger, prices, issues, Detect missing basis problems, missing basis detect, Crypto Tax Computation, crypto tax.
| Parameter | Type | Description |
|---|---|---|
| ledger * | array | ledger, array. Required. |
| prices | object | prices, object. Optional. |
{
"name": "crypto-tax_missing-basis-detect",
"title": "Detect missing basis problems",
"description": "Replay balances to find disposal-without-acquisition, negative balance, unmatched transfer-in and unpriced events before gains are computed. Docs: https://www.brainiac.software/api/crypto-tax/missing-basis-detect Keywords: when computing crypto tax or cost basis, ledger, prices, issues, Detect missing basis problems, missing basis detect, Crypto Tax Computation, crypto tax.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"ledger"
],
"properties": {
"ledger": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"ts",
"type",
"asset",
"qty",
"fiatValue",
"wallet"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "id, string, length 1 to 128. Required."
},
"ts": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "ts, string, date-time. Required."
},
"qty": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"description": "qty, string. Required."
},
"type": {
"enum": [
"buy",
"sell",
"transfer_in",
"transfer_out",
"income",
"fee",
"trade"
],
"type": "string",
"description": "type, string, one of buy, sell, transfer_in, transfer_out, income, fee. Required."
},
"asset": {
"type": "string",
"maxLength": 32,
"minLength": 1,
"description": "asset, string, length 1 to 32. Required."
},
"txHash": {
"anyOf": [
{
"type": "string",
"maxLength": 128,
"minLength": 1
},
{
"type": "null"
}
],
"description": "txHash, value. Optional."
},
"wallet": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "wallet, string, length 1 to 128. Required."
},
"feeFiat": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0,
"description": "feeFiat, integer, from 0 to 9007199254740991. Required."
},
"fiatValue": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "fiatValue, integer, from 0 to 9007199254740991. Required."
},
"counterQty": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
{
"type": "null"
}
],
"description": "counterQty, value. Optional."
},
"counterAsset": {
"anyOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 1
},
{
"type": "null"
}
],
"description": "counterAsset, value. Optional."
}
},
"description": "item, object. Required."
},
"description": "ledger, array. Required."
},
"prices": {
"type": "object",
"description": "prices, object. Optional.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"ok": {
"type": "boolean",
"description": "ok. Boolean."
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"description": "kind. String."
},
"asset": {
"type": "string",
"description": "asset. String."
},
"firstTxId": {
"type": "string",
"description": "firstTxId. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "issues. Array."
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Detect missing basis problems",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Tool calls wrap the existing POST APIs and stay pay-per-call. initialize and tools/list are free. An unpaid tool call returns the x402 payment terms in the tool result and does not run. Retry with the payment in params._meta["x402/payment"], or send payment-signature. Payment settles only after a successful result.
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
Too large to show here.
{
"name": "crypto-tax_unrealized-snapshot",
"title": "Unrealised holdings snapshot",
"description": "Replay a ledger to a date with a cost-basis method and report holdings, basis, unrealised gain, dust and unpriced assets at caller prices. Docs: https://www.brainiac.software/api/crypto-tax/unrealized-snapshot Keywords: when computing crypto tax or cost basis, ledger, asOf, prices, method, feePolicy, dustThresholdFiat, fiatCurrency, holdings, dust, unpriced, openLots, Unrealised holdings snapshot, unrealized snapshot.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"ledger",
"asOf",
"prices"
],
"properties": {
"asOf": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "ts, string, date-time. Required."
},
"ledger": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"ts",
"type",
"asset",
"qty",
"fiatValue",
"wallet"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "id, string, length 1 to 128. Required."
},
"ts": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
"description": "ts, string, date-time. Required."
},
"qty": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"description": "qty, string. Required."
},
"type": {
"enum": [
"buy",
"sell",
"transfer_in",
"transfer_out",
"income",
"fee",
"trade"
],
"type": "string",
"description": "type, string, one of buy, sell, transfer_in, transfer_out, income, fee. Required."
},
"asset": {
"type": "string",
"maxLength": 32,
"minLength": 1,
"description": "asset, string, length 1 to 32. Required."
},
"txHash": {
"anyOf": [
{
"type": "string",
"maxLength": 128,
"minLength": 1
},
{
"type": "null"
}
],
"description": "txHash, value. Optional."
},
"wallet": {
"type": "string",
"maxLength": 128,
"minLength": 1,
"description": "wallet, string, length 1 to 128. Required."
},
"feeFiat": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0,
"description": "feeFiat, integer, from 0 to 9007199254740991. Required."
},
"fiatValue": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "fiatValue, integer, from 0 to 9007199254740991. Required."
},
"counterQty": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
{
"type": "null"
}
],
"description": "counterQty, value. Optional."
},
"counterAsset": {
"anyOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 1
},
{
"type": "null"
}
],
"description": "counterAsset, value. Optional."
}
},
"description": "item, object. Required."
},
"description": "ledger, array. Required."
},
"method": {
"enum": [
"FIFO",
"LIFO",
"HIFO",
"AVERAGE"
],
"type": "string",
"default": "FIFO",
"description": "method, string, one of FIFO, LIFO, HIFO, AVERAGE. Required."
},
"prices": {
"type": "object",
"description": "prices, object. Required.",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"feePolicy": {
"enum": [
"add_to_basis_and_deduct_from_proceeds",
"ignore"
],
"type": "string",
"default": "add_to_basis_and_deduct_from_proceeds",
"description": "feePolicy, string, one of add_to_basis_and_deduct_from_proceeds, ignore. Required."
},
"fiatCurrency": {
"type": "string",
"default": "USD",
"maxLength": 3,
"minLength": 3,
"description": "fiatCurrency, string, length 3 to 3. Required."
},
"dustThresholdFiat": {
"type": "integer",
"default": 100,
"maximum": 9007199254740991,
"minimum": 0,
"description": "dustThresholdFiat, integer, from 0 to 9007199254740991. Required."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"asOf": {
"type": "string",
"description": "asOf. String."
},
"dust": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "dust. Array."
},
"method": {
"type": "string",
"description": "method. String."
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "url. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"retrievedAt": {
"type": "string",
"description": "retrievedAt. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "sources. Array."
},
"holdings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"qty": {
"type": "string",
"description": "qty. String."
},
"asset": {
"type": "string",
"description": "asset. String."
},
"basis": {
"type": "number",
"description": "basis. Number."
},
"value": {
"type": "number",
"description": "value. Number."
},
"unrealised": {
"type": "number",
"description": "unrealised. Number."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "holdings. Array."
},
"openLots": {
"type": "array",
"items": {
"type": "object",
"properties": {
"qty": {
"type": "string",
"description": "qty. String."
},
"asset": {
"type": "string",
"description": "asset. String."
},
"basis": {
"type": "number",
"description": "basis. Number."
},
"lotId": {
"type": "string",
"description": "lotId. String."
},
"wallet": {
"type": "string",
"description": "wallet. String."
},
"acquiredTs": {
"type": "string",
"description": "acquiredTs. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "openLots. Array."
},
"unpriced": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "unpriced. Array."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Unrealised holdings snapshot",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}