Prerequisites
- An API key. Get one from the dashboard, and pass it in the
X-API-KEYheader on every request. - The base URL for all requests is
https://api.davidhf.com.
Every data endpoint requires a
scenario_id. A scenario is a self-contained synthetic market world. See Scenarios for the full model.Get started
1
Authenticate
Send your key in the
X-API-KEY header. A quick health check confirms the connection:2
Find a scenario
David ships with a library of ready-made scenarios. List them to grab a Copy an
scenario_id:id. You’ll use it as scenario_id in every query below.3
See what's inside
Inspect a scenario to see its date range and available tickers:The response includes
available_tickers (e.g. AAPL, MSFT, NVDA) and a public_summary describing the market world.4
Pull prices
Query daily OHLCV for a ticker in that scenario:
5
Pull fundamentals and news
Same
scenario_id, different endpoint:Browse more scenarios
David curates the full scenario library, you don’t generate worlds, you choose from them. Filter the library to assemble the sets you need:Next steps
Scenarios
How worlds are scoped, validated, and replayed.
Authentication
Keys, accounts, plans, and rate limits.
Point-in-time agents
Build a leakage-free backtest loop.
API reference
Every endpoint in detail.