DEV Community

Chainsight
Chainsight

Posted on

Building a Multi-Asset Dashboard: Crypto, Forex & Stocks in One API

The Fragmentation Problem

Most developers use 3+ APIs for financial data: CoinGecko for crypto, Alpha Vantage for forex, Yahoo Finance for stocks. Three rate limits, three billing accounts, three SDKs.

Current Market: Fear & Greed at 29/100 (Fear)

  • Bitcoin ($63,652.00) 📈 +1.3%
  • Ethereum ($1,862.26) 📉 -0.2%
  • Tether ($1.00) 📈 +0.0%
  • BNB ($590.04) 📈 +1.3%
  • USDC ($1.00) 📈 +0.0%

One API, All Assets

The ChainSight API unifies crypto, forex, stocks, and commodities:

curl "https://chainsight-api.onrender.com/v1/forex/overview"
Enter fullscreen mode Exit fullscreen mode
{
  "forex": [
    {"symbol": "EUR/USD", "rate": 1.1435, "change_pct": 0.12},
    {"symbol": "GBP/USD", "rate": 1.3251, "change_pct": -0.08},
    {"symbol": "USD/JPY", "rate": 148.92, "change_pct": 0.31}
  ],
  "stocks": [
    {"symbol": "SPY", "price": 589.73, "change_pct": 0.45},
    {"symbol": "AAPL", "price": 214.29, "change_pct": 1.23},
    {"symbol": "NVDA", "price": 135.40, "change_pct": -0.67}
  ],
  "commodities": [
    {"symbol": "Gold", "price": 3341.60, "change_pct": 0.31},
    {"symbol": "Oil", "price": 80.75, "change_pct": -0.22}
  ]
}
Enter fullscreen mode Exit fullscreen mode

Build a Dashboard in 10 Lines

import httpx

API = "https://chainsight-api.onrender.com"

data = httpx.get(f"{API}/v1/forex/overview").json()

print("=== FOREX ===")
for p in data["forex"]:
    print(f"{p['symbol']}: {p['rate']}")

print("\n=== STOCKS ===")
for s in data["stocks"]:
    print(f"{s['symbol']}: ${s['price']}")
Enter fullscreen mode Exit fullscreen mode

Historical Data

# Get 3 months of EUR/USD data
resp = httpx.get(f"{API}/v1/forex/history",
    params={"symbol": "EUR/USD", "range": "3mo", "interval": "1wk"})

for candle in resp.json().get("candles", []):
    print(f"{candle['date']}: O={candle['open']} H={candle['high']} L={candle['low']} C={candle['close']}")
Enter fullscreen mode Exit fullscreen mode

Available Endpoints

Endpoint Description
/v1/forex/rates ECB currency rates (13 pairs)
/v1/forex/pairs All available symbols
/v1/forex/history Historical OHLC via Yahoo Finance
/v1/forex/overview Forex + stocks + commodities
/v1/forex/search Search any symbol

Free Tier

No credit card required. 100 requests/day.

🔗 RapidAPI | 🔗 GitHub


ChainSight — unified financial data for developers.

Top comments (0)