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

venue
enum<string>

Only profit and loss on this venue.

Available options:
kalshi,
polymarket,
polymarket_us,
hyperliquid
market_id
string

Only profit and loss on this market: realized from its closed and reduced positions, unrealized from its open ones.

Required string length: 1 - 512

Response

Profit and loss of the key’s trading account

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