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"
}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.
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"
}Authorizations
Your API key: codex_ and 48 hex characters.
Path Parameters
The wallet: 0x and 40 hex.
^0x[0-9a-fA-F]{40}$Query Parameters
A rolling window ending now, or the lifetime. Or give from and to instead.
all, 1d, 7d, 30d, 90d, 1y A custom window's start, unix seconds.
Its end, unix seconds, exclusive. Now when left out.
global, Other, or Politics, Sports, Crypto, Finance, Culture, Mentions, Weather, Economics, Tech (any case).
Response
OK. Gzipped when you send Accept-Encoding: gzip.
The leaderboard rollup's block.
When the rollup ran. Unix seconds.
Unix seconds.
Unix seconds.
Seconds between points.
["realized", "total"] when the window ends now.
Show child attributes
Show child attributes