Getting Started
curl "https://api.synthdata.co/insights/prediction-percentiles?asset=BTC&horizon=1h" -H "Authorization: Apikey YOUR_API_KEY"What You'll Need
2
3
Parse the Response
import requests
response = requests.get(
"https://api.synthdata.co/insights/prediction-percentiles",
headers={"Authorization": "Apikey YOUR_API_KEY"},
params={"asset": "BTC"}
)
data = response.json()
current_price = data['current_price']
percentiles = data['forecast_future']['percentiles']
# Get 24h forecast
final = percentiles[-1]
median = final['0.5']
lower = final['0.05']
upper = final['0.95']
print(f"Current: ${current_price:,.2f}")
print(f"24h Median: ${median:,.2f}")
print(f"24h 90% CI: ${lower:,.0f} - ${upper:,.0f}")Common Parameters
Parameter
Value
Description
Last updated