Skip to main content
GET
/
kvaults
/
users
/
{userPubkey}
/
vaults
/
{vaultPubkey}
/
pnl
/
history
Get user kvault pnl history
curl --request GET \
  --url https://api.kamino.finance/kvaults/users/{userPubkey}/vaults/{vaultPubkey}/pnl/history
{
  "history": [
    {
      "timestamp": 123,
      "type": "buy",
      "position": "1234.56789",
      "quantity": "1234.56789",
      "tokenPrice": {
        "usd": "1234.56789",
        "sol": "1234.56789",
        "token": "1234.56789"
      },
      "sharePrice": {
        "usd": "1234.56789",
        "sol": "1234.56789",
        "token": "1234.56789"
      },
      "costBasis": {
        "usd": "1234.56789",
        "sol": "1234.56789",
        "token": "1234.56789"
      },
      "realizedPnl": {
        "usd": "1234.56789",
        "sol": "1234.56789",
        "token": "1234.56789"
      },
      "pnl": {
        "usd": "1234.56789",
        "sol": "1234.56789",
        "token": "1234.56789"
      },
      "positionValue": {
        "usd": "1234.56789",
        "sol": "1234.56789",
        "token": "1234.56789"
      },
      "investment": {
        "usd": "1234.56789",
        "sol": "1234.56789",
        "token": "1234.56789"
      }
    }
  ],
  "totalPnl": {
    "usd": "1234.56789",
    "sol": "1234.56789",
    "token": "1234.56789"
  },
  "totalCostBasis": {
    "usd": "1234.56789",
    "sol": "1234.56789",
    "token": "1234.56789"
  }
}

Path Parameters

vaultPubkey
string
required

Valid base58-encoded address of the vault

Example:

"HDsayqAsDWy3QvANGqh2yNraqcD8Fnjgh73Mhb3WRS5E"

userPubkey
string
required

Valid base58-encoded address of the user wallet

Example:

"AxqtG9SHDkZTLSWg81Sp7VqAzQpRqXtR9ziJ3VQAS8As"

Query Parameters

start

Date input (ISO 8601 string or epoch in ms)

end

Date input (ISO 8601 string or epoch in ms)

Response

OK

history
object[]
required
totalPnl
object
required
totalCostBasis
object
required