Skip to main content
GET
/
v1
/
fungibles
/
{fungible_id}
/
charts
/
{chart_period}
Get a chart for a fungible asset
curl --request GET \
  --url https://api.zerion.io/v1/fungibles/{fungible_id}/charts/{chart_period} \
  --header 'Authorization: Basic <encoded-value>'
{
  "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
        ]
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

fungible_id
string
required

Unique fungible ID

Maximum string length: 44
chart_period
enum<string>
default:day
required

Chart period

Available options:
hour,
day,
week,
month,
3months,
6months,
year,
5years,
max
Required string length: 3 - 7

Query Parameters

currency
enum<string>
default:usd

Denominated currency value of returned prices

Available options:
eth,
btc,
usd,
eur,
krw,
rub,
gbp,
aud,
cad,
inr,
jpy,
nzd,
try,
zar,
cny,
chf

Response

Resource for the requested fungible chart

data
object
required