Use real market data to calculate correlation. Default calculation uses log-returns.
Source: CoinGecko API
Source: Gold-API (Simulated Data)
| Date | Log-Return Series A (BTC) | Log-Return Series B (GOLD) |
|---|
Note: Bitcoin data is retrieved via the public CoinGecko API. Gold data is simulated for demonstration purposes, as the real API requires a private access key. For real analysis, replace the simulated API call with a reliable data source.
Tip: Use Log-returns for a more robust measure of co-movement, especially for financial assets.