Skip to content
SETSimple Easy Transactions
SET DocsSET Crypto API Suite and SET API referenceCurrent as of 2026-11-21 · wallet release 7d8a79fb
Browse: SET API

SET API · Analytics

Money in and out per period

GET/v1/analytics/volume

Key scope: read · Success: 200

Money in and out per period: one row per period, direction (in or out), currency and group, with count and amount. Amounts are decimal strings summed per currency, never across currencies.

Query parameters

since string
A UTC date, YYYY-MM-DD: the first day counted. With neither since nor until, the window is the last 30 days ending tomorrow at 00:00 UTC.
until string
A UTC date, YYYY-MM-DD, exclusive. It must be after since and at most 366 days later.
interval "day" | "week" | "month"
day (default), week (a week starts on Monday) or month. Anything else answers 400 interval_invalid.
groupBy "currency" | "type" | "rail" | "customer"
currency (default), type, rail or customer. Anything else answers 400 group_by_invalid.

Notes

  • Needs the read scope. Any account type; no deployment switch.
  • A window longer than 366 days answers 400 window_too_long; a malformed date, or an until that is not after since, answers 400 window_invalid.
  • group repeats the currency when groupBy=currency.
  • With groupBy=rail, group is the source chain for a Cash-Out payment, the payout rail for a payout, card for a card payment, and null for deposits, Conversion payments, wallet withdrawals and refunds.
  • A sandbox Cash-Out payment has no source chain recorded, so under groupBy=rail its group is null.
  • sandbox: true marks an answer for a test key.
  • The example was made with a sandbox key on a platform account after three USD deposits, one EUR deposit, three Cash-Out payments and one Conversion payment.
  • This example is a recorded run of SET's own code (wallet release e9b03447) with a sandbox key; ids and times are that run's.

Errors

  • 400 window_invalid
  • 400 window_too_long
  • 400 interval_invalid
  • 400 group_by_invalid

All codes: Errors.