GET/api/v1/fund/pnl/attribution
P&L attribution between the NAV run on a given date and the immediately preceding usable run.
Requires an Authorization: Bearer <API key> header (a nyx_dk_… developer key, minted from Settings → Developer). Reflects Nyx's shadow NAV, reconciled against your fund administrator.
| Name | Type | Required | Description |
|---|---|---|---|
| date | string | Required | — |
cURL
curl -s -X GET "https://nyxchain.org/api/v1/fund/pnl/attribution" \
-H "Authorization: Bearer nyx_dk_demo000000000000000000000000000000000000000"JavaScript
const res = await fetch("https://nyxchain.org/api/v1/fund/pnl/attribution", {
method: "GET",
headers: { Authorization: "Bearer nyx_dk_demo000000000000000000000000000000000000000" },
})
const data = await res.json()Python
# GET https://nyxchain.org/api/v1/fund/pnl/attribution
import requests
res = requests.get(
"https://nyxchain.org/api/v1/fund/pnl/attribution",
headers={"Authorization": "Bearer nyx_dk_demo000000000000000000000000000000000000000"},
)
data = res.json()Try It
API Key
nyx_dk_dem••••••••0000
Parameters
Sample response
Object(10)
"status": "ok"
"fromDate": "2026-07-19"
"toDate": "2026-07-20"
"fromRunId": "demo-nav-run-2026-07-19"
"toRunId": "demo-nav-run-2026-07-20"
"navFromUsd": "18321810.12"
"navToUsd": "18450210.44"
"deltaNavUsd": "128400.32"
"lines":
Array(4)
Object(3)
"key": "price_effect"
"amountUsd": "104200.00"
"amountNum": 104200
Object(3)
"key": "fee_effect"
"amountUsd": "-14200.18"
"amountNum": -14200.18
Object(3)
"key": "new_position_effect"
"amountUsd": "32400.50"
"amountNum": 32400.5
Object(3)
"key": "residual"
"amountUsd": "6000.00"
"amountNum": 6000
"unpricedRows": []