Compute realised P/L for linear perpetuals/futures and options including fees an
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
Answeringour last check, 2026-11-26
3 of 3checks answered this week
326 msmedian answer time
$0.03listed price per call
$0.03price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://www.brainiac.software/api/v1/crypto-tax/derivatives-pnl
| Category | Market data |
|---|---|
| Provider host | www.brainiac.software |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-11-26 | valid payment request | 402 | $0.03 | 326 ms |
| 2026-11-25 | valid payment request | 402 | $0.03 | 341 ms |
| 2026-11-24 | valid payment request | 402 | $0.03 | 322 ms |
Example input (from the provider)
{
"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"
}
Promised output schema (from the provider)
{
"$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 \u2014 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"
}