Skip to main content
GET
cURL
40 credits per request
In Query field “wallets”: credits are multiplied by the number of values.
If the value of “wallets” in Query is “all”, multiplier is 400 credits.

  • If aggregated is true, the response will include aggregated data for all wallets.
  • If aggregated is false, the response will include data for each wallet individually.
  • wallets: Comma-separated connectionId:address pairs. At least one wallet is required.
  • type: Time range for the chart data.
  • aggregated: Boolean toggling the two response shapes described in “Aggregate data” above.
  • currency: Display currency (defaults to USD).

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

type
enum<string>
required

One of time periods.

Available options:
24h,
1w,
1m,
3m,
6m,
1y,
all
wallets
string
required

Comma-separated list of wallet addresses in format "connectionId:address" or "blockchain:address".

Example:

"ethereum:0x1234567890abcdef1234567890abcdef12345678,polygon:0x4567890abcdef1234567890abcdef1234567890abc"

aggregated
enum<string>
default:true

Whether to return aggregated data

Available options:
true,
false
Example:

"true"

currency
string
default:USD

Currency for chart values. Default is USD.

Example:

"USD"

Response

Get Chart data for multiple wallets

data
number[][]
required
  1. TIMESTAMP - Unix timestamp in seconds
  2. USD - Price in USD
  3. BTC - Price in Bitcoin
  4. ETH - Price in Ethereum
Example:
walletAddress
string

The wallet address

Example:

"0x1234567890abcdef1234567890abcdef12345678"

connectionId
string

The identifier of connection

Example:

"base-wallet"

blockchain
string

The blockchain network identifier

Example:

"base"

message
string

Error messages for each wallet in case of errors. If a wallet encounters an error, its corresponding message will be included. If all wallets are successful, this field will be empty.

Example:

"An error occurred while fetching data"