---
title: "Get Profit and Loss"
method: GET
path: "/api/workflows/polymarket/getPnL"
---

# Get Profit and Loss

`GET /api/workflows/polymarket/getPnL`

Retrieve aggregate profit and loss information across all positions for a specific user.

## Query parameters

- `userId` string, required — Address type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.
- `proxyWallet` string — Address type - can be EvmAddress, HyperCoreAddress, SolanaAddress, or AltVmAddress.

## Response `200`

Profit and loss summary

- PnLResponse
  - `currentPositions` number, float, required — Total PnL from current open positions
  - `closedPositions` number, float, required — Total PnL from closed positions
  - `allTime` number, float, required — All-time total PnL

## Other responses

- `400` — Bad request due to missing or invalid parameters
- `401` — Unauthorized - Invalid or missing API key
- `500` — Internal server error

---

[API](https://skmtc.dev/swaps/apis/prediction-market-data-api.md) · [All operations](https://skmtc.dev/swaps/apis/prediction-market-data-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/swaps/prediction-market-data-api/revisions/03e917d60cb7/schema)
