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.
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 = "019aea66-3faa-75e6-946b-4f5c1478111c"
# Retrieve dataset metadata
dataset = ouro.datasets.retrieve(dataset_id)
print(dataset.name, dataset.visibility)
print(dataset.metadata)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 |
# 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 textFetch the dataset's rows. Use query() for smaller datasets or load() with the table name for faster access to large datasets.
# 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., "copper_price_forecast_december_2025"
df = ouro.datasets.load(table_name)
print(len(df))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 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)Forecasts for Copper Price with 12-period horizon (monthly)
Copper prices are expected to stay high and choppy over the next year. The market looks to level off briefly later in 2025 and then resume an upward trend by mid-2026, led by ongoing supply limits and supportive financial conditions rather than a drop in demand. Prices around December 2025 are near $5.3 per pound, with tight physical supply from Chile and planned cuts by Chinese smelters, plus a current lift from a softer dollar and favorable liquidity. Short‑term moves may include a rise in July 2025, a mild dip into late 2025, and a renewed climb into 2026 to new highs. For decision makers, this means persistently higher input costs with periodic volatility, not a rapid return to chair prices. Consider active hedging, efficiency improvements, and staying alert to policy risks and market shocks.