A python module that gives stock price data and stock symbols.
Project description
EasyStocksData
A python module that gives stock price data and stock symbols.
Installation
Install easystocksdata
using pip
:
$ pip install easystockdata
Description of functions
get_prices :
-
Input:
symbol
: Symbol of stock (string)intv
: Interval of time (string, optional, default=1d)rng
: Range of time (string, optional, default=1wk)intv
andrng
both takes values from1m
,2m
,5m
,15m
,30m
,60m
,90m
,1h
,1d
,5d
,1wk
,1mo
and3mo
.ohlc
: Specify High, Low, Open and Close prices (string, optional, default='high')stock_exc
: specify stock exchange to get data from (string, optional, default='nse') -
Output: list: A list of lists containing the timestamp and corresponding price for each data point.
get_nse_symbols :
-
Input: None
-
Output: A list of dictionaries containing the stock names and symbols of nse.
get_nasdaq_symbols :
-
Input: None
-
Output: A list of dictionaries containing the stock names and symbols of nasdaq.
find_nse_stock :
-
Input:
search_term
: search term to search for stock symbol in nse (string) -
Output: A list of dictionaries containing the stock names and symbols of nse.
find_nasdaq_stock :
-
Input:
search_term
: search term to search for stock symbol in nse (string) -
Output: A list of dictionaries containing the stock names and symbols of nasdaq.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for easystockdata-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c95ed6dce93d021a7a205539a6d47aa71c2133eafa9cf17ad9e973a3b1e20e21 |
|
MD5 | 1903ad0b8a2e58b43d7b1ed6a3960ff7 |
|
BLAKE2b-256 | c3d96993af206f90e6fc7e5faeb7a766dba829bed6251e39d4163a4a2e1bcd1e |