PnL Series
curl --request GET \
--url https://codex-api.nomos.trade/v1/wallets/{wallet}/series \
--header 'Authorization: Bearer <token>'import requests
url = "https://codex-api.nomos.trade/v1/wallets/{wallet}/series"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://codex-api.nomos.trade/v1/wallets/{wallet}/series', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"block": 94812300,
"asOf": 1790862180,
"wallet": "0x1f0ebc543b2d411f66947041625c0aa1ce61cf79",
"period": "7d",
"category": "global",
"from": 1790257380,
"to": 1790862180,
"bucket": 3600,
"basis": "settled",
"series": [
"realized",
"total"
],
"points": [
{
"t": 1790257380,
"realized": 0,
"unrealized": 0,
"total": 0,
"openValue": 0,
"openCount": 0
},
{
"t": 1790862180,
"realized": 64011.2,
"unrealized": 50822.68,
"total": 114833.88,
"openValue": 402118.2,
"openCount": 31
}
]
}{
"error": "unknown or revoked API key"
}{
"error": "rate limit: 600 requests a minute; retry in 1 s"
}Wallets
PnL Series
Cumulative settled PnL through the window, from 0, for a PnL chart. Buckets are 1 h (1d, 7d), 4 h (30d) or a day beyond; a custom window gets at most 400 points. The last point adds today’s open book when the window ends now.
GET
/
v1
/
wallets
/
{wallet}
/
series
PnL Series
curl --request GET \
--url https://codex-api.nomos.trade/v1/wallets/{wallet}/series \
--header 'Authorization: Bearer <token>'import requests
url = "https://codex-api.nomos.trade/v1/wallets/{wallet}/series"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://codex-api.nomos.trade/v1/wallets/{wallet}/series', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"block": 94812300,
"asOf": 1790862180,
"wallet": "0x1f0ebc543b2d411f66947041625c0aa1ce61cf79",
"period": "7d",
"category": "global",
"from": 1790257380,
"to": 1790862180,
"bucket": 3600,
"basis": "settled",
"series": [
"realized",
"total"
],
"points": [
{
"t": 1790257380,
"realized": 0,
"unrealized": 0,
"total": 0,
"openValue": 0,
"openCount": 0
},
{
"t": 1790862180,
"realized": 64011.2,
"unrealized": 50822.68,
"total": 114833.88,
"openValue": 402118.2,
"openCount": 31
}
]
}{
"error": "unknown or revoked API key"
}{
"error": "rate limit: 600 requests a minute; retry in 1 s"
}Query Parameters
Response
OK. Gzipped when you send Accept-Encoding: gzip.