Skip to main content
GET
/
api
/
v1
/
cross-asset
/
history
Cross-Asset History
curl --request GET \
  --url https://api.example.com/api/v1/cross-asset/history
Returns historical time series data for cross-asset prices (S&P 500, Gold, DXY) and their correlation with BTC. Useful for charting macro overlays and identifying correlation regime shifts over time.

Parameters

ParameterTypeDefaultDescription
hoursnumber24Lookback window in hours (max 2160 = 90 days)

Example Request

curl -X GET "https://krovn.io/api/v1/cross-asset/history?hours=48" \
  -H "X-API-Key: your_api_key"

Example Response

{
  "data": [
    {
      "timestamp": "2026-03-19T12:00:00.000Z",
      "sp500": 5842.30,
      "gold": 3045.50,
      "dxy": 103.45,
      "btc_sp500_corr": 0.55,
      "btc_gold_corr": 0.08,
      "btc_dxy_corr": -0.58
    },
    {
      "timestamp": "2026-03-20T12:00:00.000Z",
      "sp500": 5878.10,
      "gold": 3062.80,
      "dxy": 103.12,
      "btc_sp500_corr": 0.48,
      "btc_gold_corr": 0.12,
      "btc_dxy_corr": -0.62
    }
  ],
  "count": 2
}
Data granularity depends on the time window. Cross-asset data is collected every 15 minutes. For windows longer than 24 hours, data points may be sampled.