{"slug":"www-brainiac-software-api-v1-crypto-tax-derivatives-pnl-919c8d","title":"Compute realised P/L for linear perpetuals/futures and options including fees an","host":"www.brainiac.software","method":"POST","resource":"https://www.brainiac.software/api/v1/crypto-tax/derivatives-pnl","category":"market","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","price_listed":0.03,"price_asked":0.03,"state":"answering","state_label":"Answering","checks_7d":3,"answered_7d":3,"latency_ms_median":326,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"trades":[{"entryPrice":6000000,"exitPrice":6200000,"fees":3000,"fundingPayments":[-1200,800],"id":"p1","instrument":"BTC-PERP","kind":"linear_future","qty":"0.5","side":"long"}]},"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":{"trades":{"description":"trades supplied by the caller for this operation.","example":[{"entryPrice":6000000,"exitPrice":6200000,"fees":3000,"fundingPayments":[-1200,800],"id":"p1","instrument":"BTC-PERP","kind":"linear_future","qty":"0.5","side":"long"}],"items":{"type":"object"},"type":"array"}},"required":["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"},"output":{"properties":{"example":{"additionalProperties":true,"properties":{"limitations":{"description":"Product caveats. Absence of a signal is not a safety approval.","type":"array"},"sources":{"description":"Provenance only — upstream name, url, and retrievedAt when available.","items":{"additionalProperties":true,"properties":{"retrievedAt":{"description":"ISO-8601 timestamp when upstream data was retrieved.","type":"string"},"source":{"description":"Named upstream source for this delayed reference series.","type":"string"},"status":{"description":"Coverage status: complete or partial with real data is charged on HTTP 2xx; failed or empty payloads return non-2xx and are not charged.","type":"string"},"url":{"description":"Requested public URL.","type":"string"}},"type":"object"},"type":"array"},"total":{"description":"total returned by this operation.","type":"integer"},"trades":{"description":"trades returned by this operation.","items":{"additionalProperties":true,"properties":{"fees":{"description":"fees returned by this operation.","type":"integer"},"funding":{"description":"funding returned by this operation.","type":"integer"},"grossPnl":{"description":"gross Pnl returned by this operation.","type":"integer"},"id":{"description":"id returned by this operation.","type":"string"},"instrument":{"description":"instrument returned by this operation.","type":"string"},"netPnl":{"description":"net Pnl returned by this operation.","type":"integer"}},"type":"object"},"type":"array"}},"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":326,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":341,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.03,"price_match":true,"latency_ms":322,"error":null}],"description_full":"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","last_updated":"2026-11-24T15:02:59.318Z","schemes":["exact"]}