v1

latestOpenAPI 3.0.32026-07-2639188178.2 KB
fungibles

Get a chart for a fungible asset by implementation

This endpoint returns the chart for a fungible asset for a selected period, identified by its implementation. The implementation is a chain:address pair (e.g., "ethereum:0xa5a4214bb5f00c86b7969b7dc007302e4f6f05d6").

get/v1/fungibles/by-implementation/charts/{chart_period}

Path parameters

chart_period'hour' | 'day' | 'week' | 'month' | '3months' | '6months' | 'year' | '5years' | 'max' required

Chart period. Determines both the time window covered and the spacing between chart points (points). Each period samples the window at a fixed interval, so the number of points is roughly constant (~290–460) regardless of period:

PeriodPoint intervalTime window
hour10 secondslast 1 hour
day5 minuteslast 24 hours
week30 minuteslast 7 days
month2 hourslast 30 days
3months6 hourslast 90 days
6months12 hourslast 180 days
year1 daylast 365 days
5years4 dayslast 5 years
maxvariesfull available history

Point counts are approximate, and begin_at / end_at are aligned to the interval. For max, the interval is derived from the amount of available history (targeting ~400 points), so it varies; for wallet and wallet-set charts the spacing is at least 1 day.

Query parameters

implementationstring required

Fungible implementation in the format chain:address (e.g., "ethereum:0xa5a4214bb5f00c86b7969b7dc007302e4f6f05d6").

If only the chain is provided without an address (e.g., "ethereum"), it will return the chart for the base asset of that chain.

currency'eth' | 'btc' | 'usd' | 'eur' | 'krw' | 'rub' | 'gbp' | 'aud' | 'cad' | 'inr' | 'jpy' | 'nzd' | 'try' | 'zar' | 'cny' | 'chf'

Denominated currency value of returned prices

Response

Resource for the requested fungible chart

Example response

{
  "links": {
    "self": "https://api.zerion.io/v1/fungibles/fda0820a-9cff-40f5-997b-a76b9f9d60e7/charts/day"
  },
  "data": {
    "type": "fungible_charts",
    "id": "fda0820a-9cff-40f5-997b-a76b9f9d60e7-week",
    "attributes": {
      "begin_at": "2023-01-18T11:00:00Z",
      "end_at": "2023-01-25T10:30:00Z",
      "stats": {
        "first": 1145.00999,
        "min": 1133.034,
        "avg": 1689.1110093,
        "max": 2345.601,
        "last": 1515.34
      },
      "points": [
        [
          1674039600,
          1145.00999
        ]
      ]
    }
  }
}