Skip to main content
The Wallet Stats API gives you access to financial analytics powered by your Fragment ledger — the same data that powers the Whop dashboard charts. The wallet is resolved automatically 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. The wallet is resolved from your API key’s auth context — no account ID needed in the URL.

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:
All three filters can be combined — they are applied in order: reporting_category first, then grouping, 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 neither is set, 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 EUR rows then converts them to USD.

Errors