Server definition
- Hash
- sha256:eb771060db274b201b25835259a8b846c24da790711df7657c9bee6acb80dccc
- What it is
- What a remote MCP server returned when asked what it offers: 16 tools
The blob, as servednamed by its sha256
{
"instructions": "tools/list shows the tools registered for this server. The catalog server registers list_apis, search_endpoints, describe_endpoint, call_endpoint, and contact_us; every MCP server registers contact_us for support. Discovery tools return catalog information (APIs, endpoints, schemas, prices). Paid tools and call_endpoint wrap the existing POST APIs. Use an account API key when available, or pay as you go when a call returns payment terms in the tool result. Retry with the payment in params._meta[\"x402/payment\"], or send payment-signature. Pay-as-you-go settlement happens only after a successful result. No account or API key needed for pay-as-you-go calls; sign in for a monthly free quota.",
"tools": [
{
"description": "How to contact BRAINIAC.software support: email, page URL, what to include in a message, and what not to send. Free. Does not send email.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {},
"type": "object"
},
"name": "contact_us",
"outputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"doNotSend": {
"description": "What not to email.",
"items": {
"type": "string"
},
"type": "array"
},
"email": {
"description": "Support email address.",
"type": "string"
},
"include": {
"description": "What to include when writing support.",
"items": {
"type": "string"
},
"type": "array"
},
"page": {
"description": "Contact Us page URL.",
"type": "string"
},
"topics": {
"description": "Common support topics.",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"email",
"page",
"include",
"doNotSend",
"topics"
],
"type": "object"
}
},
{
"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": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"carriedForwardLosses": {
"default": 0,
"description": "carriedForwardLosses, integer, from 0 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"entity": {
"description": "entity, string, one of individual, trust, super_fund, company. Required.",
"enum": [
"individual",
"trust",
"super_fund",
"company"
],
"type": "string"
},
"events": {
"description": "events, array. Required.",
"items": {
"description": "item, object. Required.",
"properties": {
"acquired": {
"description": "acquired, string, date. Required.",
"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])))$",
"type": "string"
},
"capitalProceeds": {
"description": "capitalProceeds, integer, from 0 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"costBase": {
"description": "capitalProceeds, integer, from 0 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"eventDate": {
"description": "acquired, string, date. Required.",
"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])))$",
"type": "string"
},
"id": {
"description": "id, string, length 1 to any. Required.",
"minLength": 1,
"type": "string"
}
},
"required": [
"id",
"acquired",
"eventDate",
"capitalProceeds",
"costBase"
],
"type": "object"
},
"type": "array"
},
"resident": {
"description": "resident, boolean. Required.",
"type": "boolean"
}
},
"required": [
"entity",
"resident",
"events"
],
"type": "object"
},
"name": "crypto-tax_australia-cgt-discount",
"outputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {},
"properties": {
"discountRate": {
"description": "discountRate. Number.",
"type": "number"
},
"events": {
"description": "events. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"discountEligible": {
"description": "discountEligible. Boolean.",
"type": "boolean"
},
"gain": {
"description": "gain. Number.",
"type": "number"
},
"id": {
"description": "id. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"grossGains": {
"description": "grossGains. Number.",
"type": "number"
},
"limitations": {
"description": "limitations. Array.",
"items": {
"description": "item. String.",
"type": "string"
},
"type": "array"
},
"lossesApplied": {
"description": "lossesApplied. Number.",
"type": "number"
},
"netCapitalGain": {
"description": "netCapitalGain. Number.",
"type": "number"
},
"sources": {
"description": "sources. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"retrievedAt": {
"description": "retrievedAt. String.",
"type": "string"
},
"source": {
"description": "source. String.",
"type": "string"
},
"status": {
"description": "status. String.",
"type": "string"
},
"url": {
"description": "url. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
}
},
{
"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": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"feePolicy": {
"default": "add_to_basis_and_deduct_from_proceeds",
"description": "feePolicy, string, one of add_to_basis_and_deduct_from_proceeds, ignore. Required.",
"enum": [
"add_to_basis_and_deduct_from_proceeds",
"ignore"
],
"type": "string"
},
"fiatCurrency": {
"default": "CAD",
"description": "fiatCurrency, string, length 3 to 3. Required.",
"maxLength": 3,
"minLength": 3,
"type": "string"
},
"ledger": {
"description": "ledger, array. Required.",
"items": {
"description": "item, object. Required.",
"properties": {
"asset": {
"description": "asset, string, length 1 to 32. Required.",
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"counterAsset": {
"anyOf": [
{
"maxLength": 32,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"description": "counterAsset, value. Optional."
},
"counterQty": {
"anyOf": [
{
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"type": "string"
},
{
"type": "null"
}
],
"description": "counterQty, value. Optional."
},
"feeFiat": {
"default": 0,
"description": "feeFiat, integer, from 0 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"fiatValue": {
"description": "fiatValue, integer, from 0 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"id": {
"description": "id, string, length 1 to 128. Required.",
"maxLength": 128,
"minLength": 1,
"type": "string"
},
"qty": {
"description": "qty, string. Required.",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"type": "string"
},
"ts": {
"description": "ts, string, date-time. Required.",
"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)))$",
"type": "string"
},
"txHash": {
"anyOf": [
{
"maxLength": 128,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"description": "txHash, value. Optional."
},
"type": {
"description": "type, string, one of buy, sell, transfer_in, transfer_out, income, fee. Required.",
"enum": [
"buy",
"sell",
"transfer_in",
"transfer_out",
"income",
"fee",
"trade"
],
"type": "string"
},
"wallet": {
"description": "wallet, string, length 1 to 128. Required.",
"maxLength": 128,
"minLength": 1,
"type": "string"
}
},
"required": [
"id",
"ts",
"type",
"asset",
"qty",
"fiatValue",
"wallet"
],
"type": "object"
},
"type": "array"
},
"treatment": {
"const": "capital",
"default": "capital",
"description": "treatment, string. Required.",
"type": "string"
}
},
"required": [
"ledger"
],
"type": "object"
},
"name": "crypto-tax_canada-acb",
"outputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {},
"properties": {
"acb": {
"additionalProperties": {},
"description": "acb. Object.",
"properties": {
"BTC": {
"additionalProperties": {},
"description": "BTC. Object.",
"properties": {
"acb": {
"description": "acb. Number.",
"type": "number"
},
"qty": {
"description": "qty. String.",
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
},
"disposals": {
"description": "disposals. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"acbUsed": {
"description": "acbUsed. Number.",
"type": "number"
},
"gain": {
"description": "gain. Number.",
"type": "number"
},
"id": {
"description": "id. String.",
"type": "string"
},
"proceeds": {
"description": "proceeds. Number.",
"type": "number"
},
"superficialLossDenied": {
"description": "superficialLossDenied. Number.",
"type": "number"
}
},
"type": "object"
},
"type": "array"
},
"limitations": {
"description": "limitations. Array.",
"items": {
"description": "item. String.",
"type": "string"
},
"type": "array"
},
"sources": {
"description": "sources. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"retrievedAt": {
"description": "retrievedAt. String.",
"type": "string"
},
"source": {
"description": "source. String.",
"type": "string"
},
"status": {
"description": "status. String.",
"type": "string"
},
"url": {
"description": "url. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"treatment": {
"description": "treatment. String.",
"type": "string"
},
"warnings": {
"description": "warnings. Array.",
"items": {
"description": "Item. String.",
"type": "string"
},
"type": "array"
}
},
"type": "object"
}
},
{
"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": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"feePolicy": {
"default": "add_to_basis_and_deduct_from_proceeds",
"description": "feePolicy, string, one of add_to_basis_and_deduct_from_proceeds, ignore. Required.",
"enum": [
"add_to_basis_and_deduct_from_proceeds",
"ignore"
],
"type": "string"
},
"fiatCurrency": {
"description": "fiatCurrency, string, length 3 to 3. Required.",
"maxLength": 3,
"minLength": 3,
"type": "string"
},
"ledger": {
"description": "ledger, array. Required.",
"items": {
"description": "item, object. Required.",
"properties": {
"asset": {
"description": "asset, string, length 1 to 32. Required.",
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"counterAsset": {
"anyOf": [
{
"maxLength": 32,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"description": "counterAsset, value. Optional."
},
"counterQty": {
"anyOf": [
{
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"type": "string"
},
{
"type": "null"
}
],
"description": "counterQty, value. Optional."
},
"feeFiat": {
"default": 0,
"description": "feeFiat, integer, from 0 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"fiatValue": {
"description": "fiatValue, integer, from 0 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"id": {
"description": "id, string, length 1 to 128. Required.",
"maxLength": 128,
"minLength": 1,
"type": "string"
},
"qty": {
"description": "qty, string. Required.",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"type": "string"
},
"ts": {
"description": "ts, string, date-time. Required.",
"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)))$",
"type": "string"
},
"txHash": {
"anyOf": [
{
"maxLength": 128,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"description": "txHash, value. Optional."
},
"type": {
"description": "type, string, one of buy, sell, transfer_in, transfer_out, income, fee. Required.",
"enum": [
"buy",
"sell",
"transfer_in",
"transfer_out",
"income",
"fee",
"trade"
],
"type": "string"
},
"wallet": {
"description": "wallet, string, length 1 to 128. Required.",
"maxLength": 128,
"minLength": 1,
"type": "string"
}
},
"required": [
"id",
"ts",
"type",
"asset",
"qty",
"fiatValue",
"wallet"
],
"type": "object"
},
"type": "array"
},
"method": {
"description": "method, string, one of FIFO, LIFO, HIFO, AVERAGE. Required.",
"enum": [
"FIFO",
"LIFO",
"HIFO",
"AVERAGE"
],
"type": "string"
}
},
"required": [
"fiatCurrency",
"method",
"ledger"
],
"type": "object"
},
"name": "crypto-tax_cost-basis-lots",
"outputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {},
"properties": {
"disposals": {
"description": "disposals. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"asset": {
"description": "asset. String.",
"type": "string"
},
"basis": {
"description": "basis. Number.",
"type": "number"
},
"gain": {
"description": "gain. Number.",
"type": "number"
},
"id": {
"description": "id. String.",
"type": "string"
},
"matches": {
"description": "matches. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"acquiredTs": {
"description": "acquiredTs. String.",
"type": "string"
},
"basis": {
"description": "basis. Number.",
"type": "number"
},
"lotId": {
"description": "lotId. String.",
"type": "string"
},
"qty": {
"description": "qty. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"proceeds": {
"description": "proceeds. Number.",
"type": "number"
},
"qty": {
"description": "qty. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"fiatCurrency": {
"description": "fiatCurrency. String.",
"type": "string"
},
"limitations": {
"description": "limitations. Array.",
"items": {
"description": "item. String.",
"type": "string"
},
"type": "array"
},
"method": {
"description": "method. String.",
"type": "string"
},
"openLots": {
"description": "openLots. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"acquiredTs": {
"description": "acquiredTs. String.",
"type": "string"
},
"asset": {
"description": "asset. String.",
"type": "string"
},
"basis": {
"description": "basis. Number.",
"type": "number"
},
"lotId": {
"description": "lotId. String.",
"type": "string"
},
"qty": {
"description": "qty. String.",
"type": "string"
},
"wallet": {
"description": "wallet. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"sources": {
"description": "sources. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"retrievedAt": {
"description": "retrievedAt. String.",
"type": "string"
},
"source": {
"description": "source. String.",
"type": "string"
},
"status": {
"description": "status. String.",
"type": "string"
},
"url": {
"description": "url. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"warnings": {
"description": "warnings. Array.",
"items": {
"description": "Item. String.",
"type": "string"
},
"type": "array"
}
},
"type": "object"
}
},
{
"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": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"trades": {
"description": "trades, array. Required.",
"items": {
"description": "item, object. Required.",
"properties": {
"entryPrice": {
"description": "entryPrice, integer, from -9007199254740991 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"type": "integer"
},
"exitPrice": {
"description": "entryPrice, integer, from -9007199254740991 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"type": "integer"
},
"fees": {
"default": 0,
"description": "fees, integer, from 0 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"fundingPayments": {
"default": [],
"description": "fundingPayments, array. Required.",
"items": {
"description": "entryPrice, integer, from -9007199254740991 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"type": "integer"
},
"type": "array"
},
"id": {
"description": "id, string, length 1 to any. Required.",
"minLength": 1,
"type": "string"
},
"instrument": {
"description": "instrument, string, length 1 to 64. Required.",
"maxLength": 64,
"minLength": 1,
"type": "string"
},
"kind": {
"description": "kind, string, one of linear_future, option. Required.",
"enum": [
"linear_future",
"option"
],
"type": "string"
},
"premium": {
"description": "premium, integer, from -9007199254740991 to 9007199254740991. Optional.",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"type": "integer"
},
"qty": {
"description": "qty, string. Required.",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"type": "string"
},
"settlementValue": {
"description": "settlementValue, integer, from -9007199254740991 to 9007199254740991. Optional.",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"type": "integer"
},
"side": {
"description": "side, string, one of long, short. Required.",
"enum": [
"long",
"short"
],
"type": "string"
}
},
"required": [
"id",
"instrument",
"kind",
"side",
"qty",
"entryPrice",
"exitPrice"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"trades"
],
"type": "object"
},
"name": "crypto-tax_derivatives-pnl",
"outputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {},
"properties": {
"limitations": {
"description": "limitations. Array.",
"items": {
"description": "item. String.",
"type": "string"
},
"type": "array"
},
"sources": {
"description": "sources. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"retrievedAt": {
"description": "retrievedAt. String.",
"type": "string"
},
"source": {
"description": "source. String.",
"type": "string"
},
"status": {
"description": "status. String.",
"type": "string"
},
"url": {
"description": "url. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"total": {
"description": "total. Number.",
"type": "number"
},
"trades": {
"description": "trades. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"fees": {
"description": "fees. Number.",
"type": "number"
},
"funding": {
"description": "funding. Number.",
"type": "number"
},
"grossPnl": {
"description": "grossPnl. Number.",
"type": "number"
},
"id": {
"description": "id. String.",
"type": "string"
},
"instrument": {
"description": "instrument. String.",
"type": "string"
},
"netPnl": {
"description": "netPnl. Number.",
"type": "number"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
}
},
{
"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": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"csv": {
"description": "csv, string, length 0 to 10485760. Required.",
"maxLength": 10485760,
"type": "string"
},
"fiatCurrency": {
"default": "USD",
"description": "fiatCurrency, string, length 3 to 3. Required.",
"maxLength": 3,
"minLength": 3,
"type": "string"
},
"mapping": {
"description": "mapping, object. Optional.",
"properties": {
"asset": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"properties": {
"column": {
"minLength": 1,
"type": "string"
},
"format": {
"minLength": 1,
"type": "string"
},
"scale": {
"exclusiveMinimum": 0,
"type": "number"
},
"timezone": {
"minLength": 1,
"type": "string"
},
"values": {
"additionalProperties": {
"type": "string"
},
"propertyNames": {
"type": "string"
},
"type": "object"
}
},
"required": [
"column"
],
"type": "object"
}
],
"description": "ts, value. Required."
},
"counterAsset": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"properties": {
"column": {
"minLength": 1,
"type": "string"
},
"format": {
"minLength": 1,
"type": "string"
},
"scale": {
"exclusiveMinimum": 0,
"type": "number"
},
"timezone": {
"minLength": 1,
"type": "string"
},
"values": {
"additionalProperties": {
"type": "string"
},
"propertyNames": {
"type": "string"
},
"type": "object"
}
},
"required": [
"column"
],
"type": "object"
}
],
"description": "counterAsset, value. Optional."
},
"counterQty": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"properties": {
"column": {
"minLength": 1,
"type": "string"
},
"format": {
"minLength": 1,
"type": "string"
},
"scale": {
"exclusiveMinimum": 0,
"type": "number"
},
"timezone": {
"minLength": 1,
"type": "string"
},
"values": {
"additionalProperties": {
"type": "string"
},
"propertyNames": {
"type": "string"
},
"type": "object"
}
},
"required": [
"column"
],
"type": "object"
}
],
"description": "counterQty, value. Optional."
},
"feeFiat": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"properties": {
"column": {
"minLength": 1,
"type": "string"
},
"format": {
"minLength": 1,
"type": "string"
},
"scale": {
"exclusiveMinimum": 0,
"type": "number"
},
"timezone": {
"minLength": 1,
"type": "string"
},
"values": {
"additionalProperties": {
"type": "string"
},
"propertyNames": {
"type": "string"
},
"type": "object"
}
},
"required": [
"column"
],
"type": "object"
}
],
"description": "feeFiat, value. Optional."
},
"fiatValue": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"properties": {
"column": {
"minLength": 1,
"type": "string"
},
"format": {
"minLength": 1,
"type": "string"
},
"scale": {
"exclusiveMinimum": 0,
"type": "number"
},
"timezone": {
"minLength": 1,
"type": "string"
},
"values": {
"additionalProperties": {
"type": "string"
},
"propertyNames": {
"type": "string"
},
"type": "object"
}
},
"required": [
"column"
],
"type": "object"
}
],
"description": "ts, value. Required."
},
"id": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"properties": {
"column": {
"minLength": 1,
"type": "string"
},
"format": {
"minLength": 1,
"type": "string"
},
"scale": {
"exclusiveMinimum": 0,
"type": "number"
},
"timezone": {
"minLength": 1,
"type": "string"
},
"values": {
"additionalProperties": {
"type": "string"
},
"propertyNames": {
"type": "string"
},
"type": "object"
}
},
"required": [
"column"
],
"type": "object"
}
],
"description": "id, value. Optional."
},
"qty": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"properties": {
"column": {
"minLength": 1,
"type": "string"
},
"format": {
"minLength": 1,
"type": "string"
},
"scale": {
"exclusiveMinimum": 0,
"type": "number"
},
"timezone": {
"minLength": 1,
"type": "string"
},
"values": {
"additionalProperties": {
"type": "string"
},
"propertyNames": {
"type": "string"
},
"type": "object"
}
},
"required": [
"column"
],
"type": "object"
}
],
"description": "ts, value. Required."
},
"ts": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"properties": {
"column": {
"minLength": 1,
"type": "string"
},
"format": {
"minLength": 1,
"type": "string"
},
"scale": {
"exclusiveMinimum": 0,
"type": "number"
},
"timezone": {
"minLength": 1,
"type": "string"
},
"values": {
"additionalProperties": {
"type": "string"
},
"propertyNames": {
"type": "string"
},
"type": "object"
}
},
"required": [
"column"
],
"type": "object"
}
],
"description": "ts, value. Required."
},
"txHash": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"properties": {
"column": {
"minLength": 1,
"type": "string"
},
"format": {
"minLength": 1,
"type": "string"
},
"scale": {
"exclusiveMinimum": 0,
"type": "number"
},
"timezone": {
"minLength": 1,
"type": "string"
},
"values": {
"additionalProperties": {
"type": "string"
},
"propertyNames": {
"type": "string"
},
"type": "object"
}
},
"required": [
"column"
],
"type": "object"
}
],
"description": "txHash, value. Optional."
},
"type": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"properties": {
"column": {
"minLength": 1,
"type": "string"
},
"format": {
"minLength": 1,
"type": "string"
},
"scale": {
"exclusiveMinimum": 0,
"type": "number"
},
"timezone": {
"minLength": 1,
"type": "string"
},
"values": {
"additionalProperties": {
"type": "string"
},
"propertyNames": {
"type": "string"
},
"type": "object"
}
},
"required": [
"column"
],
"type": "object"
}
],
"description": "ts, value. Required."
},
"wallet": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"properties": {
"column": {
"minLength": 1,
"type": "string"
},
"format": {
"minLength": 1,
"type": "string"
},
"scale": {
"exclusiveMinimum": 0,
"type": "number"
},
"timezone": {
"minLength": 1,
"type": "string"
},
"values": {
"additionalProperties": {
"type": "string"
},
"propertyNames": {
"type": "string"
},
"type": "object"
}
},
"required": [
"column"
],
"type": "object"
}
],
"description": "wallet, value. Optional."
}
},
"required": [
"ts",
"type",
"asset",
"qty",
"fiatValue"
],
"type": "object"
},
"wallet": {
"default": "exchange",
"description": "wallet, string, length 1 to 128. Required.",
"maxLength": 128,
"minLength": 1,
"type": "string"
}
},
"required": [
"csv"
],
"type": "object"
},
"name": "crypto-tax_exchange-csv-normalize",
"outputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {},
"properties": {
"fiatCurrency": {
"description": "fiatCurrency. String.",
"type": "string"
},
"ledger": {
"description": "ledger. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"asset": {
"description": "asset. String.",
"type": "string"
},
"counterAsset": {
"description": "counterAsset. Null.",
"type": "null"
},
"counterQty": {
"description": "counterQty. Null.",
"type": "null"
},
"feeFiat": {
"description": "feeFiat. Number.",
"type": "number"
},
"fiatValue": {
"description": "fiatValue. Number.",
"type": "number"
},
"id": {
"description": "id. String.",
"type": "string"
},
"qty": {
"description": "qty. String.",
"type": "string"
},
"ts": {
"description": "ts. String.",
"type": "string"
},
"txHash": {
"description": "txHash. Null.",
"type": "null"
},
"type": {
"description": "type. String.",
"type": "string"
},
"wallet": {
"description": "wallet. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"limitations": {
"description": "limitations. Array.",
"items": {
"description": "item. String.",
"type": "string"
},
"type": "array"
},
"mappingTemplate": {
"description": "mappingTemplate. Null.",
"type": "null"
},
"rejectedRows": {
"description": "rejectedRows. Array.",
"items": {
"description": "Item. String.",
"type": "string"
},
"type": "array"
},
"sources": {
"description": "sources. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"retrievedAt": {
"description": "retrievedAt. String.",
"type": "string"
},
"source": {
"description": "source. String.",
"type": "string"
},
"status": {
"description": "status. String.",
"type": "string"
},
"url": {
"description": "url. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
}
},
{
"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": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"calendarYear": {
"description": "calendarYear, integer, from -9007199254740991 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"type": "integer"
},
"feePolicy": {
"default": "add_to_basis_and_deduct_from_proceeds",
"description": "feePolicy, string, one of add_to_basis_and_deduct_from_proceeds, ignore. Required.",
"enum": [
"add_to_basis_and_deduct_from_proceeds",
"ignore"
],
"type": "string"
},
"fiatCurrency": {
"default": "EUR",
"description": "fiatCurrency, string, length 3 to 3. Required.",
"maxLength": 3,
"minLength": 3,
"type": "string"
},
"ledger": {
"description": "ledger, array. Required.",
"items": {
"description": "item, object. Required.",
"properties": {
"asset": {
"description": "asset, string, length 1 to 32. Required.",
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"counterAsset": {
"anyOf": [
{
"maxLength": 32,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"description": "counterAsset, value. Optional."
},
"counterQty": {
"anyOf": [
{
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"type": "string"
},
{
"type": "null"
}
],
"description": "counterQty, value. Optional."
},
"feeFiat": {
"default": 0,
"description": "feeFiat, integer, from 0 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"fiatValue": {
"description": "fiatValue, integer, from 0 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"id": {
"description": "id, string, length 1 to 128. Required.",
"maxLength": 128,
"minLength": 1,
"type": "string"
},
"qty": {
"description": "qty, string. Required.",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"type": "string"
},
"ts": {
"description": "ts, string, date-time. Required.",
"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)))$",
"type": "string"
},
"txHash": {
"anyOf": [
{
"maxLength": 128,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"description": "txHash, value. Optional."
},
"type": {
"description": "type, string, one of buy, sell, transfer_in, transfer_out, income, fee. Required.",
"enum": [
"buy",
"sell",
"transfer_in",
"transfer_out",
"income",
"fee",
"trade"
],
"type": "string"
},
"wallet": {
"description": "wallet, string, length 1 to 128. Required.",
"maxLength": 128,
"minLength": 1,
"type": "string"
}
},
"required": [
"id",
"ts",
"type",
"asset",
"qty",
"fiatValue",
"wallet"
],
"type": "object"
},
"type": "array"
},
"method": {
"default": "FIFO",
"description": "method, string, one of FIFO, LIFO, HIFO, AVERAGE. Required.",
"enum": [
"FIFO",
"LIFO",
"HIFO",
"AVERAGE"
],
"type": "string"
}
},
"required": [
"ledger",
"calendarYear"
],
"type": "object"
},
"name": "crypto-tax_germany-holding-period",
"outputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {},
"properties": {
"calendarYear": {
"description": "calendarYear. Number.",
"type": "number"
},
"disposals": {
"description": "disposals. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"acquired": {
"description": "acquired. String.",
"type": "string"
},
"gain": {
"description": "gain. Number.",
"type": "number"
},
"holdingDays": {
"description": "holdingDays. Number.",
"type": "number"
},
"id": {
"description": "id. String.",
"type": "string"
},
"sold": {
"description": "sold. String.",
"type": "string"
},
"taxable": {
"description": "taxable. Boolean.",
"type": "boolean"
}
},
"type": "object"
},
"type": "array"
},
"exempt": {
"description": "exempt. Boolean.",
"type": "boolean"
},
"limitations": {
"description": "limitations. Array.",
"items": {
"description": "item. String.",
"type": "string"
},
"type": "array"
},
"method": {
"description": "method. String.",
"type": "string"
},
"reason": {
"description": "reason. String.",
"type": "string"
},
"sources": {
"description": "sources. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"retrievedAt": {
"description": "retrievedAt. String.",
"type": "string"
},
"source": {
"description": "source. String.",
"type": "string"
},
"status": {
"description": "status. String.",
"type": "string"
},
"url": {
"description": "url. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"taxableGainTotal": {
"description": "taxableGainTotal. Number.",
"type": "number"
}
},
"type": "object"
}
},
{
"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": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"events": {
"description": "events, array. Required.",
"items": {
"description": "item, object. Required.",
"properties": {
"asset": {
"description": "asset, string, length 1 to 32. Required.",
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"id": {
"description": "id, string, length 1 to any. Required.",
"minLength": 1,
"type": "string"
},
"kind": {
"description": "kind, string, one of staking, mining, airdrop, interest, other. Required.",
"enum": [
"staking",
"mining",
"airdrop",
"interest",
"other"
],
"type": "string"
},
"qty": {
"description": "qty, string. Required.",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"type": "string"
},
"ts": {
"description": "ts, string, date-time. Required.",
"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)))$",
"type": "string"
}
},
"required": [
"id",
"ts",
"asset",
"qty",
"kind"
],
"type": "object"
},
"type": "array"
},
"fiatCurrency": {
"description": "fiatCurrency, string, length 3 to 3. Required.",
"maxLength": 3,
"minLength": 3,
"type": "string"
},
"maxPriceLagHours": {
"description": "maxPriceLagHours, number, from any to 8760. Required.",
"exclusiveMinimum": 0,
"maximum": 8760,
"type": "number"
},
"prices": {
"description": "prices, array. Required.",
"items": {
"description": "item, object. Required.",
"properties": {
"asset": {
"description": "asset, string, length 1 to 32. Required.",
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"price": {
"description": "price, integer, from 0 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"ts": {
"description": "ts, string, date-time. Required.",
"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)))$",
"type": "string"
}
},
"required": [
"asset",
"ts",
"price"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"events",
"prices",
"maxPriceLagHours",
"fiatCurrency"
],
"type": "object"
},
"name": "crypto-tax_income-events-value",
"outputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {},
"properties": {
"events": {
"description": "events. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"asset": {
"description": "asset. String.",
"type": "string"
},
"id": {
"description": "id. String.",
"type": "string"
},
"kind": {
"description": "kind. String.",
"type": "string"
},
"priceTs": {
"description": "priceTs. String.",
"type": "string"
},
"value": {
"description": "value. Number.",
"type": "number"
}
},
"type": "object"
},
"type": "array"
},
"fiatCurrency": {
"description": "fiatCurrency. String.",
"type": "string"
},
"limitations": {
"description": "limitations. Array.",
"items": {
"description": "item. String.",
"type": "string"
},
"type": "array"
},
"missingPrices": {
"description": "missingPrices. Array.",
"items": {
"description": "Item. String.",
"type": "string"
},
"type": "array"
},
"sources": {
"description": "sources. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"retrievedAt": {
"description": "retrievedAt. String.",
"type": "string"
},
"source": {
"description": "source. String.",
"type": "string"
},
"status": {
"description": "status. String.",
"type": "string"
},
"url": {
"description": "url. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"totalsByKind": {
"additionalProperties": {},
"description": "totalsByKind. Object.",
"properties": {
"staking": {
"description": "staking. Number.",
"type": "number"
}
},
"type": "object"
}
},
"type": "object"
}
},
{
"description": "Replay balances to find disposals 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": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"ledger": {
"description": "ledger, array. Required.",
"items": {
"description": "item, object. Required.",
"properties": {
"asset": {
"description": "asset, string, length 1 to 32. Required.",
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"counterAsset": {
"anyOf": [
{
"maxLength": 32,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"description": "counterAsset, value. Optional."
},
"counterQty": {
"anyOf": [
{
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"type": "string"
},
{
"type": "null"
}
],
"description": "counterQty, value. Optional."
},
"feeFiat": {
"default": 0,
"description": "feeFiat, integer, from 0 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"fiatValue": {
"description": "fiatValue, integer, from 0 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"id": {
"description": "id, string, length 1 to 128. Required.",
"maxLength": 128,
"minLength": 1,
"type": "string"
},
"qty": {
"description": "qty, string. Required.",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"type": "string"
},
"ts": {
"description": "ts, string, date-time. Required.",
"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)))$",
"type": "string"
},
"txHash": {
"anyOf": [
{
"maxLength": 128,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"description": "txHash, value. Optional."
},
"type": {
"description": "type, string, one of buy, sell, transfer_in, transfer_out, income, fee. Required.",
"enum": [
"buy",
"sell",
"transfer_in",
"transfer_out",
"income",
"fee",
"trade"
],
"type": "string"
},
"wallet": {
"description": "wallet, string, length 1 to 128. Required.",
"maxLength": 128,
"minLength": 1,
"type": "string"
}
},
"required": [
"id",
"ts",
"type",
"asset",
"qty",
"fiatValue",
"wallet"
],
"type": "object"
},
"type": "array"
},
"prices": {
"additionalProperties": {
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"description": "prices, object. Optional.",
"propertyNames": {
"type": "string"
},
"type": "object"
}
},
"required": [
"ledger"
],
"type": "object"
},
"name": "crypto-tax_missing-basis-detect",
"outputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {},
"properties": {
"issues": {
"description": "issues. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"asset": {
"description": "asset. String.",
"type": "string"
},
"firstTxId": {
"description": "firstTxId. String.",
"type": "string"
},
"kind": {
"description": "kind. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"limitations": {
"description": "limitations. Array.",
"items": {
"description": "item. String.",
"type": "string"
},
"type": "array"
},
"ok": {
"description": "ok. Boolean.",
"type": "boolean"
},
"sources": {
"description": "sources. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"retrievedAt": {
"description": "retrievedAt. String.",
"type": "string"
},
"source": {
"description": "source. String.",
"type": "string"
},
"status": {
"description": "status. String.",
"type": "string"
},
"url": {
"description": "url. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
}
},
{
"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": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"fees": {
"description": "fees, array. Required.",
"items": {
"description": "item, object. Required.",
"properties": {
"asset": {
"description": "asset, string, length 1 to 32. Required.",
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"context": {
"description": "context, string, one of disposal, acquisition, transfer, failed_tx. Required.",
"enum": [
"disposal",
"acquisition",
"transfer",
"failed_tx"
],
"type": "string"
},
"fiatValue": {
"description": "fiatValue, integer, from 0 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"id": {
"description": "id, string, length 1 to any. Required.",
"minLength": 1,
"type": "string"
},
"qty": {
"description": "qty, string. Required.",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"type": "string"
},
"relatedId": {
"description": "relatedId, string, length 1 to any. Required.",
"minLength": 1,
"type": "string"
}
},
"required": [
"id",
"relatedId",
"context",
"asset",
"qty",
"fiatValue"
],
"type": "object"
},
"type": "array"
},
"policy": {
"description": "policy, object. Required.",
"properties": {
"acquisition": {
"default": "add_to_basis",
"description": "acquisition, string, one of add_to_basis. Required.",
"enum": [
"add_to_basis"
],
"type": "string"
},
"disposal": {
"default": "deduct_from_proceeds",
"description": "disposal, string, one of deduct_from_proceeds. Required.",
"enum": [
"deduct_from_proceeds"
],
"type": "string"
},
"failed_tx": {
"description": "failed tx, string, one of expense, ignore. Required.",
"enum": [
"expense",
"ignore"
],
"type": "string"
},
"transfer": {
"description": "transfer, string, one of add_to_basis, disposal_of_fee_asset, expense. Required.",
"enum": [
"add_to_basis",
"disposal_of_fee_asset",
"expense"
],
"type": "string"
}
},
"required": [
"transfer",
"failed_tx"
],
"type": "object"
}
},
"required": [
"fees",
"policy"
],
"type": "object"
},
"name": "crypto-tax_network-fee-allocate",
"outputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {},
"properties": {
"adjustments": {
"description": "adjustments. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"action": {
"description": "action. String.",
"type": "string"
},
"amount": {
"description": "amount. Number.",
"type": "number"
},
"feeId": {
"description": "feeId. String.",
"type": "string"
},
"target": {
"description": "target. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"feeAssetDisposals": {
"description": "feeAssetDisposals. Array.",
"items": {
"description": "Item. String.",
"type": "string"
},
"type": "array"
},
"limitations": {
"description": "limitations. Array.",
"items": {
"description": "item. String.",
"type": "string"
},
"type": "array"
},
"sources": {
"description": "sources. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"retrievedAt": {
"description": "retrievedAt. String.",
"type": "string"
},
"source": {
"description": "source. String.",
"type": "string"
},
"status": {
"description": "status. String.",
"type": "string"
},
"url": {
"description": "url. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
}
},
{
"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": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"feePolicy": {
"default": "add_to_basis_and_deduct_from_proceeds",
"description": "feePolicy, string, one of add_to_basis_and_deduct_from_proceeds, ignore. Required.",
"enum": [
"add_to_basis_and_deduct_from_proceeds",
"ignore"
],
"type": "string"
},
"fiatCurrency": {
"default": "USD",
"description": "fiatCurrency, string, length 3 to 3. Required.",
"maxLength": 3,
"minLength": 3,
"type": "string"
},
"ledger": {
"description": "ledger, array. Required.",
"items": {
"description": "item, object. Required.",
"properties": {
"asset": {
"description": "asset, string, length 1 to 32. Required.",
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"counterAsset": {
"anyOf": [
{
"maxLength": 32,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"description": "counterAsset, value. Optional."
},
"counterQty": {
"anyOf": [
{
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"type": "string"
},
{
"type": "null"
}
],
"description": "counterQty, value. Optional."
},
"feeFiat": {
"default": 0,
"description": "feeFiat, integer, from 0 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"fiatValue": {
"description": "fiatValue, integer, from 0 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"id": {
"description": "id, string, length 1 to 128. Required.",
"maxLength": 128,
"minLength": 1,
"type": "string"
},
"qty": {
"description": "qty, string. Required.",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"type": "string"
},
"ts": {
"description": "ts, string, date-time. Required.",
"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)))$",
"type": "string"
},
"txHash": {
"anyOf": [
{
"maxLength": 128,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"description": "txHash, value. Optional."
},
"type": {
"description": "type, string, one of buy, sell, transfer_in, transfer_out, income, fee. Required.",
"enum": [
"buy",
"sell",
"transfer_in",
"transfer_out",
"income",
"fee",
"trade"
],
"type": "string"
},
"wallet": {
"description": "wallet, string, length 1 to 128. Required.",
"maxLength": 128,
"minLength": 1,
"type": "string"
}
},
"required": [
"id",
"ts",
"type",
"asset",
"qty",
"fiatValue",
"wallet"
],
"type": "object"
},
"type": "array"
},
"selections": {
"description": "selections, array. Required.",
"items": {
"description": "item, object. Required.",
"properties": {
"disposalId": {
"description": "disposalId, string, length 1 to any. Required.",
"minLength": 1,
"type": "string"
},
"lots": {
"description": "lots, array. Required.",
"items": {
"description": "item, object. Required.",
"properties": {
"lotId": {
"description": "lotId, string, length 1 to any. Required.",
"minLength": 1,
"type": "string"
},
"qty": {
"description": "qty, string. Required.",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"type": "string"
}
},
"required": [
"lotId",
"qty"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"disposalId",
"lots"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"ledger",
"selections"
],
"type": "object"
},
"name": "crypto-tax_specific-id-select",
"outputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {},
"properties": {
"disposals": {
"description": "disposals. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"asset": {
"description": "asset. String.",
"type": "string"
},
"basis": {
"description": "basis. Number.",
"type": "number"
},
"gain": {
"description": "gain. Number.",
"type": "number"
},
"id": {
"description": "id. String.",
"type": "string"
},
"matches": {
"description": "matches. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"acquiredTs": {
"description": "acquiredTs. String.",
"type": "string"
},
"basis": {
"description": "basis. Number.",
"type": "number"
},
"lotId": {
"description": "lotId. String.",
"type": "string"
},
"qty": {
"description": "qty. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"proceeds": {
"description": "proceeds. Number.",
"type": "number"
},
"qty": {
"description": "qty. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"errors": {
"description": "errors. Array.",
"items": {
"description": "Item. String.",
"type": "string"
},
"type": "array"
},
"limitations": {
"description": "limitations. Array.",
"items": {
"description": "item. String.",
"type": "string"
},
"type": "array"
},
"openLots": {
"description": "openLots. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"acquiredTs": {
"description": "acquiredTs. String.",
"type": "string"
},
"asset": {
"description": "asset. String.",
"type": "string"
},
"basis": {
"description": "basis. Number.",
"type": "number"
},
"lotId": {
"description": "lotId. String.",
"type": "string"
},
"qty": {
"description": "qty. String.",
"type": "string"
},
"wallet": {
"description": "wallet. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"sources": {
"description": "sources. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"retrievedAt": {
"description": "retrievedAt. String.",
"type": "string"
},
"source": {
"description": "source. String.",
"type": "string"
},
"status": {
"description": "status. String.",
"type": "string"
},
"url": {
"description": "url. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"warnings": {
"description": "warnings. Array.",
"items": {
"description": "Item. String.",
"type": "string"
},
"type": "array"
}
},
"type": "object"
}
},
{
"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": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"asOf": {
"description": "acquired, string, date. Required.",
"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])))$",
"type": "string"
},
"jurisdiction": {
"description": "jurisdiction, string, one of US, UK, other. Required.",
"enum": [
"US",
"UK",
"other"
],
"type": "string"
},
"marginalRate": {
"description": "marginalRate, number, from 0 to 1. Required.",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"openLots": {
"description": "openLots, array. Required.",
"items": {
"description": "item, object. Required.",
"properties": {
"acquired": {
"description": "acquired, string, date. Required.",
"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])))$",
"type": "string"
},
"asset": {
"description": "asset, string, length 1 to 32. Required.",
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"basis": {
"description": "basis, integer, from 0 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"lotId": {
"description": "lotId, string, length 1 to any. Required.",
"minLength": 1,
"type": "string"
},
"qty": {
"description": "qty, string. Required.",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"type": "string"
}
},
"required": [
"lotId",
"asset",
"qty",
"basis",
"acquired"
],
"type": "object"
},
"type": "array"
},
"prices": {
"additionalProperties": {
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"description": "prices, object. Required.",
"propertyNames": {
"type": "string"
},
"type": "object"
}
},
"required": [
"openLots",
"prices",
"marginalRate",
"jurisdiction",
"asOf"
],
"type": "object"
},
"name": "crypto-tax_tax-loss-harvest",
"outputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {},
"properties": {
"asOf": {
"description": "asOf. String.",
"type": "string"
},
"candidates": {
"description": "candidates. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"asset": {
"description": "asset. String.",
"type": "string"
},
"basis": {
"description": "basis. Number.",
"type": "number"
},
"estimatedTaxSaving": {
"description": "estimatedTaxSaving. Number.",
"type": "number"
},
"flags": {
"description": "flags. Array.",
"items": {
"description": "item. String.",
"type": "string"
},
"type": "array"
},
"lotId": {
"description": "lotId. String.",
"type": "string"
},
"qty": {
"description": "qty. String.",
"type": "string"
},
"unrealisedLoss": {
"description": "unrealisedLoss. Number.",
"type": "number"
},
"value": {
"description": "value. Number.",
"type": "number"
}
},
"type": "object"
},
"type": "array"
},
"limitations": {
"description": "limitations. Array.",
"items": {
"description": "item. String.",
"type": "string"
},
"type": "array"
},
"sources": {
"description": "sources. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"retrievedAt": {
"description": "retrievedAt. String.",
"type": "string"
},
"source": {
"description": "source. String.",
"type": "string"
},
"status": {
"description": "status. String.",
"type": "string"
},
"url": {
"description": "url. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"totalLoss": {
"description": "totalLoss. Number.",
"type": "number"
}
},
"type": "object"
}
},
{
"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": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"ledger": {
"description": "ledger, array. Required.",
"items": {
"description": "item, object. Required.",
"properties": {
"asset": {
"description": "asset, string, length 1 to 32. Required.",
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"counterAsset": {
"anyOf": [
{
"maxLength": 32,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"description": "counterAsset, value. Optional."
},
"counterQty": {
"anyOf": [
{
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"type": "string"
},
{
"type": "null"
}
],
"description": "counterQty, value. Optional."
},
"feeFiat": {
"default": 0,
"description": "feeFiat, integer, from 0 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"fiatValue": {
"description": "fiatValue, integer, from 0 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"id": {
"description": "id, string, length 1 to 128. Required.",
"maxLength": 128,
"minLength": 1,
"type": "string"
},
"qty": {
"description": "qty, string. Required.",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"type": "string"
},
"ts": {
"description": "ts, string, date-time. Required.",
"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)))$",
"type": "string"
},
"txHash": {
"anyOf": [
{
"maxLength": 128,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"description": "txHash, value. Optional."
},
"type": {
"description": "type, string, one of buy, sell, transfer_in, transfer_out, income, fee. Required.",
"enum": [
"buy",
"sell",
"transfer_in",
"transfer_out",
"income",
"fee",
"trade"
],
"type": "string"
},
"wallet": {
"description": "wallet, string, length 1 to 128. Required.",
"maxLength": 128,
"minLength": 1,
"type": "string"
}
},
"required": [
"id",
"ts",
"type",
"asset",
"qty",
"fiatValue",
"wallet"
],
"type": "object"
},
"type": "array"
},
"maxFeeRatio": {
"default": 0.02,
"description": "maxFeeRatio, number, from 0 to 1. Required.",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"windowMinutes": {
"default": 120,
"description": "windowMinutes, number, from any to 43200. Required.",
"exclusiveMinimum": 0,
"maximum": 43200,
"type": "number"
}
},
"required": [
"ledger"
],
"type": "object"
},
"name": "crypto-tax_transfer-match",
"outputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {},
"properties": {
"limitations": {
"description": "limitations. Array.",
"items": {
"description": "item. String.",
"type": "string"
},
"type": "array"
},
"pairs": {
"description": "pairs. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"asset": {
"description": "asset. String.",
"type": "string"
},
"fee": {
"description": "fee. String.",
"type": "string"
},
"inId": {
"description": "inId. String.",
"type": "string"
},
"matchedBy": {
"description": "matchedBy. String.",
"type": "string"
},
"outId": {
"description": "outId. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"sources": {
"description": "sources. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"retrievedAt": {
"description": "retrievedAt. String.",
"type": "string"
},
"source": {
"description": "source. String.",
"type": "string"
},
"status": {
"description": "status. String.",
"type": "string"
},
"url": {
"description": "url. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"unmatchedIn": {
"description": "unmatchedIn. Array.",
"items": {
"description": "Item. String.",
"type": "string"
},
"type": "array"
},
"unmatchedOut": {
"description": "unmatchedOut. Array.",
"items": {
"description": "Item. String.",
"type": "string"
},
"type": "array"
},
"warnings": {
"description": "warnings. Array.",
"items": {
"description": "Item. String.",
"type": "string"
},
"type": "array"
}
},
"type": "object"
}
},
{
"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": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"feePolicy": {
"default": "add_to_basis_and_deduct_from_proceeds",
"description": "feePolicy, string, one of add_to_basis_and_deduct_from_proceeds, ignore. Required.",
"enum": [
"add_to_basis_and_deduct_from_proceeds",
"ignore"
],
"type": "string"
},
"fiatCurrency": {
"default": "GBP",
"description": "fiatCurrency, string, length 3 to 3. Required.",
"maxLength": 3,
"minLength": 3,
"type": "string"
},
"ledger": {
"description": "ledger, array. Required.",
"items": {
"description": "item, object. Required.",
"properties": {
"asset": {
"description": "asset, string, length 1 to 32. Required.",
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"counterAsset": {
"anyOf": [
{
"maxLength": 32,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"description": "counterAsset, value. Optional."
},
"counterQty": {
"anyOf": [
{
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"type": "string"
},
{
"type": "null"
}
],
"description": "counterQty, value. Optional."
},
"feeFiat": {
"default": 0,
"description": "feeFiat, integer, from 0 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"fiatValue": {
"description": "fiatValue, integer, from 0 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"id": {
"description": "id, string, length 1 to 128. Required.",
"maxLength": 128,
"minLength": 1,
"type": "string"
},
"qty": {
"description": "qty, string. Required.",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"type": "string"
},
"ts": {
"description": "ts, string, date-time. Required.",
"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)))$",
"type": "string"
},
"txHash": {
"anyOf": [
{
"maxLength": 128,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"description": "txHash, value. Optional."
},
"type": {
"description": "type, string, one of buy, sell, transfer_in, transfer_out, income, fee. Required.",
"enum": [
"buy",
"sell",
"transfer_in",
"transfer_out",
"income",
"fee",
"trade"
],
"type": "string"
},
"wallet": {
"description": "wallet, string, length 1 to 128. Required.",
"maxLength": 128,
"minLength": 1,
"type": "string"
}
},
"required": [
"id",
"ts",
"type",
"asset",
"qty",
"fiatValue",
"wallet"
],
"type": "object"
},
"type": "array"
},
"taxYear": {
"description": "taxYear, string. Required.",
"pattern": "^\\d{4}-\\d{2}$",
"type": "string"
}
},
"required": [
"ledger",
"taxYear"
],
"type": "object"
},
"name": "crypto-tax_uk-share-pooling",
"outputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {},
"properties": {
"annualExemptAmount": {
"description": "annualExemptAmount. Number.",
"type": "number"
},
"disposals": {
"description": "disposals. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"allowableCost": {
"description": "allowableCost. Number.",
"type": "number"
},
"gain": {
"description": "gain. Number.",
"type": "number"
},
"id": {
"description": "id. String.",
"type": "string"
},
"matches": {
"description": "matches. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"acqId": {
"description": "acqId. String.",
"type": "string"
},
"cost": {
"description": "cost. Number.",
"type": "number"
},
"qty": {
"description": "qty. String.",
"type": "string"
},
"rule": {
"description": "rule. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"proceeds": {
"description": "proceeds. Number.",
"type": "number"
}
},
"type": "object"
},
"type": "array"
},
"limitations": {
"description": "limitations. Array.",
"items": {
"description": "item. String.",
"type": "string"
},
"type": "array"
},
"netGain": {
"description": "netGain. Number.",
"type": "number"
},
"pool": {
"additionalProperties": {},
"description": "pool. Object.",
"properties": {
"BTC": {
"additionalProperties": {},
"description": "BTC. Object.",
"properties": {
"cost": {
"description": "cost. Number.",
"type": "number"
},
"qty": {
"description": "qty. String.",
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
},
"sources": {
"description": "sources. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"retrievedAt": {
"description": "retrievedAt. String.",
"type": "string"
},
"source": {
"description": "source. String.",
"type": "string"
},
"status": {
"description": "status. String.",
"type": "string"
},
"url": {
"description": "url. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"taxYear": {
"description": "taxYear. String.",
"type": "string"
},
"taxableAfterAea": {
"description": "taxableAfterAea. Number.",
"type": "number"
},
"warnings": {
"description": "warnings. Array.",
"items": {
"description": "Item. String.",
"type": "string"
},
"type": "array"
}
},
"type": "object"
}
},
{
"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": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"asOf": {
"description": "ts, string, date-time. Required.",
"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)))$",
"type": "string"
},
"dustThresholdFiat": {
"default": 100,
"description": "dustThresholdFiat, integer, from 0 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"feePolicy": {
"default": "add_to_basis_and_deduct_from_proceeds",
"description": "feePolicy, string, one of add_to_basis_and_deduct_from_proceeds, ignore. Required.",
"enum": [
"add_to_basis_and_deduct_from_proceeds",
"ignore"
],
"type": "string"
},
"fiatCurrency": {
"default": "USD",
"description": "fiatCurrency, string, length 3 to 3. Required.",
"maxLength": 3,
"minLength": 3,
"type": "string"
},
"ledger": {
"description": "ledger, array. Required.",
"items": {
"description": "item, object. Required.",
"properties": {
"asset": {
"description": "asset, string, length 1 to 32. Required.",
"maxLength": 32,
"minLength": 1,
"type": "string"
},
"counterAsset": {
"anyOf": [
{
"maxLength": 32,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"description": "counterAsset, value. Optional."
},
"counterQty": {
"anyOf": [
{
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"type": "string"
},
{
"type": "null"
}
],
"description": "counterQty, value. Optional."
},
"feeFiat": {
"default": 0,
"description": "feeFiat, integer, from 0 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"fiatValue": {
"description": "fiatValue, integer, from 0 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"id": {
"description": "id, string, length 1 to 128. Required.",
"maxLength": 128,
"minLength": 1,
"type": "string"
},
"qty": {
"description": "qty, string. Required.",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
"type": "string"
},
"ts": {
"description": "ts, string, date-time. Required.",
"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)))$",
"type": "string"
},
"txHash": {
"anyOf": [
{
"maxLength": 128,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"description": "txHash, value. Optional."
},
"type": {
"description": "type, string, one of buy, sell, transfer_in, transfer_out, income, fee. Required.",
"enum": [
"buy",
"sell",
"transfer_in",
"transfer_out",
"income",
"fee",
"trade"
],
"type": "string"
},
"wallet": {
"description": "wallet, string, length 1 to 128. Required.",
"maxLength": 128,
"minLength": 1,
"type": "string"
}
},
"required": [
"id",
"ts",
"type",
"asset",
"qty",
"fiatValue",
"wallet"
],
"type": "object"
},
"type": "array"
},
"method": {
"default": "FIFO",
"description": "method, string, one of FIFO, LIFO, HIFO, AVERAGE. Required.",
"enum": [
"FIFO",
"LIFO",
"HIFO",
"AVERAGE"
],
"type": "string"
},
"prices": {
"additionalProperties": {
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"description": "prices, object. Required.",
"propertyNames": {
"type": "string"
},
"type": "object"
}
},
"required": [
"ledger",
"asOf",
"prices"
],
"type": "object"
},
"name": "crypto-tax_unrealized-snapshot",
"outputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {},
"properties": {
"asOf": {
"description": "asOf. String.",
"type": "string"
},
"dust": {
"description": "dust. Array.",
"items": {
"description": "Item. String.",
"type": "string"
},
"type": "array"
},
"holdings": {
"description": "holdings. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"asset": {
"description": "asset. String.",
"type": "string"
},
"basis": {
"description": "basis. Number.",
"type": "number"
},
"qty": {
"description": "qty. String.",
"type": "string"
},
"unrealised": {
"description": "unrealised. Number.",
"type": "number"
},
"value": {
"description": "value. Number.",
"type": "number"
}
},
"type": "object"
},
"type": "array"
},
"limitations": {
"description": "limitations. Array.",
"items": {
"description": "item. String.",
"type": "string"
},
"type": "array"
},
"method": {
"description": "method. String.",
"type": "string"
},
"openLots": {
"description": "openLots. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"acquiredTs": {
"description": "acquiredTs. String.",
"type": "string"
},
"asset": {
"description": "asset. String.",
"type": "string"
},
"basis": {
"description": "basis. Number.",
"type": "number"
},
"lotId": {
"description": "lotId. String.",
"type": "string"
},
"qty": {
"description": "qty. String.",
"type": "string"
},
"wallet": {
"description": "wallet. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"sources": {
"description": "sources. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"retrievedAt": {
"description": "retrievedAt. String.",
"type": "string"
},
"source": {
"description": "source. String.",
"type": "string"
},
"status": {
"description": "status. String.",
"type": "string"
},
"url": {
"description": "url. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"unpriced": {
"description": "unpriced. Array.",
"items": {
"description": "Item. String.",
"type": "string"
},
"type": "array"
}
},
"type": "object"
}
},
{
"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": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"disposals": {
"description": "disposals, array. Required.",
"items": {
"description": "item, object. Required.",
"properties": {
"acquired": {
"description": "acquired, string, date. Required.",
"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])))$",
"type": "string"
},
"adjustment": {
"default": 0,
"description": "adjustment, integer, from -9007199254740991 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"type": "integer"
},
"adjustmentCode": {
"anyOf": [
{
"maxLength": 8,
"type": "string"
},
{
"type": "null"
}
],
"description": "adjustmentCode, value. Optional."
},
"basis": {
"description": "proceeds, integer, from 0 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"basisReported": {
"description": "basisReported, boolean. Required.",
"type": "boolean"
},
"description": {
"description": "description, string, length 1 to 256. Required.",
"maxLength": 256,
"minLength": 1,
"type": "string"
},
"id": {
"description": "id, string, length 1 to any. Required.",
"minLength": 1,
"type": "string"
},
"proceeds": {
"description": "proceeds, integer, from 0 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"reportedOn": {
"description": "reportedOn, string, one of 1099-DA, 1099-B, none. Required.",
"enum": [
"1099-DA",
"1099-B",
"none"
],
"type": "string"
},
"sold": {
"description": "acquired, string, date. Required.",
"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])))$",
"type": "string"
}
},
"required": [
"id",
"description",
"acquired",
"sold",
"proceeds",
"basis",
"reportedOn",
"basisReported"
],
"type": "object"
},
"type": "array"
},
"roundToDollars": {
"default": false,
"description": "roundToDollars, boolean. Required.",
"type": "boolean"
},
"taxYear": {
"description": "taxYear, integer, from -9007199254740991 to 9007199254740991. Required.",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"type": "integer"
}
},
"required": [
"taxYear",
"disposals"
],
"type": "object"
},
"name": "crypto-tax_us-form-8949-rows",
"outputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {},
"properties": {
"limitations": {
"description": "limitations. Array.",
"items": {
"description": "item. String.",
"type": "string"
},
"type": "array"
},
"rows": {
"description": "rows. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"adjustment": {
"description": "adjustment. Number.",
"type": "number"
},
"basis": {
"description": "basis. Number.",
"type": "number"
},
"box": {
"description": "box. String.",
"type": "string"
},
"code": {
"description": "code. Null.",
"type": "null"
},
"dateAcquired": {
"description": "dateAcquired. String.",
"type": "string"
},
"dateSold": {
"description": "dateSold. String.",
"type": "string"
},
"description": {
"description": "description. String.",
"type": "string"
},
"gain": {
"description": "gain. Number.",
"type": "number"
},
"id": {
"description": "id. String.",
"type": "string"
},
"part": {
"description": "part. String.",
"type": "string"
},
"proceeds": {
"description": "proceeds. Number.",
"type": "number"
},
"term": {
"description": "term. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"sources": {
"description": "sources. Array.",
"items": {
"additionalProperties": {},
"description": "item. Object.",
"properties": {
"retrievedAt": {
"description": "retrievedAt. String.",
"type": "string"
},
"source": {
"description": "source. String.",
"type": "string"
},
"status": {
"description": "status. String.",
"type": "string"
},
"url": {
"description": "url. String.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"taxYear": {
"description": "taxYear. Number.",
"type": "number"
},
"totalsByBox": {
"additionalProperties": {},
"description": "totalsByBox. Object.",
"properties": {
"J": {
"additionalProperties": {},
"description": "J. Object.",
"properties": {
"adjustment": {
"description": "adjustment. Number.",
"type": "number"
},
"basis": {
"description": "basis. Number.",
"type": "number"
},
"gain": {
"description": "gain. Number.",
"type": "number"
},
"proceeds": {
"description": "proceeds. Number.",
"type": "number"
}
},
"type": "object"
}
},
"type": "object"
}
},
"type": "object"
}
}
]
}Verify it yourself
curl -s https://api.teppi.xyz/v1/evidence/sha256:eb771060db274b201b25835259a8b846c24da790711df7657c9bee6acb80dccc | sha256sum