---
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/`

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).

## Response `200`

OK

---

[API](https://skmtc.net/kamino/apis/kamino-finance-public-api.md) · [All operations](https://skmtc.net/kamino/apis/kamino-finance-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kamino/kamino-finance-public-api/revisions/f049f5a79b7e/schema)
