Skip to main content
GET
cURL
25 credits per request
In Query field “connectionId”: credits are multiplied by the number of values.
If the value of “connectionId” in Query is “all”, multiplier is 250 credits.
In Query field “blockchain”: credits are multiplied by the number of values.
If the value of “blockchain” in Query is “all”, multiplier is 250 credits.
Multipliers can be applied multiple times.

  • Chronological period P&L and P&L percentage points
  • An aggregate across the synchronized requested wallet networks
  • An empty result when no requested network has synchronized history
  • address: Wallet address
  • connectionId or blockchain: One value, comma-separated values, or all
  • interval: hourly, daily, weekly, monthly, or yearly
  • Exactly one time mode: range, or both from and to
  • currency: Defaults to USD
Use from=2025-09-01 and to=2025-10-01 because from is inclusive and to is exclusive. Keep interval=daily for daily points, or use interval=monthly for one value covering the month.

Authorizations

X-API-KEY
string
header
required

API key required to access the endpoints. Generate one from your dashboard at https://openapi.coinstats.app and pass it in the X-API-KEY request header. Never expose your key in client-side code.

Query Parameters

range
enum<string>

Preset time range. Mutually exclusive with from/to.

Available options:
24h,
1w,
1m,
3m,
6m,
1y,
all
Example:

"1m"

from
string

Inclusive custom-range start. Use YYYY-MM-DD (UTC midnight) or an ISO timestamp with timezone. Must be provided with to and without range.

Example:

"2026-07-25T00:00:00.000Z"

to
string

Exclusive custom-range end. Use YYYY-MM-DD (UTC midnight) or an ISO timestamp with timezone. Must be provided with from and without range.

Example:

"2026-08-24T00:00:00.000Z"

interval
enum<string>
required

Chart bucket interval. Hourly is available only for 24h or a custom window of at most 24 hours entirely within the latest 24 hours.

Available options:
hourly,
daily,
weekly,
monthly,
yearly
Example:

"daily"

currency
string
default:USD

Currency for P&L values. Defaults to USD.

Example:

"USD"

address
string
required

Wallet address whose synchronized history should be used.

Example:

"0x1234567890abcdef1234567890abcdef12345678"

connectionId
string

A connection ID, comma-separated connection IDs, or all. Takes precedence over blockchain.

Example:

"ethereum,base-wallet"

blockchain
string

A blockchain, comma-separated blockchains, or all. Used only when connectionId is omitted.

Example:

"ethereum,base"

Response

Cash-flow-adjusted historical wallet P&L chart

result
object[]
required
meta
object
required