1. Stocks
Graph Swiss API
  • Introduction
  • Quickstart
  • Authentication
  • Base URL
  • Errors
  • Request ID
  • Conventions
  • API
    • Health
      • Liveness probe
    • Companies
      • Search companies
      • AI-powered company search
      • Get company by ID
      • Get company journal summaries
      • Get full SHAB journal texts
      • Get detailed company report
    • Persons
      • Search persons
      • Get person by ID
    • Stocks
      • List active Swiss stock symbols
        GET
      • Get real-time stock quote
        GET
      • Get current stock price
        GET
      • Get historical OHLCV data
        GET
      • Get latest end-of-day data
        GET
      • Get company profile and statistics
        GET
      • Get income statement, balance sheet, and cash flow
        GET
      • Get key executives for a stock
        GET
  • Schemas
    • StockSymbol
    • Error
    • StockQuote
    • Company
    • StockPrice
    • CompanyDetail
    • StockHistoryValue
    • Code
    • StockHistory
    • CompanyWithRelations
    • StockEod
    • CompanyListPage
    • StockProfile
    • Person
    • StockIncomeStatement
    • ShabJournal
    • StockBalanceSheet
    • PersonCompanyLink
    • StockCashFlow
    • PersonWithCompanies
    • StockFinancials
    • PersonListPage
    • StockKeyExecutive
  1. Stocks

Get historical OHLCV data

GET
/api/stocks/history/{symbol}
Time-series OHLCV (open, high, low, close, volume) data for the symbol.
Choose the candle size with interval, and optionally bound by start_date / end_date
or cap with outputsize.

Request

Authorization
API Key
Add parameter in header
X-API-Key
Example:
X-API-Key: ********************
or
Path Params

Query Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/stocks/history/NESN?interval=1day&start_date=2025-01-01&end_date=2025-12-31&outputsize=100' \
--header 'X-API-Key: <api-key>'

Responses

🟢200
application/json
OHLCV history.
Body

Example
{
    "success": true,
    "data": {
        "meta": {
            "property1": "string",
            "property2": "string"
        },
        "values": [
            {
                "datetime": "string",
                "open": "string",
                "high": "string",
                "low": "string",
                "close": "string",
                "volume": "string"
            }
        ]
    }
}
🟠400BadRequest
🟠401Unauthorized
🟠402PaymentRequired
🟠404NotFound
🟠429TooManyRequests
🔴502UpstreamError
Modified at 2026-05-01 06:16:37
Previous
Get current stock price
Next
Get latest end-of-day data
Built with