---
title: "Get PnL per user"
method: GET
path: "/kamino-market/{market-pubkey}/users/{user-pubkey}/pnl"
tags: ["Kamino Lending"]
---

# Get PnL per user

`GET /kamino-market/{market-pubkey}/users/{user-pubkey}/pnl`

## Request

- Base URL: `https://api.kamino.finance`
- URL: `https://api.kamino.finance/kamino-market/{market-pubkey}/users/{user-pubkey}/pnl`
- Auth: none declared

You can specify pnl mode with query param positionMode with one of these values: {user_all_time, user_all_current_positions}. By default, pnl mode is set to user_all_current_positions position

These parameters specify whether we return the current position PnL or the accumulated PnL throughout the lifetime of the user's obligation (even before they were closed).

## Path parameters

- `market-pubkey` string, required
- `user-pubkey` string, required

## Query parameters

- `positionMode` string

## Response `200`

OK

---

[API](https://skmtc.dev/kamino/apis/kamino-finance-public-api.md) - [All operations](https://skmtc.dev/kamino/apis/kamino-finance-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kamino/apis/kamino-finance-public-api/revisions/f049f5a79b7e?raw)
