{
 "schema_version": 1,
 "generated": "2026-10-25",
 "id": "openbq-org-openbb--pull-market-data-into-python-with-openbb",
 "repo": "openbq-org/OpenBB",
 "repo_url": "https://github.com/openbq-org/OpenBB",
 "repo_slug": "openbq-org-openbb",
 "title": "Pull market data into Python in three lines",
 "page_title": "How to pull market data into Python in three lines with Open BB",
 "summary": "Install the package and load price history into a pandas DataFrame with one call.",
 "who": "A quant or student who wants clean market data in a notebook without writing a client for each source.",
 "problem": "Every data provider has its own API, format and authentication.",
 "outcome": "Historical prices as a DataFrame, with the same interface across many providers.",
 "steps": [
  "Run `pip install openbb`",
  "In Python, import with `from openbb import obb`",
  "Fetch history with `obb.equity.price.historical(\"AAPL\")`",
  "Convert it with `output.to_dataframe()` and analyse it with pandas"
 ],
 "agent_prompt": "Using openbq-org/OpenBB, install openbb, load daily price history for <ticker> into a DataFrame, and give me the last 20 rows and the 50 day average. Note which data provider served it.",
 "agents": [
  "any"
 ],
 "difficulty": "Beginner",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "The README says its data is not necessarily accurate. Not financial advice: paper trade first, and remember you can lose money.",
 "category": "Data and analytics",
 "tags": [
  "Data and analytics"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.10 to 3.14",
  "pip",
  "Optional API keys for the data providers you want to use",
  "For Workspace: a free OpenBB Workspace sign in"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/openbq-org-openbb/pull-market-data-into-python-with-openbb/",
 "md": "https://dedupedai.com/use-cases/openbq-org-openbb/pull-market-data-into-python-with-openbb/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/openbq-org-openbb--pull-market-data-into-python-with-openbb.json",
 "api_version": "v1"
}
