Skip to main content
This guide takes you from zero to your first David response. You’ll authenticate, find a scenario, and query prices, fundamentals, and news for a ticker inside that scenario.
Working in Python? The official SDK wraps every endpoint: pip install david-data.

Prerequisites

  • An API key. Get one from the dashboard, and pass it in the X-API-KEY header 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 scenario_id:
Copy an 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:
Need a world with characteristics the library doesn’t cover? Reach out at founders@davidhf.com and we’ll generate it.

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.
Need help? Reach out at founders@davidhf.com.