Get tax summary for an address
const url = 'https://api.qeychain.xyz/api/calculate/tax-summary/example?persist_lineage=false';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.qeychain.xyz/api/calculate/tax-summary/example?persist_lineage=false'Returns comprehensive tax summary for a wallet address including: - Total realized gains/losses - Short-term vs long-term capital gains breakdown - Wash sale disallowed amounts - Disposal counts and totals
When `persist_lineage=true`, lineage links are persisted to the database
for audit trail and money trail tracking.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”All wallet addresses owned by the user (for internal transfer detection). Comma-separated or repeated.
Persist lineage links to database for audit trail
Persist lineage links to database for audit trail
Responses
Section titled “Responses”Successful Response
Tax summary for an address.
object
Wallet address
Total realized gain/loss
Total short-term capital gains
Total short-term capital losses
Net short-term gain/loss
Total long-term capital gains
Total long-term capital losses
Net long-term gain/loss
Total losses disallowed due to wash sales
Number of wash sale events
Total number of taxable disposals
Total proceeds from disposals
Total cost basis used in disposals
Breakdown of income by type (airdrops, staking rewards, etc.).
object
Total airdrop income at FMV
Total staking reward income at FMV
Total mining reward income at FMV
Total interest income at FMV
Other income at FMV
Total income received (sum of all types)
Example
{ "wash_sale_disallowed": "0", "wash_sale_count": 0, "income": { "airdrop": "0", "staking_reward": "0", "mining_reward": "0", "interest": "0", "other": "0", "total": "0" }}Bad Request
Not Found
Validation Error
object
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}Internal Server Error
