Get realized PnL and funding totals
const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.testnet.tayho.io/v1/traders/{address}/pnl', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.testnet.tayho.io/v1/traders/{address}/pnl \
--header 'X-API-Key: <api-key>'{
"data": {
"funding": {
"appliedPayerWad": "<string>",
"receiverWad": "<string>",
"requestedPayerWad": "<string>"
},
"positions": {
"cumulativeFundingPaidWad": "<string>",
"cumulativeFundingReceivedWad": "<string>",
"cumulativePnlWad": "<string>"
},
"settlements": {
"haircutWad": "<string>",
"paidWad": "<string>",
"realizedPnlWad": "<string>"
}
}
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}Get realized PnL and funding totals
GET
/
v1
/
traders
/
{address}
/
pnl
Get realized PnL and funding totals
const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.testnet.tayho.io/v1/traders/{address}/pnl', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.testnet.tayho.io/v1/traders/{address}/pnl \
--header 'X-API-Key: <api-key>'{
"data": {
"funding": {
"appliedPayerWad": "<string>",
"receiverWad": "<string>",
"requestedPayerWad": "<string>"
},
"positions": {
"cumulativeFundingPaidWad": "<string>",
"cumulativeFundingReceivedWad": "<string>",
"cumulativePnlWad": "<string>"
},
"settlements": {
"haircutWad": "<string>",
"paidWad": "<string>",
"realizedPnlWad": "<string>"
}
}
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}Last modified on July 23, 2026
⌘I