crypto-holdings #313
- userId
-
Marlin Goldner @marlin_goldner6
- cryptoId
- crypto/1
- quantity
- 75.69736886
- costBasis
- 42167.208
- purchasedAt
Overview
crypto-holdings / #313
#313
#313
Request
curl example
curl -sS \ "https://example-data.com/api/v1/crypto-holdings/313" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/crypto-holdings/313" ); const cryptoHolding = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/crypto-holdings.d.ts https://example-data.com/types/crypto-holdings.d.ts
import type { CryptoHolding } from "./types/crypto-holdings";
const res = await fetch(
"https://example-data.com/api/v1/crypto-holdings/313"
);
const cryptoHolding = (await res.json()) as CryptoHolding; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/crypto-holdings/313"
)
crypto_holding = res.json() Response
{
"id": 313,
"userId": 160,
"cryptoId": 1,
"quantity": 75.69736886,
"costBasis": 42167.208,
"purchasedAt": "2024-10-08T03:06:46.944Z"
}