crypto / #16
- symbol
- ATOM
- name
- Cosmos
- slug
- cosmos
- marketCap
- 3200400000
- price
- 9.144
- priceChangePercent24h
- -11.04
- volume24h
- 7352173078
- circulatingSupply
- 350000000
- totalSupply
- —
- createdAt
Component variants
Medium
Cosmos
#16
Small
crypto/16 curl -sS \
"https://example-data.com/api/v1/crypto/16" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/crypto/16"
);
const crypto = await res.json();import type { Crypto } from "https://example-data.com/types/crypto.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/crypto/16"
);
const crypto = (await res.json()) as Crypto;import requests
res = requests.get(
"https://example-data.com/api/v1/crypto/16"
)
crypto = res.json() {
"id": 16,
"symbol": "ATOM",
"name": "Cosmos",
"slug": "cosmos",
"marketCap": 3200400000,
"price": 9.144,
"priceChangePercent24h": -11.04,
"volume24h": 7352173078,
"circulatingSupply": 350000000,
"totalSupply": null,
"createdAt": "2024-07-22T10:12:01.631Z"
}