curl --request GET \
--url 'https://uk.raze.sh/api/sol/wallets/{address}/pnl/history?apiKey='{
"success": true,
"address": "<string>",
"resolution": "1h",
"data": [
{
"bucket": "2023-11-07T05:31:56Z",
"realizedPnlSol": 123,
"unrealizedPnlSol": 123,
"totalPnlSol": 123,
"solPriceUsd": 123
}
],
"count": 123,
"tradesProcessed": 123,
"tokensTracked": 123,
"solPriceUsd": 123,
"timestamp": "2023-11-07T05:31:56Z"
}Time-series PnL with FIFO cost-basis and unrealized position valuation. Returns cumulative realized PnL, unrealized PnL, and total PnL per bucket.
curl --request GET \
--url 'https://uk.raze.sh/api/sol/wallets/{address}/pnl/history?apiKey='{
"success": true,
"address": "<string>",
"resolution": "1h",
"data": [
{
"bucket": "2023-11-07T05:31:56Z",
"realizedPnlSol": 123,
"unrealizedPnlSol": 123,
"totalPnlSol": 123,
"solPriceUsd": 123
}
],
"count": 123,
"tradesProcessed": 123,
"tokensTracked": 123,
"solPriceUsd": 123,
"timestamp": "2023-11-07T05:31:56Z"
}Start timestamp (Unix seconds)
End timestamp (Unix seconds)
Time bucket resolution
1h, 1d Maximum trades to process
x <= 50000