Get your portfolio
Returns a snapshot of your locked stake, realised PnL, and claimable balance.
GET
Get your portfolio
Last modified on August 12, 2026
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Returns a snapshot of your locked stake, realised PnL, and claimable balance.
curl --request GET \
--url https://api.trepa.app/users/{id}/portfolioconst options = {method: 'GET'};
fetch('https://api.trepa.app/users/{id}/portfolio', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'GET'};
fetch('https://api.trepa.app/users/{id}/portfolio', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trepa.app/users/{id}/portfolio"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.trepa.app/users/{id}/portfolio"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"staked_amount": 123,
"claimed_amount": 123,
"unclaimed_amount": 123
}curl --request GET \
--url https://api.trepa.app/users/{id}/portfolioconst options = {method: 'GET'};
fetch('https://api.trepa.app/users/{id}/portfolio', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'GET'};
fetch('https://api.trepa.app/users/{id}/portfolio', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trepa.app/users/{id}/portfolio"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.trepa.app/users/{id}/portfolio"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"staked_amount": 123,
"claimed_amount": 123,
"unclaimed_amount": 123
}