A· AURUM DATA

AURUM DATA / API REFERENCE

Bring data into your research.

Gold reserves, macro indicators and historical vintages. Use one API key across scripts, research tools and agents.

BASE URLhttp://47.82.95.145/api
  1. 01

    Create an account and key

    New users receive a one-time total quota of 500 calls; paid plans provide monthly quotas; each account can have up to 3 active keys.

  2. 02

    Find a series, then fetch data

    Use the catalog to find a series_id, then specify dates and as_of to fetch observations.

  3. 03

    Preserve data timing

    Read source, temporal quality and quality flags so results are verifiable and reproducible.

Examples read the key from the AURUM_API_KEY environment variable; no real credentials included.

01 / AUTHENTICATION

Authentication & quota

Data requests carry the key in an HTTP header. After signing in, create, reset or revoke keys under "My account → API settings".

Authorization: Bearer <YOUR_API_KEY>
Quota belongs to the account and is shared by all keys.

The 500-call quota for new users is a one-time total granted at signup and does not refill. Monthly (¥28, 1,200 calls/month) and annual (¥300, 1,500 calls/month) plans reset monthly on the subscription anniversary (Beijing time) and do not roll over. Creating or resetting keys does not increase it. Legacy daily-quota accounts keep their rules and reset at 00:00 Beijing time.

Each authenticated data request counts once, including requests that later return parameter or data errors. Viewing your account, managing keys, health checks and downloading docs do not consume quota.

Response headerMeaning
X-RateLimit-LimitCurrent account call limit
X-RateLimit-RemainingRemaining calls after this request
X-Quota-Periodlifetime total quota, monthly paid-plan quota, daily legacy daily quota
X-RateLimit-ResetReturned for daily and monthly quotas; Unix timestamp of the next reset

Resetting invalidates the old key immediately; revocation permanently blocks that key. Other active keys and the account balance remain.

02 / DISCOVER

Data catalog

GET /v1/series

Filter available series by source, country or metric. The response includes series name, unit, frequency, coverage dates, source and temporal quality.

ParameterTypeDescription
source_idstringOptional source ID, e.g. fred、imf
countrystringOptional country or region code, as defined in catalog metadata
metricstringOptional metric identifier, as defined in catalog metadata
formatstringjson (default) or markdown
cURL
curl --get "http://47.82.95.145/api/v1/series" \
  --header "Authorization: Bearer $AURUM_API_KEY" \
  --data-urlencode "source_id=fred"

Main JSON response fields:count、data_note、series[]. Use series[].series_id to fetch observations.

03 / QUERY

Observations

GET /v1/observations

Fetch observations visible at a research as_of for a given series. Results are sorted by observation date and retain vintage dates and quality flags.

ParameterTypeDescription
series_id RequiredstringSeries ID from the catalog, 2–32 characters
as_of RequireddatetimeResearch as_of with timezone, e.g. 2020-01-01T00:00:00Z
start / enddateOptional observation date range, inclusive
limitinteger1–10,000, default 1,000
offsetintegerPagination offset, default 0
formatstringjson (default) or markdown
cURL
curl --get "http://47.82.95.145/api/v1/observations" \
  --header "Authorization: Bearer $AURUM_API_KEY" \
  --data-urlencode "series_id=CPIAUCSL" \
  --data-urlencode "as_of=2020-01-01T00:00:00Z" \
  --data-urlencode "start=2019-01-01" \
  --data-urlencode "end=2019-12-31" \
  --data-urlencode "limit=1000"

Main JSON response fields:series_id、as_of、count、source、temporal_quality、backtest_note、observations[]. Values are strings to preserve precision.

What as_of means

FRED / ALFRED is filtered by historical vintage; ALFRED vintage dates are conservatively treated as available at 00:00 UTC the next day. IMF data is a current snapshot, so as_of must not be earlier than the capture time and cannot reconstruct earlier backtest points. Read the temporal quality notes in each response.

04 / BUILD WITH YOUR TOOLS

AI / script access

Agents that can make HTTP requests can call this REST API directly. They use the same personal key and share the account quota with scripts.

01

Use environment variables

Configure the key as AURUM_API_KEY and inject it at runtime; do not put it in public code or chat templates.

02

Query the catalog first

First use /v1/series to confirm available series, then call /v1/observations。

03

Preserve verifiable information

Include source, observation date, as_of and quality notes in answers. For readable text, use format=markdown。

Copyable agent integration instructions
Query gold and macro data through the Aurum Data REST API.
Base URL: http://47.82.95.145/api
Auth header: Authorization: Bearer <AURUM_API_KEY environment variable>
1. Call GET /v1/series to find a real series_id.
2. Call GET /v1/observations with series_id, a timezone-aware as_of and a date range.
3. Add format=markdown for readable text.
4. Preserve source, observation date, temporal quality and backtest_note; do not treat a current snapshot as a historical vintage.
5. Each data request consumes account quota; on 429, stop retrying and check the balance.
Download the full Markdown guide ↗

05 / RESPONSES

Error codes & health check

StatusDescriptionAction
401Missing keyAdd the Bearer header
403Invalid or revoked keyCheck key status in API settings
404Unknown seriesQuery the catalog first
422Invalid parametersCheck dates, timezone and ranges
429Quota exhaustedStop retrying and check account quota
5xxService temporarily unavailableRetry later or check health

GET http://47.82.95.145/api/healthz requires no key and does not consume quota.

{"status":"ok","database":"ok"}

Error details are usually in the JSON detail field. Check the remaining-quota header; server records are authoritative.