Skip to main content
GET
PnL Series

Authorizations

Authorization
string
header
required

Your API key: codex_ and 48 hex characters.

Path Parameters

wallet
string
required

The wallet: 0x and 40 hex.

Pattern: ^0x[0-9a-fA-F]{40}$

Query Parameters

period
enum<string>
default:all

A rolling window ending now, or the lifetime. Or give from and to instead.

Available options:
all,
1d,
7d,
30d,
90d,
1y
from
integer

A custom window's start, unix seconds.

to
integer

Its end, unix seconds, exclusive. Now when left out.

category
string
default:global

global, Other, or Politics, Sports, Crypto, Finance, Culture, Mentions, Weather, Economics, Tech (any case).

Response

OK. Gzipped when you send Accept-Encoding: gzip.

block
integer | null

The leaderboard rollup's block.

asOf
integer | null

When the rollup ran. Unix seconds.

wallet
string
period
string
category
string
from
integer

Unix seconds.

to
integer

Unix seconds.

bucket
integer

Seconds between points.

basis
string
series
string[]

["realized", "total"] when the window ends now.

points
object[]