Implementation:HKUDS AI Trader Crypto Daily Price Data
| Knowledge Sources | |
|---|---|
| Domains | Financial_Data, Cryptocurrency, Data_Storage |
| Last Updated | 2026-02-09 14:00 GMT |
Overview
Static JSON data files containing daily OHLCV price data for 10 major cryptocurrencies, used as local data sources for crypto market backtesting.
Description
The crypto daily price data files store historical daily price information for individual digital currencies. Each file follows the Alpha Vantage digital currency JSON schema with a Meta Data header and a Time Series (Daily) object keyed by date. The 10 coins covered are: BTC, ETH, XRP, SOL, ADA, AVAX, DOT, LINK, LTC, and SUI.
Usage
These files are consumed by the local price lookup tool (tool_get_price_local.py) during agent backtesting runs on the crypto market. They are produced by the crypto data fetching pipeline (get_daily_price_crypto.py) and stored under data/crypto/coin/.
Code Reference
Source Location
- Repository: HKUDS_AI_Trader
- Directory: data/crypto/coin/
- File count: 10 files
Files Covered
| File | Symbol | Lines |
|---|---|---|
| daily_prices_ADA.json | ADA (Cardano) | 2503 |
| daily_prices_AVAX.json | AVAX (Avalanche) | 2503 |
| daily_prices_BTC.json | BTC (Bitcoin) | 2503 |
| daily_prices_DOT.json | DOT (Polkadot) | 2503 |
| daily_prices_ETH.json | ETH (Ethereum) | 2503 |
| daily_prices_LINK.json | LINK (Chainlink) | 2503 |
| daily_prices_LTC.json | LTC (Litecoin) | 2503 |
| daily_prices_SOL.json | SOL (Solana) | 2503 |
| daily_prices_SUI.json | SUI (Sui) | 2503 |
| daily_prices_XRP.json | XRP (Ripple) | 2503 |
Schema
{
"Meta Data": {
"1. Information": "Daily Prices and Volumes for Digital Currency",
"2. Symbol": "BTC",
"3. Last Refreshed": "2025-11-16 00:00:00",
"4. Output Size": "Compact",
"5. Time Zone": "UTC"
},
"Time Series (Daily)": {
"2025-11-16": {
"1. open": "95544.94000000",
"2. high": "95650.00000000",
"3. low": "94971.00000000",
"4. close": "95374.01000000",
"5. volume": "283.62152345"
}
}
}
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| (none) | — | — | Static data files; no runtime inputs |
Outputs
| Name | Type | Description |
|---|---|---|
| Meta Data | JSON object | Symbol identifier, last refresh timestamp, time zone (UTC) |
| Time Series (Daily) | JSON object | Date-keyed OHLCV records with high-precision string-typed numeric values |
Usage Examples
import json
# Load Bitcoin daily price data
with open("data/crypto/coin/daily_prices_BTC.json", "r") as f:
data = json.load(f)
symbol = data["Meta Data"]["2. Symbol"]
time_series = data["Time Series (Daily)"]
# Get the most recent closing price
latest_date = max(time_series.keys())
close_price = float(time_series[latest_date]["4. close"])
print(f"{symbol} closed at ${close_price:,.2f} on {latest_date}")