Skip to main content

stockcandle

A utility to fetch intraday data for any given EQ symbol.

Installation

pip install stockcandle

Usage

from stockcandle import DataCollector

dataClass = DataCollector()

# Fetch LTP data for the day
ltp_data = dataClass.intraday_data('RELIANCE')
print(ltp_data)

# Fetch minute period candle for the intraday
candle_data = dataClass.intraday_candle('TATAMOTORS')
print(candle_data)

Response

1> ltp_data = dataClass.intraday_data('RELIANCE')

...., 
{'timestamp': datetime.datetime(2021, 7, 27, 14, 49, 51), 'ltp': 2047.95}, 
{'timestamp': datetime.datetime(2021, 7, 27, 14, 49, 52), 'ltp': 2047.95}, 
{'timestamp': datetime.datetime(2021, 7, 27, 14, 49, 54), 'ltp': 2047.95}, 
{'timestamp': datetime.datetime(2021, 7, 27, 14, 49, 55), 'ltp': 2048}, 
{'timestamp': datetime.datetime(2021, 7, 27, 14, 49, 56), 'ltp': 2048.3}, 
{'timestamp': datetime.datetime(2021, 7, 27, 14, 49, 57), 'ltp': 2048.3}, 
{'timestamp': datetime.datetime(2021, 7, 27, 14, 49, 58), 'ltp': 2048.3}, 
{'timestamp': datetime.datetime(2021, 7, 27, 14, 49, 59), 'ltp': 2048.3},
....

2> candle_data = dataClass.intraday_candle('TATAMOTORS')

....
'2021-07-28 12:45:00': {'open': 285.25, 'high': 285.5, 'low': 285.15, 'close': 285.25}, 
'2021-07-28 12:46:00': {'open': 285.25, 'high': 285.45, 'low': 285.1, 'close': 285.45}, 
'2021-07-28 12:47:00': {'open': 285.45, 'high': 285.55, 'low': 285.35, 'close': 285.4}, 
'2021-07-28 12:48:00': {'open': 285.35, 'high': 285.35, 'low': 285.15, 'close': 285.25}, 
'2021-07-28 12:49:00': {'open': 285.25, 'high': 285.6, 'low': 285.2, 'close': 285.55}, 
'2021-07-28 12:50:00': {'open': 285.65, 'high': 285.7, 'low': 285.4, 'close': 285.7}, 
'2021-07-28 12:51:00': {'open': 285.7, 'high': 285.75, 'low': 285.5, 'close': 285.55},
....

Metadata

Release files for stockcandle 0.2

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

Source distribution (sdist)

Source distribution for stockcandle 0.2
File Size Uploaded Provenance Actions
stockcandle-0.2.tar.gz 2.8 kB Without provenance Details for stockcandle-0.2.tar.gz

Built distribution (wheel)

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

Total release size: 6.9 kB

Release files / stockcandle-0.2.tar.gz

Download URL stockcandle-0.2.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2a973cd9e5e96ad07a66d1003d9d1afd125f0512070a3242109481791ad02e95
BLAKE2b-256 checksum
How to use checksums
1e362b660362d74deff02d7bec2584f706fb2779b063229a4dd47a727dab34d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.9

Release files / stockcandle-0.2-py3-none-any.whl

Download URL stockcandle-0.2-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f6050c02e6f2e48d56b94442cdfcdbe3c3544cbf173f3f45db0421bca08d48bb
BLAKE2b-256 checksum
How to use checksums
a7bbd6807e934c606ecc32ace25e9a518482bfa967f9880d2d312737fa00d250
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.9

Security for stockcandle 0.2

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

0.2 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