Skip to main content
GET
cURL
Use this endpoint to chart a wallet’s sports and esports profit and loss over time or compare its last 7, 30, and 90 days. It returns daily values, monthly and yearly totals, and drawdowns from break-even or a later peak. Use date bounds and selected sections to request only the daily points and sections your client needs. A day’s daily_change is the realized P&L of the wallet’s sports and esports markets dated to that UTC day: a settled market on its resolution day, else its last trade day. The days plus realized.undated_pnl equal the Sports P&L that Trader returns as pnl.in_scope.realized_pnl. For the current grade and Polymarket’s figures for the whole wallet, use Trader.

Parameters

Key response fields

Date bounds and selected sections

An unselected section is absent from data. Cumulative values keep their full-history baseline, so subtract view.anchor.cumulative_profit when it is available to calculate a change relative to the window. The date bounds do not recalculate the 7-, 30-, and 90-day statistics or produce partial monthly and yearly totals. An unfiltered request still returns all 5 sections.

Example

What it does not return

  • Numbers recalculated at request time. The series is read from the wallet’s sports and esports record, which 0xinsider recomputes after a sync, so it can lag the newest fills. freshness_at says when the record was last computed.
  • An invented curve. A wallet 0xinsider knows but that has no sports or esports day gets a 200 with empty selected arrays and series_status: "ready".
  • A 200 for a wallet that does not resolve. That returns 404.
  • Markets outside sports and esports, or unrealized profit. entries[] is realized sports and esports P&L only. For the value of the wallet’s open positions, read pnl.unrealized on Trader.

Caching

Save the response’s ETag and send it in If-None-Match on your next request. If the returned representation has not changed, the server returns 304 Not Modified with no body. The ETag covers the representation, including the date bounds and selected sections.

Authorizations

Authorization
string
header
required

Legacy default or named integration API key, or OAuth 2.1 access token, in the Authorization header as Bearer oxi_sk_live_... or Bearer oxi_at_.... Default keys retain full access; integration keys are limited to their approved read, webhooks, export and usage scopes and expire within 90 days. All credentials share the owner's account limits. Data calls require an active Pro subscription and return live data. A 401 carries WWW-Authenticate: Bearer resource_metadata="https://api.0xinsider.com/.well-known/oauth-protected-resource" (RFC 6750 section 3, RFC 9728).

Scopes

read

Read markets, traders, large trades, positions, reports, search, the event stream and every MCP tool

Headers

X-Query-Validation
enum<string>

Opt into strict query-name validation. The default is compatible: unknown names are ignored and reported in X-Query-Ignored. With strict, an unknown name returns 400 bad_request with error.reason unknown_query_parameter before the handler runs, including when its percent escape is incomplete.

Available options:
strict

Path Parameters

address
string
required

Wallet address (0x...), username, or trd_-prefixed trader id.

Query Parameters

from
string

Inclusive UTC calendar-date lower bound in YYYY-MM-DD form for the daily series (entries and drawdown). Omit for the whole stored history. A value that is not a calendar date, or a from later than to, returns 400 bad_request with error.param from. Does not change stats, monthly or year_totals, which stay defined over the full history.

Pattern: ^\d{4}-\d{2}-\d{2}$
to
string

Inclusive UTC calendar-date upper bound in YYYY-MM-DD form for the daily series (entries and drawdown). Omit for the whole stored history. A value that is not a calendar date returns 400 bad_request with error.param to. Does not change stats, monthly or year_totals.

Pattern: ^\d{4}-\d{2}-\d{2}$
sections
enum<string>[]

Which sections of the object to return. Repeatable and comma-separated: entries, stats, monthly, year_totals, drawdown. Omit it, or send it empty, for all five. A section left out is absent from data. An unrecognized name returns 400 bad_request with error.param sections rather than being ignored, so a typo cannot look like a successful request that silently dropped the section you came for.

Available options:
entries,
stats,
monthly,
year_totals,
drawdown
sections[]
enum<string>[]

Backward-compatible bracket alias for sections, for clients that emit array keys. Repeatable and comma-separated: entries, stats, monthly, year_totals, drawdown.

Available options:
entries,
stats,
monthly,
year_totals,
drawdown

Response

Trader P&L object

object
string
required
Allowed value: "trader_pnl"
data
object
required

A trader's sports and esports daily P&L object. id, freshness_at, series_status and realized are always present. The five sections -- entries, stats, monthly, year_totals, drawdown -- are present unless the request's sections parameter excluded them, so a request that sends no sections always carries all five. An excluded section is absent from the object, never null and never an empty array. While series_status is pending the sections are empty and never mean zero.

meta
object
required