Get Positions
Retrieve all open positions for a wallet address.
GET
/api/portfolio/:wallet
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| wallet | string | required | Wallet address (0x...) |
Response
Response
200 OK
{
"success": true,
"data": [
{
"market_id": 142,
"market_title": "Will Bitcoin reach $150K by July 2026?",
"side": "YES",
"shares": 161.29,
"avg_price": 0.62,
"current_price": 0.68,
"current_value": 109.68,
"cost_basis": 100.00,
"pnl": 9.68,
"pnl_percent": 9.68,
"status": "active"
}
]
}
Example
curl https://oddsforge.org/api/portfolio/0x1234567890abcdef1234567890abcdef12345678
OddsForge