Skip to main content
GET
/
v1
/
pm
/
portfolio
Get portfolio
curl --request GET \
  --url https://relay.bayse.markets/v1/pm/portfolio
{
  "outcomeBalances": [
    {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "outcome": "YES",
      "outcomeId": "c3d4e5f6-a7b8-9012-cdef-123456789012",
      "balance": 138.21,
      "availableBalance": 138.21,
      "averagePrice": 0.7235,
      "cost": 100,
      "currentValue": 107.60,
      "sellPrice": 0.7786,
      "payoutIfOutcomeWins": 138.21,
      "percentageChange": 7.60,
      "currency": "USD",
      "market": {
        "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
        "title": "Will Super Eagles qualify?",
        "event": {
          "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
          "title": "Will Super Eagles qualify for AFCON 2026?",
          "type": "single",
          "engine": "AMM"
        }
      },
      "createdAt": "2026-02-17T12:00:00Z",
      "updatedAt": "2026-02-17T12:05:00Z"
    }
  ],
  "portfolioCost": 100,
  "portfolioCurrentValue": 107.60,
  "portfolioPercentageChange": 7.60,
  "pagination": {
    "page": 1,
    "size": 20,
    "lastPage": 1,
    "totalCount": 1
  }
}

Authentication

Read authentication required — X-Public-Key header. See the Authentication guide.

Example request

curl "https://relay.bayse.markets/v1/pm/portfolio" \
  -H "X-Public-Key: pk_live_abcdef123456"

Response

outcomeBalances
array
Your positions across all markets.
portfolioCost
number
Total amount invested across all positions.
portfolioCurrentValue
number
Total current value of all positions.
portfolioPercentageChange
number
Overall portfolio gain or loss percentage.
pagination
object
Pagination information.
{
  "outcomeBalances": [
    {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "outcome": "YES",
      "outcomeId": "c3d4e5f6-a7b8-9012-cdef-123456789012",
      "balance": 138.21,
      "availableBalance": 138.21,
      "averagePrice": 0.7235,
      "cost": 100,
      "currentValue": 107.60,
      "sellPrice": 0.7786,
      "payoutIfOutcomeWins": 138.21,
      "percentageChange": 7.60,
      "currency": "USD",
      "market": {
        "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
        "title": "Will Super Eagles qualify?",
        "event": {
          "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
          "title": "Will Super Eagles qualify for AFCON 2026?",
          "type": "single",
          "engine": "AMM"
        }
      },
      "createdAt": "2026-02-17T12:00:00Z",
      "updatedAt": "2026-02-17T12:05:00Z"
    }
  ],
  "portfolioCost": 100,
  "portfolioCurrentValue": 107.60,
  "portfolioPercentageChange": 7.60,
  "pagination": {
    "page": 1,
    "size": 20,
    "lastPage": 1,
    "totalCount": 1
  }
}