---
title: "PnL / ROI"
method: GET
path: "/api/v1/calc/pnl"
tags: ["Calculators"]
---

# PnL / ROI

`GET /api/v1/calc/pnl`

## Request

- Base URL: `https://marginpad.io`
- URL: `https://marginpad.io/api/v1/calc/pnl`
- Auth: none declared

Profit/loss and ROI for a position. Size is the position size in units of the asset, not in dollars.

## Query parameters

- `entry` string, required
- `exit` string, required
- `size` string, required
- `leverage` string
- `side` string

## Response `200`

ok

---

[API](https://skmtc.dev/marginpad/apis/marginpad-free-crypto-api.md) · [All operations](https://skmtc.dev/marginpad/apis/marginpad-free-crypto-api/llms.txt) · [OpenAPI document](https://skmtc.dev/marginpad/apis/marginpad-free-crypto-api/revisions/27d21fcd0bf0?raw)
