Learn how to interact with this dataset using the Ouro SDK or REST API.
API access requires an API key. Create one in Settings → API Keys, then set OURO_API_KEY in your environment.
Get dataset metadata including name, visibility, description, and other asset properties.
Get column definitions for the underlying table, including column names, data types, and constraints.
| Column | Type |
|---|---|
| date | timestamp with time zone |
| type | text |
| value | real |
Fetch the dataset's rows. Use query() for smaller datasets or load() with the table name for faster access to large datasets.
Update dataset metadata (visibility, description, etc.) and optionally write new rows to the table. Writing new data will replace the existing data in the table. Requires write or admin permission on the dataset.
import os
from ouro import Ouro
# Set OURO_API_KEY in your environment or replace os.environ.get("OURO_API_KEY")
ouro = Ouro(api_key=os.environ.get("OURO_API_KEY"))
dataset_id = "019ca7fd-7ce5-774d-9333-2bb2024ea0b4"
# Retrieve dataset metadata
dataset = ouro.datasets.retrieve(dataset_id)
print(dataset.name, dataset.visibility)
print(dataset.metadata)# Get column definitions for the underlying table
columns = ouro.datasets.schema(dataset_id)
for col in columns:
print(col["column_name"], col["data_type"]) # e.g., age integer, name text# Option 1: Query data by dataset ID (returns Pandas DataFrame)
df = ouro.datasets.query(dataset_id)
print(df.head())
# Option 2: Load data by table name (faster for large datasets)
table_name = dataset.metadata["table_name"] # e.g., "gold_futures_forecast_week_9_2026"
df = ouro.datasets.load(table_name)
print(len(df))import pandas as pd
# Update dataset metadata
updated = ouro.datasets.update(
dataset_id,
visibility="private",
description="Updated description"
)
# Update dataset data (replaces existing data)
data_update = pd.DataFrame([
{"name": "Charlie", "age": 33},
{"name": "Diana", "age": 28},
])
updated = ouro.datasets.update(dataset_id, data=data_update)No compatible actions for datasets yet
Forecasts for Gold Futures with 12-period horizon (weekly)
Gold futures are poised for a sharp rerating, with prices projected to surge from 5,204.7 on 2026‑03‑01 to 7,474.5 by 2026‑05‑24—a +43.6% move into new cyclical highs—driven by a front‑loaded repricing of a global shift from restrictive to accommodative policy as markets discount 75–100 bps of net easing from the Fed, ECB, and BoE and real yields roll over. Layered on top of this rate‑cycle inflection, persistent 800–1,000 tonne annual central bank buying and a structurally tighter physical float set the stage for outsized upside as macro hedgers and speculative flows converge on a shrinking pool of available gold.