Compute realised P/L for linear perpetuals/futures and options including fees an...
https://www.brainiac.software/api/v1/crypto-tax/derivatives-pnlOverview
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
Protocol
x402 (POST)
Price
$0.03
Payment Asset
USD Coin
Payment Network
eip155:8453
Category
uncategorized
Provider
Derivatives Realised P/L
Source
self-registered
Indexed
2026-11-20 20:29:56
Health
Status
healthy
Latency (p50)
—
Uptime (30d)
—
Reliability Score
—
Last Checked
Never
Last Healthy
Never
Consecutive Failures
0
x402 Payment Validation
Payment Requirements
—
Asset Verified
—
Facilitator
—
Input Schema
{
"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
{
"example": {
"limitations": [
"Linear futures: (exit−entry)×qty for long, reversed for short. Options use caller premium and settlement. Inverse/coin-margined contracts are out of scope.",
"Pure computation on caller input: no exchange, wallet, market-price or tax-authority API is called at request time."
],
"sources": [
{
"retrievedAt": "2026-11-14",
"source": "Caller-supplied ledger, prices and jurisdiction inputs processed locally",
"status": "ok",
"url": "https://www.brainiac.software/api/v1/crypto-tax"
}
],
"total": 96600,
"trades": [
{
"fees": 3000,
"funding": -400,
"grossPnl": 100000,
"id": "p1",
"instrument": "BTC-PERP",
"netPnl": 96600
}
]
},
"type": "json"
}