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
}
}
Trading
Get portfolio
Get your current positions across all markets
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
}
}
Documentation Index
Fetch the complete documentation index at: https://docs.bayse.markets/llms.txt
Use this file to discover all available pages before exploring further.
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
Your positions across all markets.
Show position fields
Show position fields
Position UUID.
YES or NO.UUID of the outcome.
Asset identifier.
Total shares held.
Shares available to sell.
Average price paid per share.
Total amount invested.
Current market value of position.
Current price per share if sold now.
Payout if this outcome resolves as the winner.
Percentage gain or loss from average price.
Currency this position is denominated in.
Your user UUID.
Summary of the market this position is in.
Show market fields
Show market fields
ISO 8601 timestamp.
ISO 8601 timestamp.
Total amount invested across all positions.
Total current value of all positions.
Overall portfolio gain or loss percentage.
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
}
}
⌘I