Skip to main content
GET
/
api
/
v1
/
portfolio
/
pnl-by-market
P&L breakdown by market
curl --request GET \
  --url https://carboncopy.inc/api/v1/portfolio/pnl-by-market \
  --header 'Authorization: Bearer <token>'
{
  "breakdown": [
    {
      "marketId": "will-trump-win-2024",
      "title": "Will Trump win the 2024 election?",
      "realizedPnl": -5.2,
      "totalVolume": 150,
      "tradeCount": 4
    }
  ]
}

Authorizations

Authorization
string
header
required

API key in the format cc_<64 hex characters>. Obtain from the Dashboard under Settings → API Keys.

Response

P&L breakdown by market.

breakdown
object[]