Skip to main content

Trader_AngleOne

A lightweight, efficient Python wrapper for fetching historical equity market data via Angel One SmartAPI.

Features

  • Easy Authentication: Initialize seamlessly using dictionary unpacking.
  • Granular Timeframes: Supports 1-minute up to daily data intervals.
  • NSE Equity Focus: Built specifically to fetch NSE - EQ segment data (e.g., NIFTY, BANKNIFTY, RELIANCE, CIPLA).

Installation

Install the package via pip (once published to PyPI):

pip install Trader_AngleOne

Quick Start & Usage

This library focuses exclusively on the NSE Equity (NSE-EQ) segment. It does not support Derivatives/Futures data.

Here is how to initialize the trader and fetch historical data across various timeframes:

from Trader_AngleOne import TraderAngleOne

# 1. Define your Angel One API credentials
crd = {
    "api_key"    : "abc",
    "secret_key" : "abc-abc-abc",
    "totp"       : "abcAKBDLEMI",
    "userid"     : "U8XX1XX",
    "pwd"        : "1XX8",
}

# 2. Initialize the client using dictionary unpacking
angle = TraderAngleOne(**crd)

# 3. Fetch Historical Data (Parameters: Token/Symbol, Interval, Start Time, End Time, Exchange)

# Fetch 1-Minute Data
reliance_1 = angle.get_history_data('RELIANCE', '1', '2026-01-01 09:15', '2026-01-02 15:30', 'NSE')

# Fetch 3-Minute Data
reliance_3 = angle.get_history_data('RELIANCE', '3', '2026-01-01 09:15', '2026-01-02 15:30', 'NSE')

# Fetch 5-Minute Data
reliance_5 = angle.get_history_data('RELIANCE', '5', '2026-01-01 09:15', '2026-01-02 15:30', 'NSE')

# Fetch 15-Minute Data
reliance_15 = angle.get_history_data('RELIANCE', '15', '2026-01-01 09:15', '2026-01-02 15:30', 'NSE')

# Fetch 30-Minute Data
reliance_30 = angle.get_history_data('RELIANCE', '30', '2026-01-01 09:15', '2026-01-02 15:30', 'NSE')

# Fetch 1-Hour Data
reliance_1H = angle.get_history_data('RELIANCE', '1H', '2026-01-01 09:15', '2026-01-02 15:30', 'NSE')

# Fetch 1-Day Data
reliance_1D = angle.get_history_data('RELIANCE', '1D', '2026-01-01 09:15', '2026-01-02 15:30', 'NSE')

Supported Timeframes

Pass these exact string values into the second argument of get_history_data():

  • "1" - 1 Minute
  • "3" - 3 Minutes
  • "5" - 5 Minutes
  • "15" - 15 Minutes
  • "30" - 30 Minutes
  • "1H" - 1 Hour
  • "1D" - 1 Day

License

Distributed under the MIT License. See LICENSE for more information.

Trader_AngleOne

d983ccc6afe5dd7c494481585c5374dd60606e58

Metadata

Release files for Trader-AngleOne 1.6

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

Source distribution (sdist)

Source distribution for Trader-AngleOne 1.6
File Size Uploaded
trader_angleone-1.6.tar.gz 28.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Trader-AngleOne 1.6
File Interpreter ABI Platform
trader_angleone-1.6-py3-none-any.whl Python 3 none any Details

Total release size: 55.5 kB

Release files / trader_angleone-1.6.tar.gz

Download URL trader_angleone-1.6.tar.gz
Size 28.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4bad582846695be77cf7a2d6d8e5a14b475a46ba4be2d3f4700c5fa81f9ebd61
BLAKE2b-256 checksum
How to use checksums
5431a6f6f916c72916e95092548e4f5054096cfc04968f487efb9277365d4a2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.2

Release files / trader_angleone-1.6-py3-none-any.whl

Download URL trader_angleone-1.6-py3-none-any.whl
Size 26.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b2c9ba399e6dbd85878326ace5cdee48f2965c08ab42e222cfcd8e93797792e4
BLAKE2b-256 checksum
How to use checksums
e972463a0323dbe26035fe34f47a0c18dd173ae982eb30db61f8d7dfcb1360ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.2

Release history Release notifications | RSS feed

1.7

2 release files

This release

1.6 This release

2 release files

1.5

2 release files

1.4

2 release files

1.3

2 release files

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