Finance

Crypto Asset

/extract/json

Snapshot of market data for a cryptocurrency or digital asset.

Download the schemafinance/crypto-asset.json

crypto-asset.schema

// names marked ? are optional

token_name:string// Full name of the token or cryptocurrency. Commonly found in: CoinGecko, CoinMarketCap, exchange listing.
token_symbol:string// Ticker symbol of the token (e.g., BTC, ETH). Commonly found in: CoinGecko, CoinMarketCap, exchange listing.
coingecko_id?:string// CoinGecko identifier for the asset. Commonly found in: CoinGecko API.
contract_address?:string// Smart contract address for the token. Commonly found in: blockchain explorer, CoinGecko.
blockchain?:string// Blockchain network where the token resides. Commonly found in: CoinGecko, blockchain explorer.
price_usd:number// Current price in USD. Commonly found in: CoinGecko, CoinMarketCap, exchange API.
price_change_24h_pct?:number// Price change percentage over the last 24 hours. Commonly found in: CoinGecko, CoinMarketCap.
price_change_7d_pct?:number// Price change percentage over the last 7 days. Commonly found in: CoinGecko, CoinMarketCap.
market_cap_usd?:number// Market capitalization in USD. Commonly found in: CoinGecko, CoinMarketCap.
market_cap_rank?:number// Global market cap rank. Commonly found in: CoinGecko, CoinMarketCap.
volume_24h_usd?:number// 24-hour trading volume in USD. Commonly found in: CoinGecko, CoinMarketCap, exchange.
circulating_supply?:number// Number of tokens currently in circulation. Commonly found in: CoinGecko, CoinMarketCap.
total_supply?:number// Total token supply. Commonly found in: CoinGecko, token contract.
max_supply?:number// Maximum possible token supply. Commonly found in: CoinGecko, whitepaper.
fully_diluted_valuation_usd?:number// Fully diluted valuation (FDV) in USD. Commonly found in: CoinGecko, CoinMarketCap.
ath_usd?:number// All-time high price in USD. Commonly found in: CoinGecko, CoinMarketCap.
ath_date?:string// Date of all-time high price. Commonly found in: CoinGecko, CoinMarketCap.
category?:string// Asset category (e.g., DeFi, Layer 1, stablecoin). Commonly found in: CoinGecko categories, CoinMarketCap tags.
snapshot_at:string// ISO 8601 timestamp of the price snapshot. Commonly found in: API response timestamp.
page_title?:string// Title of the source page. Tabstack auto-fills this from page metadata when left empty.
favicon?:string// Favicon URL of the source page. Tabstack auto-fills this from page metadata when left empty.

Try it live

A sample Crypto Asset document, generated from the schema. Edit it, or paste a real response, and see it checked against the schema instantly. It runs in your browser, nothing is sent anywhere.

your-output.json
validation

Valid, matches Crypto Asset

Every required field is present and each value matches its type. Extra fields are allowed. A field the page does not carry is not guaranteed to come back as null, so check values rather than only checking for null.

/extract/json

Copy-paste usage

The same call in TypeScript, Python, and curl. Point it at your own URL and go. The schema drives the response, so you get back the fields you asked for instead of a page to parse.

Features

  • Typed TypeScript and Python SDKs
  • One call, no parsing code and no second LLM pass
  • The same field names on every request, even when the page layout changes
crypto-asset.ts
// curl -sfLO https://raw.githubusercontent.com/Mozilla-Ocho/tabstack-schemas/main/finance/crypto-asset.json
import Tabstack from '@tabstack/sdk'
import schema from './crypto-asset.json' with { type: 'json' }

const client = new Tabstack() // reads TABSTACK_API_KEY from the environment

try {
  const data = await client.extract.json({
    url: 'https://example.com/investor-relations',
    json_schema: schema,
    effort: 'standard', // 'min' | 'standard' | 'max'
  })

  console.log(data)
} catch (err) {
  console.error('Extraction failed:', err)
}

Ship this schema in one call.

Pass a URL, get matching JSON back. Free to start, no extraction layer to maintain.