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

# Get PnL per obligation v2

`GET /v2/kamino-market/{market-pubkey}/obligations/{obligation-pubkey}/pnl/`

## Request

- Base URL: `https://api.kamino.finance`
- URL: `https://api.kamino.finance/v2/kamino-market/{market-pubkey}/obligations/{obligation-pubkey}/pnl/`
- Auth: none declared

You can specify pnl mode with query param positionMode with one of these values: (obligation_all_time, current_obligation). By default, pnl mode is set to current_obligation position For xSOL pairs, useStakeRate query param can be set to true to calculate the PnL using the stake rate. By default, it is set to false.

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
- `obligation-pubkey` string, required

## Query parameters

- `positionMode` string
- `useStakeRate` 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)
