Skip to main content
The Wallet Stats API gives you access to financial analytics from your Fragment ledger — the same data that powers the Whop dashboard charts. Whop automatically resolves the wallet from your API key’s auth context. See the API Reference for the full list of parameters and allowed values.
The time_series endpoint requires the company:balance:read permission. See Permissions to learn how to request permissions for your app.

Discover available filters

Before building queries, call the schema endpoint to get the full taxonomy of reporting categories, groupings, and line categories with human-readable descriptions. No authentication required.
The response tells you:
  • reporting_categories — predefined report scopes (e.g. gross_income, net_activity) and which line categories each one includes
  • groupings — logical buckets (e.g. payments, refunds, disputes) and their line categories
  • line_categories — every active transaction type with its description, grouping, and which reports it belongs to
Use this to understand what filters to pass to the time_series endpoint. See the Schema API Reference for the full response schema.

Time series

Returns total amount and line_count per period. Filter with reporting_category, grouping, or line_category to narrow results. Whop resolves the wallet from your API key’s auth context, so the URL doesn’t need an account ID.

Parameters

Example

Filtering

Use reporting_category to scope to a predefined set of line categories (e.g. only income-related activity):
Use grouping to narrow to specific groupings (e.g. only payments and refunds):
Use line_category for the most granular filtering:
You can combine all three filters. Whop applies reporting_category first, then grouping, and then line_category.

Global queries

Pass account_id=global to query aggregated data across all wallets. This requires admin access.
Global queries omit wallet_id from the response metadata since data spans all wallets.

Currency handling

There are two separate currency controls: filter and convert. Filtercurrency restricts rows to a single currency:
Convertconvert_currency converts all amounts to a target currency using historical exchange rates, collapsing multi-currency rows into one per period:
When you set neither, rows include a currency field and you may get multiple rows per period (one per currency):
You can combine both: currency=eur&convert_currency=usd filters to euro rows, then converts them to United States dollars.

Errors