Skip to main content
GET
Error

Authorizations

Authorization
string
header
required

A Lean API key, sent as Authorization: Bearer <key>. A test key (lean_sk_test_...) simulates orders and fills with no money; a live key (lean_sk_live_...) trades for real within the key's limits. Every successful response says which mode answered in data.livemode.

Query Parameters

interval
enum<string>
default:1d

Spacing between points.

Available options:
1h,
1d
start
string<date-time>

Start of the range. Defaults to 30 days before end.

end
string<date-time>

End of the range. Defaults to now.

venue
enum<string>

Only profit and loss on this venue.

Available options:
kalshi,
polymarket,
polymarket_us,
hyperliquid

Response

Profit and loss of the key’s trading account over time

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object
required