🗄️Developer Resource // JSON Endpoint

BAT JSON Data API

Absolute endpoints (copy‑paste)
JSON:https://www.pocketportfolio.app/api/tickers/BAT/json?range=max
CSV:https://www.pocketportfolio.app/api/tickers/BAT/csv?range=max

Access 267 data points for BAT spanning 23 years (2000–Mar 1, 2022). Optimized JSON format (39.1 KB).

Route this JSON into your sovereign workspace — command the Terminal.
Endpoint-first sovereignty: no shared warehouse of your raw ledger.

Download as CSV

Prefer CSV format? Download BAT historical data as a CSV file for Excel, Google Sheets, or any spreadsheet application.

GET /api/tickers/BAT/json● 200 OK (Live)

Tired of exporting to Excel? Track BAT and analyze your portfolio locally with Pocket Portfolio.

Start Free — Local First
{
  "symbol": "BAT",
  "timestamp": "2026-07-24T22:28:08.795Z",
  "price": 0.07632,
  "change_24h": -0.9137486899504501,
  "history_sample": [
    {
      "date": "2000-01-01",
      "open": 28.29,
      "high": 29.51,
      "low": 15.06,
      "close": 27.3,
      "volume": 674778
    },
    {
      "date": "2000-02-01",
      "open": 27.58,
      "high": 28.24,
      "low": 14.57,
      "close": 22.69,
      "volume": 673928
    }
  ]
}
💻

Import via CLI

Don't scrape. Use our open-source importer to normalize this dataset directly into your local database.

npx pocket-portfolio --import BAT
🛡️

Need to archive this data?

Don't rely on ephemeral endpoints. Automatically sync BAT.json updates to your private Google Drive for backtesting and compliance.

Enable Sovereign Sync

Includes unlimited API calls & historical CSV exports.

Dataset Specifications

  • Format: Standardized JSON (OHLCV)
  • Frequency: End-of-Day (EOD) + Real-time delay
  • Adjustments: Split-adjusted, Dividend-adjusted
  • Source: Multi-provider aggregation (AlphaVantage, Yahoo fallback)
> system_ready. Initialize Sovereign reasoning for this asset?[Y]— open Terminal