Skip to main content

Naradh

Python client for the Naradh OHLC Data API — 1-minute bar data for Indian markets (NIFTY50, SENSEX, CRUDEOIL, NATURALGAS), served from naradh.finvigna.com.

Installation

pip install naradh

Quick Start

from naradh import Naradh

client = Naradh(api_key="nrd_...")

# List available instruments and date ranges
df = client.instruments()

# Today's 1-minute bars
df = client.today("NIFTY50")

# Latest N bars
df = client.latest("CRUDEOIL", n=500)

# 1-minute bars for a date range
df = client.ohlc("SENSEX", from_date="2026-05-01", to_date="2026-05-11")

# Resampled to any timeframe
df = client.historical("NIFTY50",    from_date="2026-05-01", to_date="2026-05-11", timeframe="5")
df = client.historical("CRUDEOIL",   from_date="2026-05-01", to_date="2026-05-11", timeframe="1h")
df = client.historical("NATURALGAS", from_date="2026-05-01", to_date="2026-05-11", timeframe="1d")

All methods return a pandas DataFrame with datetime as the index.

Instruments

Instrument Exchange Session (IST)
NIFTY50 NSE 09:15 – 15:30
SENSEX BSE 09:15 – 15:30
CRUDEOIL MCX 09:00 – 23:30
NATURALGAS MCX 09:00 – 23:30

Timeframes

Input Resolution
1, 3, 5, 10, 15, 30 Minutes
1h, 2h, 4h Hours
1d Daily
1w Weekly

API Reference

Naradh(api_key, host, timeout)

Parameter Type Default Description
api_key str — Your API key (required)
host str https://naradh.finvigna.com API server URL
timeout int 30 Request timeout in seconds

Methods

instruments() → DataFrame

Returns all instruments with available date ranges.

Columns: instrument, from, to, total_days

today(instrument) → DataFrame

All 1-minute bars collected so far today.

latest(instrument, n=100) → DataFrame

Latest N bars (max 5000) across all available dates.

ohlc(instrument, from_date, to_date) → DataFrame

Raw 1-minute bars for a date range. Dates in YYYY-MM-DD format.

historical(instrument, from_date, to_date, timeframe="5") → DataFrame

OHLC data resampled to the requested timeframe.

All DataFrames have:

Index:   datetime
Columns: open, high, low, close, volume

Exceptions

from naradh import (
    NaradhException,     # base class
    InstrumentNotFound,  # invalid instrument name
    DataNotFound,        # no data for the requested date/instrument
    InvalidTimeframe,    # unsupported timeframe string
    InvalidDateRange,    # from_date > to_date or bad format
    APIError,            # unexpected server error
)

Getting an API Key

Contact finvigna.com to request an API key.

License

MIT

Metadata

Release files for naradh 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for naradh 1.0.0
File Size Uploaded Provenance Actions
naradh-1.0.0.tar.gz 6.4 kB Without provenance Details for naradh-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for naradh 1.0.0
File Interpreter ABI Platform Actions
naradh-1.0.0-py3-none-any.whl Python 3 none any Details for naradh-1.0.0-py3-none-any.whl

Total release size: 13.9 kB

Release files / naradh-1.0.0.tar.gz

Download URL naradh-1.0.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0a7a9807f22b8f3b0a6e999bf330897c18f048e1081680e3abf6fac42d1e4190
BLAKE2b-256 checksum
How to use checksums
0451b7f9f35add7a1cc5b9ddce04a0af5ba469772e647cc4787ea3de961cab8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / naradh-1.0.0-py3-none-any.whl

Download URL naradh-1.0.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a3ab3a9e3626c12130d304a584b52dd300b63a1e6a332efc7493ccb8761f560
BLAKE2b-256 checksum
How to use checksums
72b6646b5c3f35e7e6b02c1a05652e7f31c9fb6aacc197b936acc5bd4ede2365
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Security for naradh 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page