1. Stocks
Graph Swiss API
  • Introduction
  • Quickstart
  • Authentication
  • Base URL
  • Errors
  • Request ID
  • Conventions
  • API
    • Health
      • Liveness + access probe
    • Noga
      • List NOGA classifications
      • Get NOGA entry by ID
    • 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
    • Error
    • Company
    • CompanyDetail
    • Code
    • CompanyWithRelations
    • CompanyListPage
    • Person
    • ShabJournal
    • PersonCompanyLink
    • PersonWithCompanies
    • PersonListPage
    • NogaEntry
    • NogaListPage
    • StockSymbol
    • StockQuote
    • StockPrice
    • StockHistoryValue
    • StockHistory
    • StockEod
    • StockProfile
    • StockIncomeStatement
    • StockBalanceSheet
    • StockCashFlow
    • StockFinancials
    • StockKeyExecutive
  1. Stocks

Get historical OHLCV data

GET
/v1/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 '/v1/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.
Bodyapplication/json

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-25 11:54:46
Previous
Get current stock price
Next
Get latest end-of-day data
Built with