Skip to main content
GET
/
api
/
sol
/
wallets
/
{address}
/
pnl
/
history
Time-series FIFO PnL with unrealized valuation
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"
}

Authorizations

apiKey
string
query
required

Path Parameters

address
string
required

Query Parameters

from
integer
required

Start timestamp (Unix seconds)

to
integer
required

End timestamp (Unix seconds)

resolution
enum<string>
default:1h

Time bucket resolution

Available options:
1h,
1d
limit
integer
default:50000

Maximum trades to process

Required range: x <= 50000

Response

Success

success
boolean
address
string
resolution
enum<string>
Available options:
1h,
1d
data
object[]
count
integer
tradesProcessed
integer
tokensTracked
integer

Number of unique tokens in the wallet's trade history

solPriceUsd
number
timestamp
string<date-time>