Live Data Integration

What is Live Data?

Live Data refers to real-time market information fetched from external APIs via the Model Context Protocol (MCP). This allows the Knowledge Assistant to provide current prices, index values, and benchmark data alongside information from the document knowledge base.

Available Data Sources

The system currently integrates with the Bitwise Investments API to provide:

Cryptocurrency Prices

Historical and current prices for major cryptocurrencies. Supports querying specific dates, date ranges, and relative time periods.

Supported: BTC, ETH, SOL, ADA, DOGE, AVAX, SUI, LINK, LTC, DOT, XRP, BNB, USDT, USDC, UNI

Bitwise Indexes

Index values, historical performance, and constituent breakdowns for Bitwise's proprietary crypto indexes. Includes backtested data where available.

Supported: BITWISE10, DEFI, CRYPTOLEADERSSMA, NFT, BITWISE10EXBTC

Traditional Benchmarks

Traditional finance benchmarks for comparison purposes, including equity indexes, bonds, commodities, and real estate.

Supported: SPXT (S&P 500), M2EA (MSCI EAFE), M2EF (Emerging Markets), XAU (Gold), LBUSTRUU (Bonds), RMSG (REITs)

How Live Data is Detected

The system automatically detects when your query requires live data based on keywords and context:

  • Price keywords: “current”, “today”, “now”, “latest”, “live”, “price”, “trading”, “worth”
  • Composition keywords: “composition”, “constituents”, “weights”, “holdings”, “breakdown”
  • Performance keywords: “performance”, “return”, “ytd”, “mtd”, “gained”, “lost”
  • Asset mentions: Any supported crypto symbol or index name

Example Queries That Trigger Live Data

  • “What is Bitcoin's current price?”
  • “Show me the BITWISE10 composition”
  • “How has ETH performed this year?”
  • “Compare Bitcoin to the S&P 500 since January”

Date Parsing and Natural Language

The system uses LLM-powered date extraction to understand natural language date references:

Supported Date Formats

Absolute dates: “September 30, 2024”, “9/30/24”, “2024-09-30”
Relative dates: “three months later”, “a year after”, “next week”
Date ranges: “from January to March 2024”, “Q1 2024”
Year references: “2023”, “in 2024”, “last year”

Context-Aware Date Resolution

The date parser is conversation-aware. If you ask about a specific date and then follow up with a relative reference, the system will resolve it correctly:

User: “What were the BITWISE10 constituents on September 30, 2024?”

[System fetches data for 2024-09-30]

User: “What about three months later?”

[System resolves to 2024-12-30 based on conversation context]

When Live Data is Unavailable

Circuit Breaker Protection

The system includes circuit breaker protection to handle API failures gracefully. If the live data API is unavailable or experiencing issues, the system will:

  • Continue answering from the document knowledge base
  • Indicate that live data could not be fetched
  • Automatically retry when the circuit resets

Complete Symbol Reference

Cryptocurrencies

SymbolAsset
BTCBitcoin
ETHEthereum
SOLSolana
ADACardano
DOGEDogecoin
AVAXAvalanche
SUISui
LINKChainlink
LTCLitecoin
DOTPolkadot
XRPXRP
BNBBNB
UNIUniswap

Bitwise Indexes

SymbolDescription
BITWISE10Bitwise 10 Large Cap Crypto Index
DEFIBitwise DeFi Crypto Index
CRYPTOLEADERSSMABitwise Crypto Leaders SMA Index
NFTBitwise NFT Index
BITWISE10EXBTCBitwise 10 ex Bitcoin

Traditional Benchmarks

SymbolBenchmark
SPXTS&P 500 Total Return
M2EAMSCI EAFE (Developed Markets)
M2EFMSCI Emerging Markets
XAUGold
LBUSTRUUBloomberg US Aggregate Bond
RMSGFTSE NAREIT All REITs

Related Articles