Skip to main content
GET
Wallet PnL

Path Parameters

wallet
string
required

Response

OK

wallet
string | null

The wallet, lowercase

Example:

"0x1234567890abcdef1234567890abcdef12345678"

totals
object | null

Cumulative realized PnL since historyStartsAt, summed over the wallet's applications; null when there is no PnL history for the wallet (coverage none), never zero for an unknown.

historyStartsAt
integer<int64> | null

Where the wallet's PnL history starts: the hour of its earliest sample, as Unix milliseconds; null with coverage none

Required range: x >= 0
Example:

1760486400000

dataThrough
integer<int64> | null

The newest PnL sample the figures include, as Unix milliseconds; null with coverage none

Required range: x >= 0
Example:

1762041600000

coverage
enum<string> | null

none: no PnL history for the wallet (totals null, no points). partial: the wallet traded before its history starts (or traded under an application with no history), so totals and points leave that trading out and are not all-time. complete: the history covers every fill of the wallet, so totals are all-time.

Available options:
none,
partial,
complete
Example:

"complete"

bucketInterval
enum<string> | null

Width of each point's bucket

Available options:
1d
Example:

"1d"

points
object[] | null

One point per UTC day from the day historyStartsAt falls in through the current day, oldest first; empty with coverage none.