{"slug":"chainiq-fifo-59967844018-us-east1-run-app-api-v1-calculate-t-9dfcf5","title":"ChainIQ produces a crypto cost-basis CSV from caller-authorized BTC, ETH or SOL ","host":"chainiq-fifo-59967844018.us-east1.run.app","method":"POST","resource":"https://chainiq-fifo-59967844018.us-east1.run.app/api/v1/calculate-tax","category":"market","description":"ChainIQ produces a crypto cost-basis CSV from caller-authorized BTC, ETH or SOL spot trades in USD. One workpaper covers one selected method: FIFO, LIFO, HIFO or Optimized HIFO. The three comparison methods retain FIFO as the filing method.","price_listed":0.05,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"authorized":true,"brokerReporting":"no-broker-form","openingAsOf":"2026-01-02T00:00:00Z","openings":[{"acquired":"2025-03-03","asset":"BTC","basisUSD":"4000","quantity":"0.5"}],"schema":"chainiq.fifo-trades.v1","taxYear":2026,"trades":[{"asset":"BTC","feeUSD":"1.25","id":"fictional-paper-sale-alpha","priceUSD":"12345.67","quantity":"0.125","side":"sell","time":"2026-02-10T12:00:00Z"}]},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"authorized":{"const":true},"brokerReporting":{"const":"no-broker-form"},"method":{"enum":["FIFO","LIFO","HIFO","OPTIMIZED_HIFO"],"type":"string"},"openingAsOf":{"format":"date-time","type":"string"},"openings":{"items":{"additionalProperties":false,"properties":{"acquired":{"format":"date","type":"string"},"asset":{"enum":["BTC","ETH","SOL"],"type":"string"},"basisUSD":{"pattern":"^(0|[1-9][0-9]{0,17})(\\.[0-9]{1,18})?$","type":"string"},"quantity":{"pattern":"^(0|[1-9][0-9]{0,17})(\\.[0-9]{1,18})?$","type":"string"}},"required":["asset","quantity","basisUSD","acquired"],"type":"object"},"maxItems":3,"minItems":1,"type":"array"},"resultKeySHA256":{"pattern":"^[0-9a-f]{64}$","type":"string"},"sameTimeOrder":{"items":{"items":{"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,47}$","type":"string"},"type":"array"},"type":"array"},"schema":{"const":"chainiq.fifo-trades.v1"},"taxYear":{"maximum":2099,"minimum":2025,"type":"integer"},"trades":{"items":{"additionalProperties":false,"properties":{"asset":{"enum":["BTC","ETH","SOL"],"type":"string"},"feeUSD":{"pattern":"^(0|[1-9][0-9]{0,17})(\\.[0-9]{1,18})?$","type":"string"},"id":{"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,47}$","type":"string"},"priceUSD":{"pattern":"^(0|[1-9][0-9]{0,17})(\\.[0-9]{1,18})?$","type":"string"},"quantity":{"pattern":"^(0|[1-9][0-9]{0,17})(\\.[0-9]{1,18})?$","type":"string"},"side":{"enum":["buy","sell"],"type":"string"},"time":{"format":"date-time","type":"string"}},"required":["id","side","asset","time","quantity","priceUSD","feeUSD"],"type":"object"},"maxItems":128,"minItems":1,"type":"array"}},"required":["schema","authorized","brokerReporting","taxYear","openingAsOf","openings","trades"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"ChainIQ produces a crypto cost-basis CSV from caller-authorized BTC, ETH or SOL spot trades in USD. One workpaper covers one selected method: FIFO, LIFO, HIFO or Optimized HIFO. The three comparison methods retain FIFO as the filing method.","last_updated":"2026-11-25T20:34:07.046Z","schemes":["exact"]}