Derivatives realised P/L
crypto-tax_derivatives-pnlCompute realised P/L for linear perpetuals/futures and options including fees and funding from caller trade inputs. Price $0.03 USDC. POST /api/v1/crypto-tax/derivatives-pnl. An unpaid call returns the x402 payment terms and does not run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"trades": "<trades>"
},
"name": "crypto-tax_derivatives-pnl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trades | Yes | trades, array. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | No | total. Number. | |
| trades | No | trades. Array. | |
| sources | No | sources. Array. | |
| limitations | No | limitations. Array. |