Skip to main content
GET
/
api
/
v1
/
stats
/
wallets
/
time_series
Query time series
curl --request GET \
  --url https://api.whop.com/api/v1/stats/wallets/time_series \
  --header 'Authorization: Bearer <token>'
{ "data": [ { "period": "2025-01-01", "amount": 14550.35, "line_count": 342 }, { "period": "2025-02-01", "amount": 18200, "line_count": 410 } ], "metadata": { "wallet_id": "ldgr_xxx", "from": "2025-01-01", "to": "2025-06-01", "group_by": "month", "currency": "usd", "timezone": "UTC" } }

Documentation Index

Fetch the complete documentation index at: https://docs.whop.com/llms.txt

Use this file to discover all available pages before exploring further.

Requires the company:balance:read permission. See Permissions.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

account_id
string

Query a sub-account's wallet instead of the caller's own. Pass a biz_ or user_ tag. The caller must have company:balance:read permission on the target account.

Example:

"biz_abc123"

from
string<date>
required

Start date in ISO 8601 format.

Example:

"2025-01-01"

to
string<date>
required

End date in ISO 8601 format.

Example:

"2025-12-31"

group_by
enum<string>
default:month

Time bucket granularity.

Available options:
day,
week,
month
reporting_category
string

Filter to a predefined reporting category. Each category maps to a curated set of line categories. Call /describe to see all reporting categories and which line categories each one includes.

grouping
string[]

Filter to specific groupings. Pass multiple values to include several (e.g. grouping[]=payments&grouping[]=refunds). Call /describe to see all groupings and which line categories belong to each.

line_category
string[]

Filter to specific transaction types. Pass multiple values to include several (e.g. line_category[]=payment_gross&line_category[]=payment_refund). When omitted, all categories are included. Call /describe to see all line categories with descriptions.

currency
string

Filter to only include rows denominated in this currency. When omitted, rows for all currencies are returned and a currency field appears on each row.

Examples:

"usd"

"eur"

"gbp"

convert_currency
string

Convert all amounts to this currency using historical exchange rates, collapsing multi-currency rows into one row per period. Can be combined with currency to first filter then convert.

Examples:

"usd"

"eur"

timezone
string
default:UTC

IANA timezone for period boundaries.

Examples:

"UTC"

"America/New_York"

"Europe/London"

Response

Time-series data with metadata.

data
object[]
metadata
object