From c6ab276bd69f2666977df75b9f9630e3ebd79386 Mon Sep 17 00:00:00 2001 From: Pratik Anand <13189088+pratik141@users.noreply.github.com> Date: Mon, 30 Oct 2023 21:33:43 +0100 Subject: [PATCH] update css --- docs/html/index.html | 6 +- docs/html/nsedt.html | 1785 ++++++++++++-- docs/html/nsedt/derivatives.html | 1885 +++++++++++++-- docs/html/nsedt/derivatives/futures.html | 1902 +++++++++++++-- docs/html/nsedt/derivatives/options.html | 1925 +++++++++++++-- docs/html/nsedt/equity.html | 2186 ++++++++++++++--- docs/html/nsedt/indices.html | 1880 ++++++++++++-- docs/html/nsedt/resources.html | 1789 ++++++++++++-- docs/html/nsedt/resources/constants.html | 2422 +++++++++++++++---- docs/html/nsedt/resources/index_symbol.html | 1902 +++++++++++++-- docs/html/nsedt/resources/tmp.html | 1899 +++++++++++++-- docs/html/nsedt/utils.html | 2038 +++++++++++++--- docs/html/nsedt/utils/data_format.html | 2045 +++++++++++++--- docs/html/search.js | 2 +- docs/index.html | 11 +- 15 files changed, 20508 insertions(+), 3169 deletions(-) diff --git a/docs/html/index.html b/docs/html/index.html index 7683a43..9c72251 100644 --- a/docs/html/index.html +++ b/docs/html/index.html @@ -6,12 +6,12 @@ \ No newline at end of file diff --git a/docs/html/nsedt.html b/docs/html/nsedt.html index a7092a0..6303d64 100644 --- a/docs/html/nsedt.html +++ b/docs/html/nsedt.html @@ -1,58 +1,1456 @@ + - + nsedt API documentation - - - - - - + + + + + + + + +
-
-

-nsedt

+
+

+ nsedt

-

Main file

-
+
+

Main file

+
- + - + -
 1"""
+            
+
 1"""
  2Main file
  3"""
  4import logging
@@ -63,191 +1461,194 @@ 

9 format=cns.LOG_FORMAT, 10 datefmt="%m/%d/%Y %I:%M:%S %p", 11) -

+
+
-
+
- + + if (getSearchTerm()) { + initialize(); + searchBox.value = getSearchTerm(); + onInput(); + } else { + searchBox.addEventListener("focus", initialize, { once: true }); + } + + searchBox.addEventListener("keydown", e => { + if (["ArrowDown", "ArrowUp", "Enter"].includes(e.key)) { + let focused = currentContent.querySelector(".search-result.focused"); + if (!focused) { + currentContent.querySelector(".search-result").classList.add("focused"); + } else if ( + e.key === "ArrowDown" + && focused.nextElementSibling + && focused.nextElementSibling.classList.contains("search-result") + ) { + focused.classList.remove("focused"); + focused.nextElementSibling.classList.add("focused"); + focused.nextElementSibling.scrollIntoView({ + behavior: "smooth", + block: "nearest", + inline: "nearest" + }); + } else if ( + e.key === "ArrowUp" + && focused.previousElementSibling + && focused.previousElementSibling.classList.contains("search-result") + ) { + focused.classList.remove("focused"); + focused.previousElementSibling.classList.add("focused"); + focused.previousElementSibling.scrollIntoView({ + behavior: "smooth", + block: "nearest", + inline: "nearest" + }); + } else if ( + e.key === "Enter" + ) { + focused.querySelector("a").click(); + } + } + }); + + + \ No newline at end of file diff --git a/docs/html/nsedt/derivatives.html b/docs/html/nsedt/derivatives.html index 88cb35d..9e5a307 100644 --- a/docs/html/nsedt/derivatives.html +++ b/docs/html/nsedt/derivatives.html @@ -1,70 +1,1472 @@ + - + nsedt.derivatives API documentation - - - - - - + + + + + + + + +
-
-

-nsedt.derivatives

+
+

+ nsedt.derivatives +

-

get data for Equity

-
+
+

get data for Equity

+
- + - + -
 1""" 
+            
+
 1""" 
  2get data for Equity
  3"""
  4import concurrent
@@ -160,34 +1562,45 @@ 

94 if response_type == "panda_df": 95 return result 96 return result.to_json(orient="records") -

+
+
+ + +
+
+
+ log = + <RootLogger root (INFO)> + +
+ -
-
-
- log = -<RootLogger root (INFO)> - -
- - - -
-
- -
- - def - get_vix( start_date: str, end_date: str, response_type: str = 'panda_df', columns_drop_list: list = None): +
+
+ +
+ + def + get_vix( start_date: str, end_date: str, response_type: str = 'panda_df', columns_drop_list: list + = None): -
- -
21def get_vix(
+            
+ +
+
21def get_vix(
 22    start_date: str,
 23    end_date: str,
 24    response_type: str = "panda_df",
@@ -264,209 +1677,213 @@ 

95 if response_type == "panda_df": 96 return result 97 return result.to_json(orient="records") -

+ + -

Get Vix data

+
+

Get Vix data

-

Args: - start_date (str): start date in "%d-%m-%Y" format - end_date (str): end_date in "%d-%m-%Y" format - response_type (str, optional): response_type. Defaults to "panda_df". - columns_drop_list (list, optional): provide custom columns drop list. Defaults to None.

+

Args: + start_date (str): start date in "%d-%m-%Y" format + end_date (str): end_date in "%d-%m-%Y" format + response_type (str, optional): response_type. Defaults to "panda_df". + columns_drop_list (list, optional): provide custom columns drop list. Defaults to None.

-

Raises: - exc: general Exception

+

Raises: + exc: general Exception

-

Returns: - Pandas DataFrame: df containing option data - or - Json: json containing option data

-
+

Returns: + Pandas DataFrame: df containing option data + or + Json: json containing option data

+
-
+
- + + if (getSearchTerm()) { + initialize(); + searchBox.value = getSearchTerm(); + onInput(); + } else { + searchBox.addEventListener("focus", initialize, { once: true }); + } + + searchBox.addEventListener("keydown", e => { + if (["ArrowDown", "ArrowUp", "Enter"].includes(e.key)) { + let focused = currentContent.querySelector(".search-result.focused"); + if (!focused) { + currentContent.querySelector(".search-result").classList.add("focused"); + } else if ( + e.key === "ArrowDown" + && focused.nextElementSibling + && focused.nextElementSibling.classList.contains("search-result") + ) { + focused.classList.remove("focused"); + focused.nextElementSibling.classList.add("focused"); + focused.nextElementSibling.scrollIntoView({ + behavior: "smooth", + block: "nearest", + inline: "nearest" + }); + } else if ( + e.key === "ArrowUp" + && focused.previousElementSibling + && focused.previousElementSibling.classList.contains("search-result") + ) { + focused.classList.remove("focused"); + focused.previousElementSibling.classList.add("focused"); + focused.previousElementSibling.scrollIntoView({ + behavior: "smooth", + block: "nearest", + inline: "nearest" + }); + } else if ( + e.key === "Enter" + ) { + focused.querySelector("a").click(); + } + } + }); + + + \ No newline at end of file diff --git a/docs/html/nsedt/derivatives/futures.html b/docs/html/nsedt/derivatives/futures.html index 601c1de..b62bf84 100644 --- a/docs/html/nsedt/derivatives/futures.html +++ b/docs/html/nsedt/derivatives/futures.html @@ -1,65 +1,1467 @@ + - + nsedt.derivatives.futures API documentation - - - - - - + + + + + + + + +
-
-

-nsedt.derivatives.futures

+
+

+ nsedt.derivatives.futures +

-

get data for Futures

-
+
+

get data for Futures

+
- + - + -
 1""" 
+            
+
 1""" 
  2get data for Futures
  3"""
  4import urllib
@@ -155,22 +1557,37 @@ 

94 datetime.strptime(rec["FH_EXPIRY_DT"], "%d-%b-%Y").strftime("%d-%m-%Y") 95 ) 96 return list(set(ret)) -

+
+
+ +
+
+ +
-
-
- -
- - def - get_future_price( symbol: str, start_date: str, end_date: str, expiry_date: str = None, response_type: str = 'panda_df', columns_drop_list: list = None): + def + get_future_price( symbol: str, start_date: str, end_date: str, expiry_date: str = None, response_type: str = 'panda_df', columns_drop_list: list + = None): -
- -
13def get_future_price(
+            
+ +
+
13def get_future_price(
 14    symbol: str,
 15    start_date: str,
 16    end_date: str,
@@ -223,36 +1640,43 @@ 

63 response_type=response_type, 64 columns_drop_list=columns_drop_list, 65 ) -

+ + -

get future price of stock / indices -Args: - symbol (str): _description_ - start_date (str): _description_ - end_date (str): _description_ - expiry_date (str, optional): _description_. Defaults to None. - response_type (str, optional): _description_. Defaults to "panda_df". - columns_drop_list (list, optional): _description_. Defaults to None.

+
+

get future price of stock / indices + Args: + symbol (str): _description_ + start_date (str): _description_ + end_date (str): _description_ + expiry_date (str, optional): _description_. Defaults to None. + response_type (str, optional): _description_. Defaults to "panda_df". + columns_drop_list (list, optional): _description_. Defaults to None.

-

Returns: - _type_: _description_

-
+

Returns: + _type_: _description_

+
-
-
- -
- - def - get_future_expdate(symbol: str) -> list: +
+
+ +
+ + def + get_future_expdate(symbol: str) -> list: -
- -
68def get_future_expdate(symbol: str) -> list:
+            
+ +
+
68def get_future_expdate(symbol: str) -> list:
 69    """get expiry dates of futures
 70
 71    Args:
@@ -282,201 +1706,205 @@ 

95 datetime.strptime(rec["FH_EXPIRY_DT"], "%d-%b-%Y").strftime("%d-%m-%Y") 96 ) 97 return list(set(ret)) -

+ + -

get expiry dates of futures

+
+

get expiry dates of futures

-

Args: - symbol (str): symbol name

+

Args: + symbol (str): symbol name

-

Returns: - list: expiry dates

-
+

Returns: + list: expiry dates

+
-
+
- + + if (getSearchTerm()) { + initialize(); + searchBox.value = getSearchTerm(); + onInput(); + } else { + searchBox.addEventListener("focus", initialize, { once: true }); + } + + searchBox.addEventListener("keydown", e => { + if (["ArrowDown", "ArrowUp", "Enter"].includes(e.key)) { + let focused = currentContent.querySelector(".search-result.focused"); + if (!focused) { + currentContent.querySelector(".search-result").classList.add("focused"); + } else if ( + e.key === "ArrowDown" + && focused.nextElementSibling + && focused.nextElementSibling.classList.contains("search-result") + ) { + focused.classList.remove("focused"); + focused.nextElementSibling.classList.add("focused"); + focused.nextElementSibling.scrollIntoView({ + behavior: "smooth", + block: "nearest", + inline: "nearest" + }); + } else if ( + e.key === "ArrowUp" + && focused.previousElementSibling + && focused.previousElementSibling.classList.contains("search-result") + ) { + focused.classList.remove("focused"); + focused.previousElementSibling.classList.add("focused"); + focused.previousElementSibling.scrollIntoView({ + behavior: "smooth", + block: "nearest", + inline: "nearest" + }); + } else if ( + e.key === "Enter" + ) { + focused.querySelector("a").click(); + } + } + }); + + + \ No newline at end of file diff --git a/docs/html/nsedt/derivatives/options.html b/docs/html/nsedt/derivatives/options.html index c73eaaf..668679d 100644 --- a/docs/html/nsedt/derivatives/options.html +++ b/docs/html/nsedt/derivatives/options.html @@ -1,68 +1,1470 @@ + - + nsedt.derivatives.options API documentation - - - - - - + + + + + + + + +
-
-

-nsedt.derivatives.options

+
+

+ nsedt.derivatives.options +

-

get data for Options

-
+
+

get data for Options

+
- + - + -
  1""" 
+            
+
  1""" 
   2get data for Options
   3"""
   4import logging
@@ -178,34 +1580,45 @@ 

114 for expiry_date in expiry_dates: 115 ret.append(datetime.strptime(expiry_date, "%d-%b-%Y").strftime("%d-%m-%Y")) 116 return ret -

+
+
+ + +
+
+
+ log = + <RootLogger root (INFO)> + + +
+ -
-
-
- log = -<RootLogger root (INFO)> - -
- - - +
+
+ +
-
-
- -
- - def - get_option_chain( symbol: str, strike_price: str = None, expiry_date: str = None, response_type='panda_df'): + def + get_option_chain( symbol: str, strike_price: str = None, expiry_date: str = None, response_type='panda_df'): -
- -
16def get_option_chain(
+            
+ +
+
16def get_option_chain(
 17    symbol: str,
 18    strike_price: str = None,
 19    expiry_date: str = None,
@@ -275,37 +1688,45 @@ 

83 filtered_data, 84 response_type=response_type, 85 ) -

+ + -

Get option data of stock and indices

+
+

Get option data of stock and indices

-

Args: - symbol (str): symbol name - strike_price (str, optional): strike price to apply filter on price. Defaults to None. - expiry_date (str, optional): expiry date to apply filter on date. Defaults to None. - response_type (str, optional): response_type panda_df or json . Defaults to "panda_df".

+

Args: + symbol (str): symbol name + strike_price (str, optional): strike price to apply filter on price. Defaults to None. + expiry_date (str, optional): expiry date to apply filter on date. Defaults to None. + response_type (str, optional): response_type panda_df or json . Defaults to "panda_df".

-

Returns: - Pandas DataFrame: df containing option data -or - Json: json containing option data

-
+

Returns: + Pandas DataFrame: df containing option data + or + Json: json containing option data

+
-
-
- -
- - def - get_option_chain_expdate(symbol: str) -> list: +
+
+ +
- + def + get_option_chain_expdate(symbol: str) -> list: -
- -
 88def get_option_chain_expdate(symbol: str) -> list:
+                
+
+            
+ +
+
 88def get_option_chain_expdate(symbol: str) -> list:
  89    """get option  expiry date for stock and indices
  90
  91    Args:
@@ -335,201 +1756,205 @@ 

115 for expiry_date in expiry_dates: 116 ret.append(datetime.strptime(expiry_date, "%d-%b-%Y").strftime("%d-%m-%Y")) 117 return ret -

+ + -

get option expiry date for stock and indices

+
+

get option expiry date for stock and indices

-

Args: - symbol (str): symbol name

+

Args: + symbol (str): symbol name

-

Returns: - list: expiry date in list("%d-%m-%Y" format)

-
+

Returns: + list: expiry date in list("%d-%m-%Y" format)

+
-
+
- + + if (getSearchTerm()) { + initialize(); + searchBox.value = getSearchTerm(); + onInput(); + } else { + searchBox.addEventListener("focus", initialize, { once: true }); + } + + searchBox.addEventListener("keydown", e => { + if (["ArrowDown", "ArrowUp", "Enter"].includes(e.key)) { + let focused = currentContent.querySelector(".search-result.focused"); + if (!focused) { + currentContent.querySelector(".search-result").classList.add("focused"); + } else if ( + e.key === "ArrowDown" + && focused.nextElementSibling + && focused.nextElementSibling.classList.contains("search-result") + ) { + focused.classList.remove("focused"); + focused.nextElementSibling.classList.add("focused"); + focused.nextElementSibling.scrollIntoView({ + behavior: "smooth", + block: "nearest", + inline: "nearest" + }); + } else if ( + e.key === "ArrowUp" + && focused.previousElementSibling + && focused.previousElementSibling.classList.contains("search-result") + ) { + focused.classList.remove("focused"); + focused.previousElementSibling.classList.add("focused"); + focused.previousElementSibling.scrollIntoView({ + behavior: "smooth", + block: "nearest", + inline: "nearest" + }); + } else if ( + e.key === "Enter" + ) { + focused.querySelector("a").click(); + } + } + }); + + + \ No newline at end of file diff --git a/docs/html/nsedt/equity.html b/docs/html/nsedt/equity.html index c9c29c6..d740f9a 100644 --- a/docs/html/nsedt/equity.html +++ b/docs/html/nsedt/equity.html @@ -1,86 +1,1488 @@ + - + nsedt.equity API documentation - - - - - - + + + + + + + + +
-
-

-nsedt.equity

+
+

+ nsedt.equity +

-

get data for Equity

-
+
+

get data for Equity

+
- + - + -
  1""" 
+            
+
  1""" 
   2get data for Equity
   3"""
   4import concurrent
@@ -366,7 +1768,7 @@ 

284 Args:\n 285 asm_type (str): ASM type, possible values: both,longterm,shortterm\n 286 Returns:\n -287 List of Stocks Under ASM\n +287 List of stocks under ASM\n 288 """ 289 cookies = utils.get_cookies() 290 base_url = cns.BASE_URL @@ -384,34 +1786,41 @@

302 return _data.get("shortterm").get("data") 303 else: 304 return ["possible values are both,longterm,shortterm"] -

+
+
+ +
+
+
+ log = + <RootLogger root (INFO)> -
-
-
- log = -<RootLogger root (INFO)> - -
- - - + + -
-
- -
- - def - get_companyinfo(symbol: str, response_type: str = 'panda_df'): + + +
+
+ +
+ + def + get_companyinfo(symbol: str, + response_type: str = 'panda_df'): -
- -
20def get_companyinfo(
+            
+ +
+
20def get_companyinfo(
 21    symbol: str,
 22    response_type: str = "panda_df",
 23):
@@ -442,43 +1851,50 @@ 

48 ) 49 50 return data -

+ + -

_summary_

+
+

_summary_

-

Args:

+

Args:

-
symbol (str): stock name
+                
symbol (str): stock name
 
 response_type (str, Optional): define the response type panda_df | json. Default panda_df
 
-

Returns:

+

Returns:

-
Pandas DataFrame: df containing company info
+                
Pandas DataFrame: df containing company info
 
-

or

+

or

-
Json: json containing company info
+                
Json: json containing company info
 
-
+
+ +
+
+ +
-
-
- -
- - def - get_marketstatus(response_type: str = 'panda_df'): + def + get_marketstatus(response_type: str = 'panda_df'): -
- -
53def get_marketstatus(
+            
+ +
+
53def get_marketstatus(
 54    response_type: str = "panda_df",
 55):
 56    """
@@ -502,36 +1918,46 @@ 

74 ) 75 76 return data -

+ + -

Args:

+
+

Args:

-
response_type (str, Optional): define the response type panda_df | json. Default panda_df
+                
response_type (str, Optional): define the response type panda_df | json. Default panda_df
 
-

Returns:

+

Returns:

-
Pandas DataFrame: df containing market status
+                
Pandas DataFrame: df containing market status
 
 Json : Json containing market status
 
-
+
-
-
- -
- - def - get_price(start_date, end_date, symbol=None, input_type='stock', series='EQ'): +
+
+ +
+ + def + get_price(start_date, end_date, symbol=None, input_type='stock', + series='EQ'): -
- -
 79def get_price(
+            
+ +
+
 79def get_price(
  80    start_date,
  81    end_date,
  82    symbol=None,
@@ -595,14 +2021,16 @@ 

140 logging.error("%s got exception: %s. Please try again later.", url, exc) 141 raise exc 142 return data_format.price(result) -

+ + -

Create threads for different requests, parses data, combines them and returns dataframe

+
+

Create threads for different requests, parses data, combines them and returns dataframe

-

Args:

+

Args:

-
start_date (datetime.datetime): start date
+                
start_date (datetime.datetime): start date
 
 end_date (datetime.datetime): end date
 
@@ -611,26 +2039,33 @@ 

symbol (str, optional): stock symbol. Defaults to None. TODO: implement for index`

-

Returns:

+

Returns:

-
Pandas DataFrame: df containing data for symbol of provided date range
+                
Pandas DataFrame: df containing data for symbol of provided date range
 
-
+
+ +
+
+ +
-
-
- -
- - def - get_corpinfo(start_date, end_date, symbol=None, response_type='panda_df'): + def + get_corpinfo(start_date, end_date, symbol=None, response_type='panda_df'): -
- -
145def get_corpinfo(
+            
+ +
+
145def get_corpinfo(
 146    start_date,
 147    end_date,
 148    symbol=None,
@@ -666,45 +2101,54 @@ 

178 ) 179 180 return data -

+ + -

Create threads for different requests, parses data, combines them and returns dataframe

+
+

Create threads for different requests, parses data, combines them and returns dataframe

-

Args:

+

Args:

-
start_date (datetime.datetime): start date
+                
start_date (datetime.datetime): start date
 
 end_date (datetime.datetime): end date
 
 symbol (str, optional): stock symbol. Defaults to None.
 
-

Returns:

+

Returns:

-
Pandas DataFrame: df containing data for symbol of provided date range
+                
Pandas DataFrame: df containing data for symbol of provided date range
 
-

or

+

or

-
Json: json containing data for symbol of provided date range
+                
Json: json containing data for symbol of provided date range
 
-
+
-
-
- -
- - def - get_event(start_date=None, end_date=None, index='equities'): +
+
+ +
+ + def + get_event(start_date=None, end_date=None, index='equities'): -
- -
183def get_event(
+            
+ +
+
183def get_event(
 184    start_date=None,
 185    end_date=None,
 186    index="equities",
@@ -729,36 +2173,44 @@ 

205 206 url = base_url + event_api + urllib.parse.urlencode(params) 207 return utils.fetch_url(url, cookies) -

+ + -

Args:

+
+

Args:

-
start_date (datetime.datetime,optional): start date
+                
start_date (datetime.datetime,optional): start date
 
 end_date (datetime.datetime,optional): end date
 
-

Returns:

+

Returns:

-
Pandas DataFrame: df containing event of provided date range
+                
Pandas DataFrame: df containing event of provided date range
 
-
+
+ +
+
+ +
-
-
- -
- - def - get_chartdata(symbol, preopen=False, response_type='panda_df'): + def + get_chartdata(symbol, preopen=False, response_type='panda_df'): -
- -
210def get_chartdata(
+            
+ +
+
210def get_chartdata(
 211    symbol,
 212    preopen=False,
 213    response_type="panda_df",
@@ -808,34 +2260,39 @@ 

257 ) 258 return data_frame 259 return data -

+ + -

Args:

+
+

Args:

-
symbol (str): stock symbol.
+                
symbol (str): stock symbol.
 
-

Returns:

+

Returns:

-
Pandas DataFrame: df containing chart data of provided date
+                
Pandas DataFrame: df containing chart data of provided date
 
-
+
-
-
- -
- - def - get_symbols_list(): +
+
+ +
+ + def + get_symbols_list(): -
- -
262def get_symbols_list():
+            
+ +
+
262def get_symbols_list():
 263    """
 264    Args:\n
 265        No arguments needed\n
@@ -854,39 +2311,46 @@ 

278 eq_list.append(f_dict["data"][i]["metadata"]["symbol"]) 279 280 return eq_list -

+ + -

Args:

+
+

Args:

-
No arguments needed
+                
No arguments needed
 
-

Returns:

+

Returns:

-
List of stock or equity symbols
+                
List of stock or equity symbols
 
-
+
+ +
+
+ +
-
-
- -
- - def - get_asm_list(asm_type='both') -> list: + def + get_asm_list(asm_type='both') -> list: -
- -
283def get_asm_list(asm_type="both") -> list:
+            
+ +
+
283def get_asm_list(asm_type="both") -> list:
 284    """
 285        Args:\n
 286            asm_type (str): ASM type, possible values: both,longterm,shortterm\n
 287        Returns:\n
-288            List of Stocks Under ASM\n
+288            List of stocks under ASM\n
 289    """
 290    cookies = utils.get_cookies()
 291    base_url = cns.BASE_URL
@@ -904,203 +2368,207 @@ 

303 return _data.get("shortterm").get("data") 304 else: 305 return ["possible values are both,longterm,shortterm"] -

+ + -

Args:

+
+

Args:

-
asm_type (str): ASM type, possible values: both,longterm,shortterm
+                
asm_type (str): ASM type, possible values: both,longterm,shortterm
 
-

Returns:

+

Returns:

-
List of Stocks Under ASM
+                
List of stocks under ASM
 
-
+
-
+
- + + if (getSearchTerm()) { + initialize(); + searchBox.value = getSearchTerm(); + onInput(); + } else { + searchBox.addEventListener("focus", initialize, { once: true }); + } + + searchBox.addEventListener("keydown", e => { + if (["ArrowDown", "ArrowUp", "Enter"].includes(e.key)) { + let focused = currentContent.querySelector(".search-result.focused"); + if (!focused) { + currentContent.querySelector(".search-result").classList.add("focused"); + } else if ( + e.key === "ArrowDown" + && focused.nextElementSibling + && focused.nextElementSibling.classList.contains("search-result") + ) { + focused.classList.remove("focused"); + focused.nextElementSibling.classList.add("focused"); + focused.nextElementSibling.scrollIntoView({ + behavior: "smooth", + block: "nearest", + inline: "nearest" + }); + } else if ( + e.key === "ArrowUp" + && focused.previousElementSibling + && focused.previousElementSibling.classList.contains("search-result") + ) { + focused.classList.remove("focused"); + focused.previousElementSibling.classList.add("focused"); + focused.previousElementSibling.scrollIntoView({ + behavior: "smooth", + block: "nearest", + inline: "nearest" + }); + } else if ( + e.key === "Enter" + ) { + focused.querySelector("a").click(); + } + } + }); + + + \ No newline at end of file diff --git a/docs/html/nsedt/indices.html b/docs/html/nsedt/indices.html index fc157ee..49b4ad7 100644 --- a/docs/html/nsedt/indices.html +++ b/docs/html/nsedt/indices.html @@ -1,65 +1,1467 @@ + - + nsedt.indices API documentation - - - - - - + + + + + + + + +
-
-

-nsedt.indices

+
+

+ nsedt.indices +

-

get data for indices

-
+
+

get data for indices

+
- + - + -
  1""" 
+            
+
  1""" 
   2get data for indices
   3"""
   4import concurrent
@@ -166,34 +1568,54 @@ 

105 if response_type == "panda_df": 106 return result 107 return result.to_json(orient="records") -

+
+
+ + +
+
+
+ log = + <RootLogger root (INFO)> + +
+ -
-
-
- log = -<RootLogger root (INFO)> - -
- - - -
-
- -
- - def - get_price( start_date: <module 'datetime' from '/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/datetime.py'>, end_date: <module 'datetime' from '/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/datetime.py'>, symbol: str, response_type: str = 'panda_df', columns_drop_list: list = None, columns_rename_map: map = None): +
+
+ +
+ + def + get_price( + start_date: <module 'datetime' from '/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/datetime.py'>, end_date: <module 'datetime' from '/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/datetime.py'>, symbol: str, response_type: str = 'panda_df', + columns_drop_list: list + = None, columns_rename_map: map + = None): -
- -
 20def get_price(
+            
+ +
+
 20def get_price(
  21    start_date: datetime,
  22    end_date: datetime,
  23    symbol: str,
@@ -282,14 +1704,16 @@ 

106 if response_type == "panda_df": 107 return result 108 return result.to_json(orient="records") -

+ + -

Get price of index

+
+

Get price of index

-

Args:

+

Args:

-
start_date (datetime): start date
+                
start_date (datetime): start date
 end_date (datetime): end date
 symbol (str): symbol name or index name
 response_type (str, optional):  Define return type: panda_df or json.
@@ -298,202 +1722,204 @@ 

columns_rename_map (map, optional): define columns rename map, Defaults to None

-

Raises:

+

Raises:

-
exc: general Exception
+                
exc: general Exception
 
-

Returns:

+

Returns:

-
    Pandas DataFrame: df containing company info
+                
    Pandas DataFrame: df containing company info
 or
     Json: json containing company info
 
-
+
-
+
- + + if (getSearchTerm()) { + initialize(); + searchBox.value = getSearchTerm(); + onInput(); + } else { + searchBox.addEventListener("focus", initialize, { once: true }); + } + + searchBox.addEventListener("keydown", e => { + if (["ArrowDown", "ArrowUp", "Enter"].includes(e.key)) { + let focused = currentContent.querySelector(".search-result.focused"); + if (!focused) { + currentContent.querySelector(".search-result").classList.add("focused"); + } else if ( + e.key === "ArrowDown" + && focused.nextElementSibling + && focused.nextElementSibling.classList.contains("search-result") + ) { + focused.classList.remove("focused"); + focused.nextElementSibling.classList.add("focused"); + focused.nextElementSibling.scrollIntoView({ + behavior: "smooth", + block: "nearest", + inline: "nearest" + }); + } else if ( + e.key === "ArrowUp" + && focused.previousElementSibling + && focused.previousElementSibling.classList.contains("search-result") + ) { + focused.classList.remove("focused"); + focused.previousElementSibling.classList.add("focused"); + focused.previousElementSibling.scrollIntoView({ + behavior: "smooth", + block: "nearest", + inline: "nearest" + }); + } else if ( + e.key === "Enter" + ) { + focused.querySelector("a").click(); + } + } + }); + + + \ No newline at end of file diff --git a/docs/html/nsedt/resources.html b/docs/html/nsedt/resources.html index 4622fab..ab1ef02 100644 --- a/docs/html/nsedt/resources.html +++ b/docs/html/nsedt/resources.html @@ -1,239 +1,1640 @@ + - + nsedt.resources API documentation - - - - - - + + + + + + + + +
-
-

-nsedt.resources

- - - - - -
-
- + + if (getSearchTerm()) { + initialize(); + searchBox.value = getSearchTerm(); + onInput(); + } else { + searchBox.addEventListener("focus", initialize, { once: true }); + } + + searchBox.addEventListener("keydown", e => { + if (["ArrowDown", "ArrowUp", "Enter"].includes(e.key)) { + let focused = currentContent.querySelector(".search-result.focused"); + if (!focused) { + currentContent.querySelector(".search-result").classList.add("focused"); + } else if ( + e.key === "ArrowDown" + && focused.nextElementSibling + && focused.nextElementSibling.classList.contains("search-result") + ) { + focused.classList.remove("focused"); + focused.nextElementSibling.classList.add("focused"); + focused.nextElementSibling.scrollIntoView({ + behavior: "smooth", + block: "nearest", + inline: "nearest" + }); + } else if ( + e.key === "ArrowUp" + && focused.previousElementSibling + && focused.previousElementSibling.classList.contains("search-result") + ) { + focused.classList.remove("focused"); + focused.previousElementSibling.classList.add("focused"); + focused.previousElementSibling.scrollIntoView({ + behavior: "smooth", + block: "nearest", + inline: "nearest" + }); + } else if ( + e.key === "Enter" + ) { + focused.querySelector("a").click(); + } + } + }); + + + \ No newline at end of file diff --git a/docs/html/nsedt/resources/constants.html b/docs/html/nsedt/resources/constants.html index 0fd3ea0..d97878d 100644 --- a/docs/html/nsedt/resources/constants.html +++ b/docs/html/nsedt/resources/constants.html @@ -1,116 +1,1518 @@ + - + nsedt.resources.constants API documentation - - - - - - + + + + + + + + +
-
-

-nsedt.resources.constants

+
+

+ nsedt.resources.constants +

-

Constants

-
+
+

Constants

+
- + - + -
 1"""
+            
+
 1"""
  2Constants
  3"""
  4from .index_symbol import symbol_map
@@ -150,421 +1552,513 @@ 

38INDICES = ["NIFTY", "FINNIFTY", "BANKNIFTY"] 39VIX_HISTORY = "api/historical/vixhistory?" 40FUTURES_PRICE = "api/historical/foCPV?" -

- - -
-
-
- WINDOW_SIZE = -50 - - -
- - - - -
-
-
- MAX_WORKERS = -10 - - -
- - - - -
-
-
- SYMBOL_MAP = - - [{'keys': ['NIFTY 50', 'NIFTY50', 'NIFTY'], 'indices': 'NIFTY 50', 'derivatives': 'NIFTY'}, {'keys': ['NIFTY BANK', 'NIFTYBANK', 'BANKNIFTY'], 'derivatives': 'BANKNIFTY', 'indices': 'NIFTY BANK'}, {'keys': ['NIFTY FINANCIAL SERVICES', 'FINNIFTY', 'NIFTY FIN SERVICE'], 'derivatives': 'FINNIFTY', 'indices': 'NIFTY FINANCIAL SERVICES'}, {'keys': ['NIFTY NEXT 50'], 'derivatives': '', 'indices': 'NIFTY NEXT 50'}, {'keys': ['NIFTY MIDCAP 50'], 'derivatives': '', 'indices': 'NIFTY MIDCAP 50'}, {'keys': ['NIFTY MIDCAP 100'], 'derivatives': '', 'indices': 'NIFTY MIDCAP 100'}, {'keys': ['NIFTY MIDCAP 150'], 'derivatives': '', 'indices': 'NIFTY MIDCAP 150'}, {'keys': ['NIFTY SMALLCAP 50'], 'derivatives': '', 'indices': 'NIFTY SMALLCAP 50'}, {'keys': ['NIFTY SMALLCAP 100'], 'derivatives': '', 'indices': 'NIFTY SMALLCAP 100'}, {'keys': ['NIFTY SMALLCAP 250'], 'derivatives': '', 'indices': 'NIFTY SMALLCAP 250'}, {'keys': ['NIFTY MIDSMALLCAP 400'], 'derivatives': '', 'indices': 'NIFTY MIDSMALLCAP 400'}, {'keys': ['NIFTY 100'], 'derivatives': '', 'indices': 'NIFTY 100'}, {'keys': ['NIFTY 200'], 'derivatives': '', 'indices': 'NIFTY 200'}, {'keys': ['NIFTY500 MULTICAP 50:25:25'], 'derivatives': '', 'indices': 'NIFTY500 MULTICAP 50:25:25'}, {'keys': ['NIFTY LARGEMIDCAP 250'], 'derivatives': '', 'indices': 'NIFTY LARGEMIDCAP 250'}, {'keys': ['NIFTY MIDCAP SELECT'], 'derivatives': '', 'indices': 'NIFTY MIDCAP SELECT'}, {'keys': ['NIFTY TOTAL MARKET'], 'derivatives': '', 'indices': 'NIFTY TOTAL MARKET'}, {'keys': ['NIFTY MICROCAP 250'], 'derivatives': '', 'indices': 'NIFTY MICROCAP 250'}, {'keys': ['NIFTY AUTO'], 'derivatives': '', 'indices': 'NIFTY AUTO'}, {'keys': ['NIFTY ENERGY'], 'derivatives': '', 'indices': 'NIFTY ENERGY'}, {'keys': ['NIFTY FINANCIAL SERVICES 25/50'], 'derivatives': '', 'indices': 'NIFTY FINANCIAL SERVICES 25/50'}, {'keys': ['NIFTY FMCG'], 'derivatives': '', 'indices': 'NIFTY FMCG'}, {'keys': ['NIFTY IT'], 'derivatives': '', 'indices': 'NIFTY IT'}, {'keys': ['NIFTY MEDIA'], 'derivatives': '', 'indices': 'NIFTY MEDIA'}, {'keys': ['NIFTY METAL'], 'derivatives': '', 'indices': 'NIFTY METAL'}, {'keys': ['NIFTY PHARMA'], 'derivatives': '', 'indices': 'NIFTY PHARMA'}, {'keys': ['NIFTY PSU BANK'], 'derivatives': '', 'indices': 'NIFTY PSU BANK'}, {'keys': ['NIFTY REALTY'], 'derivatives': '', 'indices': 'NIFTY REALTY'}, {'keys': ['NIFTY PRIVATE BANK'], 'derivatives': '', 'indices': 'NIFTY PRIVATE BANK'}, {'keys': ['NIFTY HEALTHCARE INDEX'], 'derivatives': '', 'indices': 'NIFTY HEALTHCARE INDEX'}, {'keys': ['NIFTY CONSUMER DURABLES'], 'derivatives': '', 'indices': 'NIFTY CONSUMER DURABLES'}, {'keys': ['NIFTY OIL &amp; GAS'], 'derivatives': '', 'indices': 'NIFTY OIL &amp; GAS'}, {'keys': ['NIFTY DIVIDEND OPPORTUNITIES 50'], 'derivatives': '', 'indices': 'NIFTY DIVIDEND OPPORTUNITIES 50'}, {'keys': ['NIFTY50 VALUE 20'], 'derivatives': '', 'indices': 'NIFTY50 VALUE 20'}, {'keys': ['NIFTY100 QUALITY 30'], 'derivatives': '', 'indices': 'NIFTY100 QUALITY 30'}, {'keys': ['NIFTY50 EQUAL WEIGHT'], 'derivatives': '', 'indices': 'NIFTY50 EQUAL WEIGHT'}, {'keys': ['NIFTY100 EQUAL WEIGHT'], 'derivatives': '', 'indices': 'NIFTY100 EQUAL WEIGHT'}, {'keys': ['NIFTY100 LOW VOLATILITY 30'], 'derivatives': '', 'indices': 'NIFTY100 LOW VOLATILITY 30'}, {'keys': ['NIFTY ALPHA 50'], 'derivatives': '', 'indices': 'NIFTY ALPHA 50'}, {'keys': ['NIFTY200 QUALITY 30'], 'derivatives': '', 'indices': 'NIFTY200 QUALITY 30'}, {'keys': ['NIFTY ALPHA LOW-VOLATILITY 30'], 'derivatives': '', 'indices': 'NIFTY ALPHA LOW-VOLATILITY 30'}, {'keys': ['NIFTY200 MOMENTUM 30'], 'derivatives': '', 'indices': 'NIFTY200 MOMENTUM 30'}, {'keys': ['NIFTY MIDCAP150 QUALITY 50'], 'derivatives': '', 'indices': 'NIFTY MIDCAP150 QUALITY 50'}, {'keys': ['NIFTY COMMODITIES'], 'derivatives': '', 'indices': 'NIFTY COMMODITIES'}, {'keys': ['NIFTY INDIA CONSUMPTION'], 'derivatives': '', 'indices': 'NIFTY INDIA CONSUMPTION'}, {'keys': ['NIFTY CPSE'], 'derivatives': '', 'indices': 'NIFTY CPSE'}, {'keys': ['NIFTY INFRASTRUCTURE'], 'derivatives': '', 'indices': 'NIFTY INFRASTRUCTURE'}, {'keys': ['NIFTY MNC'], 'derivatives': '', 'indices': 'NIFTY MNC'}, {'keys': ['NIFTY GROWTH SECTORS 15'], 'derivatives': '', 'indices': 'NIFTY GROWTH SECTORS 15'}, {'keys': ['NIFTY PSE'], 'derivatives': '', 'indices': 'NIFTY PSE'}, {'keys': ['NIFTY SERVICES SECTOR'], 'derivatives': '', 'indices': 'NIFTY SERVICES SECTOR'}, {'keys': ['NIFTY100 LIQUID 15'], 'derivatives': '', 'indices': 'NIFTY100 LIQUID 15'}, {'keys': ['NIFTY MIDCAP LIQUID 15'], 'derivatives': '', 'indices': 'NIFTY MIDCAP LIQUID 15'}, {'keys': ['NIFTY INDIA DIGITAL'], 'derivatives': '', 'indices': 'NIFTY INDIA DIGITAL'}, {'keys': ['NIFTY100 ESG'], 'derivatives': '', 'indices': 'NIFTY100 ESG'}, {'keys': ['NIFTY INDIA MANUFACTURING'], 'derivatives': '', 'indices': 'NIFTY INDIA MANUFACTURING'}] - - -
- - - - -
-
-
- LOG_FORMAT = - - '{\n "time": "%(asctime)s",\n "lineno": "%(lineno)d",\n "name": "[%(name)s]",\n "loglevel": "%(levelname)s",\n "process": "%(process)s",\n "filename": "%(filename)s",\n "funcName": "%(funcName)s",\n "logmessage": "%(message)s",\n}' - - -
- - - - -
-
-
- BASE_URL = -'https://www.nseindia.com/' - - -
- - - - -
-
-
- EQUITY_PRICE_HISTORY = -'api/historical/securityArchives?' - - -
- - - - -
-
-
- EQUITY_CORPINFO = -'api/corporates-corporateActions?' - - -
- - - - -
-
-
- MARKETSTATUS = -'api/marketStatus' - - -
- - - - -
-
-
- EQUITY_EVENT = -'api/event-calendar?' - - -
- - - - -
-
-
- EQUITY_CHART = -'api/chart-databyindex?' - - -
- - - - -
-
-
- EQUITY_INFO = -'api/quote-equity?' - - -
- - - - -
-
-
- EQUITY_LIST = -'api/market-data-pre-open?key=ALL' - - -
- - - - -
-
-
- ASM_LIST = -'api/reportASM' - - -
- - - - -
-
-
- INDEX_PRICE_HISTORY = -'api/historical/indicesHistory?' - - -
- - - - -
-
-
- OPTIONS_PRICE_EQUITIES = -'api/option-chain-equities?' - - -
- - - - -
-
-
- OPTIONS_PRICE_INDICES = -'api/option-chain-indices?' - - -
- - - - -
-
-
- INDICES = -['NIFTY', 'FINNIFTY', 'BANKNIFTY'] - - -
- - - - -
-
-
- VIX_HISTORY = -'api/historical/vixhistory?' - - -
- - - - -
-
-
- FUTURES_PRICE = -'api/historical/foCPV?' - - -
- - - - -
-
- + + if (getSearchTerm()) { + initialize(); + searchBox.value = getSearchTerm(); + onInput(); + } else { + searchBox.addEventListener("focus", initialize, { once: true }); + } + + searchBox.addEventListener("keydown", e => { + if (["ArrowDown", "ArrowUp", "Enter"].includes(e.key)) { + let focused = currentContent.querySelector(".search-result.focused"); + if (!focused) { + currentContent.querySelector(".search-result").classList.add("focused"); + } else if ( + e.key === "ArrowDown" + && focused.nextElementSibling + && focused.nextElementSibling.classList.contains("search-result") + ) { + focused.classList.remove("focused"); + focused.nextElementSibling.classList.add("focused"); + focused.nextElementSibling.scrollIntoView({ + behavior: "smooth", + block: "nearest", + inline: "nearest" + }); + } else if ( + e.key === "ArrowUp" + && focused.previousElementSibling + && focused.previousElementSibling.classList.contains("search-result") + ) { + focused.classList.remove("focused"); + focused.previousElementSibling.classList.add("focused"); + focused.previousElementSibling.scrollIntoView({ + behavior: "smooth", + block: "nearest", + inline: "nearest" + }); + } else if ( + e.key === "Enter" + ) { + focused.querySelector("a").click(); + } + } + }); + + + \ No newline at end of file diff --git a/docs/html/nsedt/resources/index_symbol.html b/docs/html/nsedt/resources/index_symbol.html index 1d65611..c789324 100644 --- a/docs/html/nsedt/resources/index_symbol.html +++ b/docs/html/nsedt/resources/index_symbol.html @@ -1,62 +1,1464 @@ + - + nsedt.resources.index_symbol API documentation - - - - - - + + + + + + + + +
-
-

-nsedt.resources.index_symbol

+
+

+ nsedt.resources.index_symbol +

-

NSE indices symbol map

-
+
+

NSE indices symbol map

+
- + - + -
  1"""
+            
+
  1"""
   2    NSE indices symbol map
   3"""
   4symbol_map = [
@@ -249,204 +1651,290 @@ 

191 "indices": "NIFTY INDIA MANUFACTURING", 192 }, 193] -

+
+
-
-
-
- symbol_map = - - [{'keys': ['NIFTY 50', 'NIFTY50', 'NIFTY'], 'indices': 'NIFTY 50', 'derivatives': 'NIFTY'}, {'keys': ['NIFTY BANK', 'NIFTYBANK', 'BANKNIFTY'], 'derivatives': 'BANKNIFTY', 'indices': 'NIFTY BANK'}, {'keys': ['NIFTY FINANCIAL SERVICES', 'FINNIFTY', 'NIFTY FIN SERVICE'], 'derivatives': 'FINNIFTY', 'indices': 'NIFTY FINANCIAL SERVICES'}, {'keys': ['NIFTY NEXT 50'], 'derivatives': '', 'indices': 'NIFTY NEXT 50'}, {'keys': ['NIFTY MIDCAP 50'], 'derivatives': '', 'indices': 'NIFTY MIDCAP 50'}, {'keys': ['NIFTY MIDCAP 100'], 'derivatives': '', 'indices': 'NIFTY MIDCAP 100'}, {'keys': ['NIFTY MIDCAP 150'], 'derivatives': '', 'indices': 'NIFTY MIDCAP 150'}, {'keys': ['NIFTY SMALLCAP 50'], 'derivatives': '', 'indices': 'NIFTY SMALLCAP 50'}, {'keys': ['NIFTY SMALLCAP 100'], 'derivatives': '', 'indices': 'NIFTY SMALLCAP 100'}, {'keys': ['NIFTY SMALLCAP 250'], 'derivatives': '', 'indices': 'NIFTY SMALLCAP 250'}, {'keys': ['NIFTY MIDSMALLCAP 400'], 'derivatives': '', 'indices': 'NIFTY MIDSMALLCAP 400'}, {'keys': ['NIFTY 100'], 'derivatives': '', 'indices': 'NIFTY 100'}, {'keys': ['NIFTY 200'], 'derivatives': '', 'indices': 'NIFTY 200'}, {'keys': ['NIFTY500 MULTICAP 50:25:25'], 'derivatives': '', 'indices': 'NIFTY500 MULTICAP 50:25:25'}, {'keys': ['NIFTY LARGEMIDCAP 250'], 'derivatives': '', 'indices': 'NIFTY LARGEMIDCAP 250'}, {'keys': ['NIFTY MIDCAP SELECT'], 'derivatives': '', 'indices': 'NIFTY MIDCAP SELECT'}, {'keys': ['NIFTY TOTAL MARKET'], 'derivatives': '', 'indices': 'NIFTY TOTAL MARKET'}, {'keys': ['NIFTY MICROCAP 250'], 'derivatives': '', 'indices': 'NIFTY MICROCAP 250'}, {'keys': ['NIFTY AUTO'], 'derivatives': '', 'indices': 'NIFTY AUTO'}, {'keys': ['NIFTY ENERGY'], 'derivatives': '', 'indices': 'NIFTY ENERGY'}, {'keys': ['NIFTY FINANCIAL SERVICES 25/50'], 'derivatives': '', 'indices': 'NIFTY FINANCIAL SERVICES 25/50'}, {'keys': ['NIFTY FMCG'], 'derivatives': '', 'indices': 'NIFTY FMCG'}, {'keys': ['NIFTY IT'], 'derivatives': '', 'indices': 'NIFTY IT'}, {'keys': ['NIFTY MEDIA'], 'derivatives': '', 'indices': 'NIFTY MEDIA'}, {'keys': ['NIFTY METAL'], 'derivatives': '', 'indices': 'NIFTY METAL'}, {'keys': ['NIFTY PHARMA'], 'derivatives': '', 'indices': 'NIFTY PHARMA'}, {'keys': ['NIFTY PSU BANK'], 'derivatives': '', 'indices': 'NIFTY PSU BANK'}, {'keys': ['NIFTY REALTY'], 'derivatives': '', 'indices': 'NIFTY REALTY'}, {'keys': ['NIFTY PRIVATE BANK'], 'derivatives': '', 'indices': 'NIFTY PRIVATE BANK'}, {'keys': ['NIFTY HEALTHCARE INDEX'], 'derivatives': '', 'indices': 'NIFTY HEALTHCARE INDEX'}, {'keys': ['NIFTY CONSUMER DURABLES'], 'derivatives': '', 'indices': 'NIFTY CONSUMER DURABLES'}, {'keys': ['NIFTY OIL &amp; GAS'], 'derivatives': '', 'indices': 'NIFTY OIL &amp; GAS'}, {'keys': ['NIFTY DIVIDEND OPPORTUNITIES 50'], 'derivatives': '', 'indices': 'NIFTY DIVIDEND OPPORTUNITIES 50'}, {'keys': ['NIFTY50 VALUE 20'], 'derivatives': '', 'indices': 'NIFTY50 VALUE 20'}, {'keys': ['NIFTY100 QUALITY 30'], 'derivatives': '', 'indices': 'NIFTY100 QUALITY 30'}, {'keys': ['NIFTY50 EQUAL WEIGHT'], 'derivatives': '', 'indices': 'NIFTY50 EQUAL WEIGHT'}, {'keys': ['NIFTY100 EQUAL WEIGHT'], 'derivatives': '', 'indices': 'NIFTY100 EQUAL WEIGHT'}, {'keys': ['NIFTY100 LOW VOLATILITY 30'], 'derivatives': '', 'indices': 'NIFTY100 LOW VOLATILITY 30'}, {'keys': ['NIFTY ALPHA 50'], 'derivatives': '', 'indices': 'NIFTY ALPHA 50'}, {'keys': ['NIFTY200 QUALITY 30'], 'derivatives': '', 'indices': 'NIFTY200 QUALITY 30'}, {'keys': ['NIFTY ALPHA LOW-VOLATILITY 30'], 'derivatives': '', 'indices': 'NIFTY ALPHA LOW-VOLATILITY 30'}, {'keys': ['NIFTY200 MOMENTUM 30'], 'derivatives': '', 'indices': 'NIFTY200 MOMENTUM 30'}, {'keys': ['NIFTY MIDCAP150 QUALITY 50'], 'derivatives': '', 'indices': 'NIFTY MIDCAP150 QUALITY 50'}, {'keys': ['NIFTY COMMODITIES'], 'derivatives': '', 'indices': 'NIFTY COMMODITIES'}, {'keys': ['NIFTY INDIA CONSUMPTION'], 'derivatives': '', 'indices': 'NIFTY INDIA CONSUMPTION'}, {'keys': ['NIFTY CPSE'], 'derivatives': '', 'indices': 'NIFTY CPSE'}, {'keys': ['NIFTY INFRASTRUCTURE'], 'derivatives': '', 'indices': 'NIFTY INFRASTRUCTURE'}, {'keys': ['NIFTY MNC'], 'derivatives': '', 'indices': 'NIFTY MNC'}, {'keys': ['NIFTY GROWTH SECTORS 15'], 'derivatives': '', 'indices': 'NIFTY GROWTH SECTORS 15'}, {'keys': ['NIFTY PSE'], 'derivatives': '', 'indices': 'NIFTY PSE'}, {'keys': ['NIFTY SERVICES SECTOR'], 'derivatives': '', 'indices': 'NIFTY SERVICES SECTOR'}, {'keys': ['NIFTY100 LIQUID 15'], 'derivatives': '', 'indices': 'NIFTY100 LIQUID 15'}, {'keys': ['NIFTY MIDCAP LIQUID 15'], 'derivatives': '', 'indices': 'NIFTY MIDCAP LIQUID 15'}, {'keys': ['NIFTY INDIA DIGITAL'], 'derivatives': '', 'indices': 'NIFTY INDIA DIGITAL'}, {'keys': ['NIFTY100 ESG'], 'derivatives': '', 'indices': 'NIFTY100 ESG'}, {'keys': ['NIFTY INDIA MANUFACTURING'], 'derivatives': '', 'indices': 'NIFTY INDIA MANUFACTURING'}] +
+
+
+ symbol_map = + + [{'keys': ['NIFTY 50', 'NIFTY50', 'NIFTY'], + 'indices': 'NIFTY 50', 'derivatives': 'NIFTY'}, {'keys': + ['NIFTY BANK', 'NIFTYBANK', 'BANKNIFTY'], 'derivatives': + 'BANKNIFTY', 'indices': 'NIFTY BANK'}, {'keys': ['NIFTY + FINANCIAL SERVICES', 'FINNIFTY', 'NIFTY FIN SERVICE'], 'derivatives': + 'FINNIFTY', 'indices': 'NIFTY FINANCIAL SERVICES'}, {'keys': + ['NIFTY NEXT 50'], 'derivatives': '', 'indices': 'NIFTY NEXT + 50'}, {'keys': ['NIFTY MIDCAP 50'], 'derivatives': '', + 'indices': 'NIFTY MIDCAP 50'}, {'keys': ['NIFTY MIDCAP 100'], + 'derivatives': '', 'indices': 'NIFTY MIDCAP 100'}, {'keys': + ['NIFTY MIDCAP 150'], 'derivatives': '', 'indices': 'NIFTY + MIDCAP 150'}, {'keys': ['NIFTY SMALLCAP 50'], 'derivatives': '', + 'indices': 'NIFTY SMALLCAP 50'}, {'keys': ['NIFTY SMALLCAP 100'], + 'derivatives': '', 'indices': 'NIFTY SMALLCAP 100'}, + {'keys': ['NIFTY SMALLCAP 250'], 'derivatives': '', + 'indices': 'NIFTY SMALLCAP 250'}, {'keys': ['NIFTY MIDSMALLCAP + 400'], 'derivatives': '', 'indices': 'NIFTY MIDSMALLCAP 400'}, + {'keys': ['NIFTY 100'], 'derivatives': '', 'indices': + 'NIFTY 100'}, {'keys': ['NIFTY 200'], 'derivatives': '', + 'indices': 'NIFTY 200'}, {'keys': ['NIFTY500 MULTICAP 50:25:25'], + 'derivatives': '', 'indices': 'NIFTY500 MULTICAP 50:25:25'}, + {'keys': ['NIFTY LARGEMIDCAP 250'], 'derivatives': '', + 'indices': 'NIFTY LARGEMIDCAP 250'}, {'keys': ['NIFTY MIDCAP + SELECT'], 'derivatives': '', 'indices': 'NIFTY MIDCAP SELECT'}, + {'keys': ['NIFTY TOTAL MARKET'], 'derivatives': '', + 'indices': 'NIFTY TOTAL MARKET'}, {'keys': ['NIFTY MICROCAP 250'], + 'derivatives': '', 'indices': 'NIFTY MICROCAP 250'}, + {'keys': ['NIFTY AUTO'], 'derivatives': '', 'indices': + 'NIFTY AUTO'}, {'keys': ['NIFTY ENERGY'], 'derivatives': '', + 'indices': 'NIFTY ENERGY'}, {'keys': ['NIFTY FINANCIAL SERVICES + 25/50'], 'derivatives': '', 'indices': 'NIFTY FINANCIAL SERVICES + 25/50'}, {'keys': ['NIFTY FMCG'], 'derivatives': '', + 'indices': 'NIFTY FMCG'}, {'keys': ['NIFTY IT'], + 'derivatives': '', 'indices': 'NIFTY IT'}, {'keys': + ['NIFTY MEDIA'], 'derivatives': '', 'indices': 'NIFTY + MEDIA'}, {'keys': ['NIFTY METAL'], 'derivatives': '', + 'indices': 'NIFTY METAL'}, {'keys': ['NIFTY PHARMA'], + 'derivatives': '', 'indices': 'NIFTY PHARMA'}, {'keys': + ['NIFTY PSU BANK'], 'derivatives': '', 'indices': 'NIFTY PSU + BANK'}, {'keys': ['NIFTY REALTY'], 'derivatives': '', + 'indices': 'NIFTY REALTY'}, {'keys': ['NIFTY PRIVATE BANK'], + 'derivatives': '', 'indices': 'NIFTY PRIVATE BANK'}, + {'keys': ['NIFTY HEALTHCARE INDEX'], 'derivatives': '', + 'indices': 'NIFTY HEALTHCARE INDEX'}, {'keys': ['NIFTY CONSUMER + DURABLES'], 'derivatives': '', 'indices': 'NIFTY CONSUMER + DURABLES'}, {'keys': ['NIFTY OIL &amp; GAS'], 'derivatives': + '', 'indices': 'NIFTY OIL &amp; GAS'}, {'keys': ['NIFTY + DIVIDEND OPPORTUNITIES 50'], 'derivatives': '', 'indices': 'NIFTY + DIVIDEND OPPORTUNITIES 50'}, {'keys': ['NIFTY50 VALUE 20'], + 'derivatives': '', 'indices': 'NIFTY50 VALUE 20'}, {'keys': + ['NIFTY100 QUALITY 30'], 'derivatives': '', 'indices': 'NIFTY100 + QUALITY 30'}, {'keys': ['NIFTY50 EQUAL WEIGHT'], 'derivatives': + '', 'indices': 'NIFTY50 EQUAL WEIGHT'}, {'keys': ['NIFTY100 + EQUAL WEIGHT'], 'derivatives': '', 'indices': 'NIFTY100 EQUAL + WEIGHT'}, {'keys': ['NIFTY100 LOW VOLATILITY 30'], 'derivatives': + '', 'indices': 'NIFTY100 LOW VOLATILITY 30'}, {'keys': ['NIFTY + ALPHA 50'], 'derivatives': '', 'indices': 'NIFTY ALPHA 50'}, + {'keys': ['NIFTY200 QUALITY 30'], 'derivatives': '', + 'indices': 'NIFTY200 QUALITY 30'}, {'keys': ['NIFTY ALPHA LOW-VOLATILITY + 30'], 'derivatives': '', 'indices': 'NIFTY ALPHA LOW-VOLATILITY + 30'}, {'keys': ['NIFTY200 MOMENTUM 30'], 'derivatives': '', + 'indices': 'NIFTY200 MOMENTUM 30'}, {'keys': ['NIFTY MIDCAP150 QUALITY + 50'], 'derivatives': '', 'indices': 'NIFTY MIDCAP150 QUALITY + 50'}, {'keys': ['NIFTY COMMODITIES'], 'derivatives': '', + 'indices': 'NIFTY COMMODITIES'}, {'keys': ['NIFTY INDIA + CONSUMPTION'], 'derivatives': '', 'indices': 'NIFTY INDIA + CONSUMPTION'}, {'keys': ['NIFTY CPSE'], 'derivatives': '', + 'indices': 'NIFTY CPSE'}, {'keys': ['NIFTY INFRASTRUCTURE'], + 'derivatives': '', 'indices': 'NIFTY INFRASTRUCTURE'}, + {'keys': ['NIFTY MNC'], 'derivatives': '', 'indices': + 'NIFTY MNC'}, {'keys': ['NIFTY GROWTH SECTORS 15'], 'derivatives': + '', 'indices': 'NIFTY GROWTH SECTORS 15'}, {'keys': ['NIFTY + PSE'], 'derivatives': '', 'indices': 'NIFTY PSE'}, + {'keys': ['NIFTY SERVICES SECTOR'], 'derivatives': '', + 'indices': 'NIFTY SERVICES SECTOR'}, {'keys': ['NIFTY100 LIQUID + 15'], 'derivatives': '', 'indices': 'NIFTY100 LIQUID 15'}, + {'keys': ['NIFTY MIDCAP LIQUID 15'], 'derivatives': '', + 'indices': 'NIFTY MIDCAP LIQUID 15'}, {'keys': ['NIFTY INDIA + DIGITAL'], 'derivatives': '', 'indices': 'NIFTY INDIA DIGITAL'}, + {'keys': ['NIFTY100 ESG'], 'derivatives': '', 'indices': + 'NIFTY100 ESG'}, {'keys': ['NIFTY INDIA MANUFACTURING'], + 'derivatives': '', 'indices': 'NIFTY INDIA MANUFACTURING'}] - -
- - - -
-
- + + if (getSearchTerm()) { + initialize(); + searchBox.value = getSearchTerm(); + onInput(); + } else { + searchBox.addEventListener("focus", initialize, { once: true }); + } + + searchBox.addEventListener("keydown", e => { + if (["ArrowDown", "ArrowUp", "Enter"].includes(e.key)) { + let focused = currentContent.querySelector(".search-result.focused"); + if (!focused) { + currentContent.querySelector(".search-result").classList.add("focused"); + } else if ( + e.key === "ArrowDown" + && focused.nextElementSibling + && focused.nextElementSibling.classList.contains("search-result") + ) { + focused.classList.remove("focused"); + focused.nextElementSibling.classList.add("focused"); + focused.nextElementSibling.scrollIntoView({ + behavior: "smooth", + block: "nearest", + inline: "nearest" + }); + } else if ( + e.key === "ArrowUp" + && focused.previousElementSibling + && focused.previousElementSibling.classList.contains("search-result") + ) { + focused.classList.remove("focused"); + focused.previousElementSibling.classList.add("focused"); + focused.previousElementSibling.scrollIntoView({ + behavior: "smooth", + block: "nearest", + inline: "nearest" + }); + } else if ( + e.key === "Enter" + ) { + focused.querySelector("a").click(); + } + } + }); + + + \ No newline at end of file diff --git a/docs/html/nsedt/resources/tmp.html b/docs/html/nsedt/resources/tmp.html index 5a9ebd9..40a2672 100644 --- a/docs/html/nsedt/resources/tmp.html +++ b/docs/html/nsedt/resources/tmp.html @@ -1,60 +1,1461 @@ + - + nsedt.resources.tmp API documentation - - - - - - + + + + + + + + +
-
-

-nsedt.resources.tmp

+
+

+ nsedt.resources.tmp +

+ - - + - + -
 1import json
+            
+
 1import json
  2
  3
  4SYMBOL_MAP = [
@@ -135,204 +1536,290 @@ 

79 # `json.dumps()` function converts the dictionary into a JSON string, which can then be printed to 80 # the console. 81 print(f"{json.dumps(i)},") -

+
+
-
-
-
- SYMBOL_MAP = - - [{'keys': ['NIFTY 50', 'NIFTY50', 'NIFTY'], 'indices': 'NIFTY 50', 'derivatives': 'NIFTY'}, {'keys': ['NIFTY BANK', 'NIFTYBANK', 'BANKNIFTY'], 'derivatives': 'BANKNIFTY', 'indices': 'NIFTY BANK'}, {'keys': ['NIFTY FINANCIAL SERVICES', 'FINNIFTY', 'NIFTY FIN SERVICE'], 'derivatives': 'FINNIFTY', 'indices': 'NIFTY FINANCIAL SERVICES'}, {'keys': ['NIFTY NEXT 50'], 'derivatives': '', 'indices': 'NIFTY NEXT 50'}, {'keys': ['NIFTY MIDCAP 50'], 'derivatives': '', 'indices': 'NIFTY MIDCAP 50'}, {'keys': ['NIFTY MIDCAP 100'], 'derivatives': '', 'indices': 'NIFTY MIDCAP 100'}, {'keys': ['NIFTY MIDCAP 150'], 'derivatives': '', 'indices': 'NIFTY MIDCAP 150'}, {'keys': ['NIFTY SMALLCAP 50'], 'derivatives': '', 'indices': 'NIFTY SMALLCAP 50'}, {'keys': ['NIFTY SMALLCAP 100'], 'derivatives': '', 'indices': 'NIFTY SMALLCAP 100'}, {'keys': ['NIFTY SMALLCAP 250'], 'derivatives': '', 'indices': 'NIFTY SMALLCAP 250'}, {'keys': ['NIFTY MIDSMALLCAP 400'], 'derivatives': '', 'indices': 'NIFTY MIDSMALLCAP 400'}, {'keys': ['NIFTY 100'], 'derivatives': '', 'indices': 'NIFTY 100'}, {'keys': ['NIFTY 200'], 'derivatives': '', 'indices': 'NIFTY 200'}, {'keys': ['NIFTY500 MULTICAP 50:25:25'], 'derivatives': '', 'indices': 'NIFTY500 MULTICAP 50:25:25'}, {'keys': ['NIFTY LARGEMIDCAP 250'], 'derivatives': '', 'indices': 'NIFTY LARGEMIDCAP 250'}, {'keys': ['NIFTY MIDCAP SELECT'], 'derivatives': '', 'indices': 'NIFTY MIDCAP SELECT'}, {'keys': ['NIFTY TOTAL MARKET'], 'derivatives': '', 'indices': 'NIFTY TOTAL MARKET'}, {'keys': ['NIFTY MICROCAP 250'], 'derivatives': '', 'indices': 'NIFTY MICROCAP 250'}, {'keys': ['NIFTY AUTO'], 'derivatives': '', 'indices': 'NIFTY AUTO'}, {'keys': ['NIFTY ENERGY'], 'derivatives': '', 'indices': 'NIFTY ENERGY'}, {'keys': ['NIFTY FINANCIAL SERVICES 25/50'], 'derivatives': '', 'indices': 'NIFTY FINANCIAL SERVICES 25/50'}, {'keys': ['NIFTY FMCG'], 'derivatives': '', 'indices': 'NIFTY FMCG'}, {'keys': ['NIFTY IT'], 'derivatives': '', 'indices': 'NIFTY IT'}, {'keys': ['NIFTY MEDIA'], 'derivatives': '', 'indices': 'NIFTY MEDIA'}, {'keys': ['NIFTY METAL'], 'derivatives': '', 'indices': 'NIFTY METAL'}, {'keys': ['NIFTY PHARMA'], 'derivatives': '', 'indices': 'NIFTY PHARMA'}, {'keys': ['NIFTY PSU BANK'], 'derivatives': '', 'indices': 'NIFTY PSU BANK'}, {'keys': ['NIFTY REALTY'], 'derivatives': '', 'indices': 'NIFTY REALTY'}, {'keys': ['NIFTY PRIVATE BANK'], 'derivatives': '', 'indices': 'NIFTY PRIVATE BANK'}, {'keys': ['NIFTY HEALTHCARE INDEX'], 'derivatives': '', 'indices': 'NIFTY HEALTHCARE INDEX'}, {'keys': ['NIFTY CONSUMER DURABLES'], 'derivatives': '', 'indices': 'NIFTY CONSUMER DURABLES'}, {'keys': ['NIFTY OIL &amp; GAS'], 'derivatives': '', 'indices': 'NIFTY OIL &amp; GAS'}, {'keys': ['NIFTY DIVIDEND OPPORTUNITIES 50'], 'derivatives': '', 'indices': 'NIFTY DIVIDEND OPPORTUNITIES 50'}, {'keys': ['NIFTY50 VALUE 20'], 'derivatives': '', 'indices': 'NIFTY50 VALUE 20'}, {'keys': ['NIFTY100 QUALITY 30'], 'derivatives': '', 'indices': 'NIFTY100 QUALITY 30'}, {'keys': ['NIFTY50 EQUAL WEIGHT'], 'derivatives': '', 'indices': 'NIFTY50 EQUAL WEIGHT'}, {'keys': ['NIFTY100 EQUAL WEIGHT'], 'derivatives': '', 'indices': 'NIFTY100 EQUAL WEIGHT'}, {'keys': ['NIFTY100 LOW VOLATILITY 30'], 'derivatives': '', 'indices': 'NIFTY100 LOW VOLATILITY 30'}, {'keys': ['NIFTY ALPHA 50'], 'derivatives': '', 'indices': 'NIFTY ALPHA 50'}, {'keys': ['NIFTY200 QUALITY 30'], 'derivatives': '', 'indices': 'NIFTY200 QUALITY 30'}, {'keys': ['NIFTY ALPHA LOW-VOLATILITY 30'], 'derivatives': '', 'indices': 'NIFTY ALPHA LOW-VOLATILITY 30'}, {'keys': ['NIFTY200 MOMENTUM 30'], 'derivatives': '', 'indices': 'NIFTY200 MOMENTUM 30'}, {'keys': ['NIFTY MIDCAP150 QUALITY 50'], 'derivatives': '', 'indices': 'NIFTY MIDCAP150 QUALITY 50'}, {'keys': ['NIFTY COMMODITIES'], 'derivatives': '', 'indices': 'NIFTY COMMODITIES'}, {'keys': ['NIFTY INDIA CONSUMPTION'], 'derivatives': '', 'indices': 'NIFTY INDIA CONSUMPTION'}, {'keys': ['NIFTY CPSE'], 'derivatives': '', 'indices': 'NIFTY CPSE'}, {'keys': ['NIFTY INFRASTRUCTURE'], 'derivatives': '', 'indices': 'NIFTY INFRASTRUCTURE'}, {'keys': ['NIFTY MNC'], 'derivatives': '', 'indices': 'NIFTY MNC'}, {'keys': ['NIFTY GROWTH SECTORS 15'], 'derivatives': '', 'indices': 'NIFTY GROWTH SECTORS 15'}, {'keys': ['NIFTY PSE'], 'derivatives': '', 'indices': 'NIFTY PSE'}, {'keys': ['NIFTY SERVICES SECTOR'], 'derivatives': '', 'indices': 'NIFTY SERVICES SECTOR'}, {'keys': ['NIFTY100 LIQUID 15'], 'derivatives': '', 'indices': 'NIFTY100 LIQUID 15'}, {'keys': ['NIFTY MIDCAP LIQUID 15'], 'derivatives': '', 'indices': 'NIFTY MIDCAP LIQUID 15'}, {'keys': ['NIFTY INDIA DIGITAL'], 'derivatives': '', 'indices': 'NIFTY INDIA DIGITAL'}, {'keys': ['NIFTY100 ESG'], 'derivatives': '', 'indices': 'NIFTY100 ESG'}, {'keys': ['NIFTY INDIA MANUFACTURING'], 'derivatives': '', 'indices': 'NIFTY INDIA MANUFACTURING'}] +
+
+
+ SYMBOL_MAP = + + [{'keys': ['NIFTY 50', 'NIFTY50', 'NIFTY'], + 'indices': 'NIFTY 50', 'derivatives': 'NIFTY'}, {'keys': + ['NIFTY BANK', 'NIFTYBANK', 'BANKNIFTY'], 'derivatives': + 'BANKNIFTY', 'indices': 'NIFTY BANK'}, {'keys': ['NIFTY + FINANCIAL SERVICES', 'FINNIFTY', 'NIFTY FIN SERVICE'], 'derivatives': + 'FINNIFTY', 'indices': 'NIFTY FINANCIAL SERVICES'}, {'keys': + ['NIFTY NEXT 50'], 'derivatives': '', 'indices': 'NIFTY NEXT + 50'}, {'keys': ['NIFTY MIDCAP 50'], 'derivatives': '', + 'indices': 'NIFTY MIDCAP 50'}, {'keys': ['NIFTY MIDCAP 100'], + 'derivatives': '', 'indices': 'NIFTY MIDCAP 100'}, {'keys': + ['NIFTY MIDCAP 150'], 'derivatives': '', 'indices': 'NIFTY + MIDCAP 150'}, {'keys': ['NIFTY SMALLCAP 50'], 'derivatives': '', + 'indices': 'NIFTY SMALLCAP 50'}, {'keys': ['NIFTY SMALLCAP 100'], + 'derivatives': '', 'indices': 'NIFTY SMALLCAP 100'}, + {'keys': ['NIFTY SMALLCAP 250'], 'derivatives': '', + 'indices': 'NIFTY SMALLCAP 250'}, {'keys': ['NIFTY MIDSMALLCAP + 400'], 'derivatives': '', 'indices': 'NIFTY MIDSMALLCAP 400'}, + {'keys': ['NIFTY 100'], 'derivatives': '', 'indices': + 'NIFTY 100'}, {'keys': ['NIFTY 200'], 'derivatives': '', + 'indices': 'NIFTY 200'}, {'keys': ['NIFTY500 MULTICAP 50:25:25'], + 'derivatives': '', 'indices': 'NIFTY500 MULTICAP 50:25:25'}, + {'keys': ['NIFTY LARGEMIDCAP 250'], 'derivatives': '', + 'indices': 'NIFTY LARGEMIDCAP 250'}, {'keys': ['NIFTY MIDCAP + SELECT'], 'derivatives': '', 'indices': 'NIFTY MIDCAP SELECT'}, + {'keys': ['NIFTY TOTAL MARKET'], 'derivatives': '', + 'indices': 'NIFTY TOTAL MARKET'}, {'keys': ['NIFTY MICROCAP 250'], + 'derivatives': '', 'indices': 'NIFTY MICROCAP 250'}, + {'keys': ['NIFTY AUTO'], 'derivatives': '', 'indices': + 'NIFTY AUTO'}, {'keys': ['NIFTY ENERGY'], 'derivatives': '', + 'indices': 'NIFTY ENERGY'}, {'keys': ['NIFTY FINANCIAL SERVICES + 25/50'], 'derivatives': '', 'indices': 'NIFTY FINANCIAL SERVICES + 25/50'}, {'keys': ['NIFTY FMCG'], 'derivatives': '', + 'indices': 'NIFTY FMCG'}, {'keys': ['NIFTY IT'], + 'derivatives': '', 'indices': 'NIFTY IT'}, {'keys': + ['NIFTY MEDIA'], 'derivatives': '', 'indices': 'NIFTY + MEDIA'}, {'keys': ['NIFTY METAL'], 'derivatives': '', + 'indices': 'NIFTY METAL'}, {'keys': ['NIFTY PHARMA'], + 'derivatives': '', 'indices': 'NIFTY PHARMA'}, {'keys': + ['NIFTY PSU BANK'], 'derivatives': '', 'indices': 'NIFTY PSU + BANK'}, {'keys': ['NIFTY REALTY'], 'derivatives': '', + 'indices': 'NIFTY REALTY'}, {'keys': ['NIFTY PRIVATE BANK'], + 'derivatives': '', 'indices': 'NIFTY PRIVATE BANK'}, + {'keys': ['NIFTY HEALTHCARE INDEX'], 'derivatives': '', + 'indices': 'NIFTY HEALTHCARE INDEX'}, {'keys': ['NIFTY CONSUMER + DURABLES'], 'derivatives': '', 'indices': 'NIFTY CONSUMER + DURABLES'}, {'keys': ['NIFTY OIL &amp; GAS'], 'derivatives': + '', 'indices': 'NIFTY OIL &amp; GAS'}, {'keys': ['NIFTY + DIVIDEND OPPORTUNITIES 50'], 'derivatives': '', 'indices': 'NIFTY + DIVIDEND OPPORTUNITIES 50'}, {'keys': ['NIFTY50 VALUE 20'], + 'derivatives': '', 'indices': 'NIFTY50 VALUE 20'}, {'keys': + ['NIFTY100 QUALITY 30'], 'derivatives': '', 'indices': 'NIFTY100 + QUALITY 30'}, {'keys': ['NIFTY50 EQUAL WEIGHT'], 'derivatives': + '', 'indices': 'NIFTY50 EQUAL WEIGHT'}, {'keys': ['NIFTY100 + EQUAL WEIGHT'], 'derivatives': '', 'indices': 'NIFTY100 EQUAL + WEIGHT'}, {'keys': ['NIFTY100 LOW VOLATILITY 30'], 'derivatives': + '', 'indices': 'NIFTY100 LOW VOLATILITY 30'}, {'keys': ['NIFTY + ALPHA 50'], 'derivatives': '', 'indices': 'NIFTY ALPHA 50'}, + {'keys': ['NIFTY200 QUALITY 30'], 'derivatives': '', + 'indices': 'NIFTY200 QUALITY 30'}, {'keys': ['NIFTY ALPHA LOW-VOLATILITY + 30'], 'derivatives': '', 'indices': 'NIFTY ALPHA LOW-VOLATILITY + 30'}, {'keys': ['NIFTY200 MOMENTUM 30'], 'derivatives': '', + 'indices': 'NIFTY200 MOMENTUM 30'}, {'keys': ['NIFTY MIDCAP150 QUALITY + 50'], 'derivatives': '', 'indices': 'NIFTY MIDCAP150 QUALITY + 50'}, {'keys': ['NIFTY COMMODITIES'], 'derivatives': '', + 'indices': 'NIFTY COMMODITIES'}, {'keys': ['NIFTY INDIA + CONSUMPTION'], 'derivatives': '', 'indices': 'NIFTY INDIA + CONSUMPTION'}, {'keys': ['NIFTY CPSE'], 'derivatives': '', + 'indices': 'NIFTY CPSE'}, {'keys': ['NIFTY INFRASTRUCTURE'], + 'derivatives': '', 'indices': 'NIFTY INFRASTRUCTURE'}, + {'keys': ['NIFTY MNC'], 'derivatives': '', 'indices': + 'NIFTY MNC'}, {'keys': ['NIFTY GROWTH SECTORS 15'], 'derivatives': + '', 'indices': 'NIFTY GROWTH SECTORS 15'}, {'keys': ['NIFTY + PSE'], 'derivatives': '', 'indices': 'NIFTY PSE'}, + {'keys': ['NIFTY SERVICES SECTOR'], 'derivatives': '', + 'indices': 'NIFTY SERVICES SECTOR'}, {'keys': ['NIFTY100 LIQUID + 15'], 'derivatives': '', 'indices': 'NIFTY100 LIQUID 15'}, + {'keys': ['NIFTY MIDCAP LIQUID 15'], 'derivatives': '', + 'indices': 'NIFTY MIDCAP LIQUID 15'}, {'keys': ['NIFTY INDIA + DIGITAL'], 'derivatives': '', 'indices': 'NIFTY INDIA DIGITAL'}, + {'keys': ['NIFTY100 ESG'], 'derivatives': '', 'indices': + 'NIFTY100 ESG'}, {'keys': ['NIFTY INDIA MANUFACTURING'], + 'derivatives': '', 'indices': 'NIFTY INDIA MANUFACTURING'}] - -
- - - -
-
- + + if (getSearchTerm()) { + initialize(); + searchBox.value = getSearchTerm(); + onInput(); + } else { + searchBox.addEventListener("focus", initialize, { once: true }); + } + + searchBox.addEventListener("keydown", e => { + if (["ArrowDown", "ArrowUp", "Enter"].includes(e.key)) { + let focused = currentContent.querySelector(".search-result.focused"); + if (!focused) { + currentContent.querySelector(".search-result").classList.add("focused"); + } else if ( + e.key === "ArrowDown" + && focused.nextElementSibling + && focused.nextElementSibling.classList.contains("search-result") + ) { + focused.classList.remove("focused"); + focused.nextElementSibling.classList.add("focused"); + focused.nextElementSibling.scrollIntoView({ + behavior: "smooth", + block: "nearest", + inline: "nearest" + }); + } else if ( + e.key === "ArrowUp" + && focused.previousElementSibling + && focused.previousElementSibling.classList.contains("search-result") + ) { + focused.classList.remove("focused"); + focused.previousElementSibling.classList.add("focused"); + focused.previousElementSibling.scrollIntoView({ + behavior: "smooth", + block: "nearest", + inline: "nearest" + }); + } else if ( + e.key === "Enter" + ) { + focused.querySelector("a").click(); + } + } + }); + + + \ No newline at end of file diff --git a/docs/html/nsedt/utils.html b/docs/html/nsedt/utils.html index 66999c3..ec2fbf2 100644 --- a/docs/html/nsedt/utils.html +++ b/docs/html/nsedt/utils.html @@ -1,78 +1,1480 @@ + - + nsedt.utils API documentation - - - - - - + + + + + + + + +
-
-

-nsedt.utils

+
+

+ nsedt.utils +

-

utils for nsedt

-
+
+

utils for nsedt

+
- + - + -
  1"""
+            
+
  1"""
   2utils for nsedt
   3"""
   4
@@ -209,22 +1611,26 @@ 

135 raise ("Input is of an unknown type") 136 137 return start_date, end_date -

+
+
+ +
+
+ +
-
-
- -
- - def - get_headers(): + def + get_headers(): -
- -
16def get_headers():
+            
+ +
+
16def get_headers():
 17    """
 18    Args:
 19        ---
@@ -244,32 +1650,37 @@ 

33 "DNT": "1", 34 "Connection": "keep-alive", 35 } -

+ + -

Args: - ---

+
+

Args: + ---

-

Returns:

+

Returns:

-
Json: json containing nse header
+                
Json: json containing nse header
 
-
+
-
-
- -
- - def - get_cookies(): +
+
+ +
+ + def + get_cookies(): -
- -
38def get_cookies():
+            
+ +
+
38def get_cookies():
 39    """
 40    Args:
 41        ---
@@ -283,32 +1694,41 @@ 

49 if response.status_code != 200: 50 raise ValueError("Retry again in a minute.") 51 return response.cookies.get_dict() -

+ + -

Args: - ---

+
+

Args: + ---

-

Returns:

+

Returns:

-
Json: json containing nse cookies
+                
Json: json containing nse cookies
 
-
+
+ +
+
+ +
-
-
- -
- - def - fetch_url(url, cookies, key=None, response_type='panda_df'): + def + fetch_url(url, cookies, key=None, response_type='panda_df'): -
- -
54def fetch_url(url, cookies, key=None, response_type="panda_df"):
+            
+ +
+
54def fetch_url(url, cookies, key=None, response_type="panda_df"):
 55    """
 56    Args:
 57
@@ -340,36 +1760,44 @@ 

83 return pd.DataFrame.from_dict(json_response[key]) 84 85 raise ValueError("Please try again in a minute.") -

+ + -

Args:

+
+

Args:

-
url (str): URL to fetch
+                
url (str): URL to fetch
 cookies (str): NSE cookies
 key (str, Optional):
 
-

Returns:

+

Returns:

-
Pandas DataFrame: df containing url data
+                
Pandas DataFrame: df containing url data
 
-
+
-
-
- -
- - def - get_symbol(symbol: str, get_key: str) -> str: +
+
+ +
+ + def + get_symbol(symbol: str, + get_key: str) -> str: -
- -
 88def get_symbol(symbol: str, get_key: str) -> str:
+            
+ +
+
 88def get_symbol(symbol: str, get_key: str) -> str:
  89    """_summary_
  90
  91    Args:
@@ -388,33 +1816,44 @@ 

104 val = item[get_key] 105 106 return val if val else symbol -

+ + + +
+

_summary_

-

_summary_

+

Args: + symbol (str): _description_ + get_key (str): _description_

-

Args: - symbol (str): _description_ - get_key (str): _description_

+

Returns: + str: _description_

+
-

Returns: - str: _description_

-
+
+
+ +
-
-
- -
- - def - check_nd_convert( start_date: str, end_date: str) -> <module 'datetime' from '/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/datetime.py'>: + def + check_nd_convert( start_date: str, end_date: str) -> + <module 'datetime' from '/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/datetime.py'>: -
- -
109def check_nd_convert(start_date: str, end_date: str) -> datetime:
+            
+ +
+
109def check_nd_convert(start_date: str, end_date: str) -> datetime:
 110    """
 111    The function `check_nd_convert` takes two date strings in the format "%d-%m-%Y" and converts them to
 112    datetime objects if they are not already in that format.
@@ -444,211 +1883,218 @@ 

136 raise ("Input is of an unknown type") 137 138 return start_date, end_date -

+ + -

The function check_nd_convert takes two date strings in the format "%d-%m-%Y" and converts them to -datetime objects if they are not already in that format.

+
+

The function check_nd_convert takes two date strings in + the format "%d-%m-%Y" and converts them to + datetime objects if they are not already in that format.

-
Parameters
+
Parameters
-
    -
  • start_date: The start_date parameter is the starting date of a period, specified as a -string in the format "%d-%m-%Y"
  • -
  • end_date: The end_date parameter is a string representing the end date in the format -"%d-%m-%Y"
  • -
+
    +
  • start_date: The start_date parameter is the starting date of a + period, specified as a + string in the format "%d-%m-%Y"
  • +
  • end_date: The end_date parameter is a string representing the end + date in the format + "%d-%m-%Y"
  • +
-
Returns
+
Returns
-
-

the start_date and end_date as datetime objects.

-
-
+
+

the start_date and end_date as datetime objects.

+
+
-
+
- + + if (getSearchTerm()) { + initialize(); + searchBox.value = getSearchTerm(); + onInput(); + } else { + searchBox.addEventListener("focus", initialize, { once: true }); + } + + searchBox.addEventListener("keydown", e => { + if (["ArrowDown", "ArrowUp", "Enter"].includes(e.key)) { + let focused = currentContent.querySelector(".search-result.focused"); + if (!focused) { + currentContent.querySelector(".search-result").classList.add("focused"); + } else if ( + e.key === "ArrowDown" + && focused.nextElementSibling + && focused.nextElementSibling.classList.contains("search-result") + ) { + focused.classList.remove("focused"); + focused.nextElementSibling.classList.add("focused"); + focused.nextElementSibling.scrollIntoView({ + behavior: "smooth", + block: "nearest", + inline: "nearest" + }); + } else if ( + e.key === "ArrowUp" + && focused.previousElementSibling + && focused.previousElementSibling.classList.contains("search-result") + ) { + focused.classList.remove("focused"); + focused.previousElementSibling.classList.add("focused"); + focused.previousElementSibling.scrollIntoView({ + behavior: "smooth", + block: "nearest", + inline: "nearest" + }); + } else if ( + e.key === "Enter" + ) { + focused.querySelector("a").click(); + } + } + }); + + + \ No newline at end of file diff --git a/docs/html/nsedt/utils/data_format.html b/docs/html/nsedt/utils/data_format.html index 17a399a..8baff32 100644 --- a/docs/html/nsedt/utils/data_format.html +++ b/docs/html/nsedt/utils/data_format.html @@ -1,74 +1,1476 @@ + - + nsedt.utils.data_format API documentation - - - - - - + + + + + + + + +
-
-

-nsedt.utils.data_format

+
+

+ nsedt.utils.data_format +

-

return data in specific format

-
+
+

return data in specific format

+
- + - + -
  1"""
+            
+
  1"""
   2return data in specific format
   3"""
   4
@@ -332,22 +1734,26 @@ 

262 } 263 ) 264 ) -

+
+
-
-
- -
- - def - price(result): +
+
+ +
+ + def + price(result): -
- -
 9def price(result):
+            
+ +
+
 9def price(result):
 10    """
 11    Args:
 12        result (Pandas DataFrame): result
@@ -400,30 +1806,40 @@ 

59 result = result.sort_values("Date", ascending=True) 60 result.reset_index(drop=True, inplace=True) 61 return result -

+ + + +
+

Args: + result (Pandas DataFrame): result

-

Args: - result (Pandas DataFrame): result

+

Returns: + Pandas DataFrame: df containing data in specific format

+
-

Returns: - Pandas DataFrame: df containing data in specific format

-
+
+
+ +
-
-
- -
- - def - indices( data_json, columns_drop_list: list = None, columns_rename_map: map = None): + def + indices( data_json, columns_drop_list: list + = None, columns_rename_map: map + = None): -
- -
 64def indices(
+            
+ +
+
 64def indices(
  65    data_json,
  66    columns_drop_list: list = None,
  67    columns_rename_map: map = None,
@@ -469,29 +1885,37 @@ 

107 # ) 108 return data_close_df 109 # return pd.merge(data_close_df, data_turnover_df, on="Date", how="inner") -

+ + -

Args: - data_json (json): data in json format -Returns: - Pandas DataFrame: df with indexCloseOnlineRecords and indexTurnoverRecords

-
+
+

Args: + data_json (json): data in json format + Returns: + Pandas DataFrame: df with indexCloseOnlineRecords and indexTurnoverRecords

+
-
-
- -
- - def - option_chain(data_json: str, response_type: str): +
+
+ +
+ + def + option_chain(data_json: str, response_type: str): -
- -
112def option_chain(
+            
+ +
+
112def option_chain(
 113    data_json: str,
 114    response_type: str,
 115):
@@ -534,33 +1958,44 @@ 

152 ] 153 ) 154 ) -

+ + + +
+

_summary_

-

_summary_

+

Args: + data_json (str): _description_ + response_type (str): _description_

-

Args: - data_json (str): _description_ - response_type (str): _description_

+

Returns: + _type_: _description_

+
-

Returns: - _type_: _description_

-
+
+
+ +
-
-
- -
- - def - get_vix( data_json: object, response_type: str = 'panda_df', columns_drop_list: list = None): + def + get_vix( data_json: object, response_type: str = 'panda_df', + columns_drop_list: list + = None): -
- -
157def get_vix(
+            
+ +
+
157def get_vix(
 158    data_json: object,
 159    response_type: str = "panda_df",
 160    columns_drop_list: list = None,
@@ -612,32 +2047,42 @@ 

206 } 207 ) 208 ) -

- - -

Format Vix data -Args: - data_json (object): data in json format. - response_type (str, optional): response_type. Defaults to "panda_df". - columns_drop_list (list, optional): custom columns drop list. Defaults to None. -Returns: - _type_: _description_

-
- - -
-
- -
- - def - derivatives_futures( data_json: str, response_type: str = 'panda_df', columns_drop_list=None): + +
+ + +
+

Format Vix data + Args: + data_json (object): data in json format. + response_type (str, optional): response_type. Defaults to "panda_df". + columns_drop_list (list, optional): custom columns drop list. Defaults to None. + Returns: + _type_: _description_

+
+ + +
+
+ +
+ + def + derivatives_futures( data_json: str, response_type: str = 'panda_df', columns_drop_list=None): -
- -
211def derivatives_futures(
+            
+ +
+
211def derivatives_futures(
 212    data_json: str,
 213    response_type: str = "panda_df",
 214    columns_drop_list=None,
@@ -692,205 +2137,209 @@ 

263 } 264 ) 265 ) -

+ + -

Format futures data

+
+

Format futures data

-

Args: - data_json (object): data in json format. - response_type (str, optional): response_type. Defaults to "panda_df". - columns_drop_list (list, optional): custom columns drop list. Defaults to None.

+

Args: + data_json (object): data in json format. + response_type (str, optional): response_type. Defaults to "panda_df". + columns_drop_list (list, optional): custom columns drop list. Defaults to None.

-

Returns: - json: formate data in json - or - dataframe: formate data in panda df

-
+

Returns: + json: formate data in json + or + dataframe: formate data in panda df

+
-
+
- + + if (getSearchTerm()) { + initialize(); + searchBox.value = getSearchTerm(); + onInput(); + } else { + searchBox.addEventListener("focus", initialize, { once: true }); + } + + searchBox.addEventListener("keydown", e => { + if (["ArrowDown", "ArrowUp", "Enter"].includes(e.key)) { + let focused = currentContent.querySelector(".search-result.focused"); + if (!focused) { + currentContent.querySelector(".search-result").classList.add("focused"); + } else if ( + e.key === "ArrowDown" + && focused.nextElementSibling + && focused.nextElementSibling.classList.contains("search-result") + ) { + focused.classList.remove("focused"); + focused.nextElementSibling.classList.add("focused"); + focused.nextElementSibling.scrollIntoView({ + behavior: "smooth", + block: "nearest", + inline: "nearest" + }); + } else if ( + e.key === "ArrowUp" + && focused.previousElementSibling + && focused.previousElementSibling.classList.contains("search-result") + ) { + focused.classList.remove("focused"); + focused.previousElementSibling.classList.add("focused"); + focused.previousElementSibling.scrollIntoView({ + behavior: "smooth", + block: "nearest", + inline: "nearest" + }); + } else if ( + e.key === "Enter" + ) { + focused.querySelector("a").click(); + } + } + }); + + + \ No newline at end of file diff --git a/docs/html/search.js b/docs/html/search.js index f73b365..4a1cc11 100644 --- a/docs/html/search.js +++ b/docs/html/search.js @@ -1,6 +1,6 @@ window.pdocSearch = (function(){ /** elasticlunr - http://weixsong.github.io * Copyright (C) 2017 Oliver Nightingale * Copyright (C) 2017 Wei Song * MIT Licensed */!function(){function e(e){if(null===e||"object"!=typeof e)return e;var t=e.constructor();for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var t=function(e){var n=new t.Index;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),e&&e.call(n,n),n};t.version="0.9.5",lunr=t,t.utils={},t.utils.warn=function(e){return function(t){e.console&&console.warn&&console.warn(t)}}(this),t.utils.toString=function(e){return void 0===e||null===e?"":e.toString()},t.EventEmitter=function(){this.events={}},t.EventEmitter.prototype.addListener=function(){var e=Array.prototype.slice.call(arguments),t=e.pop(),n=e;if("function"!=typeof t)throw new TypeError("last argument must be a function");n.forEach(function(e){this.hasHandler(e)||(this.events[e]=[]),this.events[e].push(t)},this)},t.EventEmitter.prototype.removeListener=function(e,t){if(this.hasHandler(e)){var n=this.events[e].indexOf(t);-1!==n&&(this.events[e].splice(n,1),0==this.events[e].length&&delete this.events[e])}},t.EventEmitter.prototype.emit=function(e){if(this.hasHandler(e)){var t=Array.prototype.slice.call(arguments,1);this.events[e].forEach(function(e){e.apply(void 0,t)},this)}},t.EventEmitter.prototype.hasHandler=function(e){return e in this.events},t.tokenizer=function(e){if(!arguments.length||null===e||void 0===e)return[];if(Array.isArray(e)){var n=e.filter(function(e){return null===e||void 0===e?!1:!0});n=n.map(function(e){return t.utils.toString(e).toLowerCase()});var i=[];return n.forEach(function(e){var n=e.split(t.tokenizer.seperator);i=i.concat(n)},this),i}return e.toString().trim().toLowerCase().split(t.tokenizer.seperator)},t.tokenizer.defaultSeperator=/[\s\-]+/,t.tokenizer.seperator=t.tokenizer.defaultSeperator,t.tokenizer.setSeperator=function(e){null!==e&&void 0!==e&&"object"==typeof e&&(t.tokenizer.seperator=e)},t.tokenizer.resetSeperator=function(){t.tokenizer.seperator=t.tokenizer.defaultSeperator},t.tokenizer.getSeperator=function(){return t.tokenizer.seperator},t.Pipeline=function(){this._queue=[]},t.Pipeline.registeredFunctions={},t.Pipeline.registerFunction=function(e,n){n in t.Pipeline.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[n]=e},t.Pipeline.getRegisteredFunction=function(e){return e in t.Pipeline.registeredFunctions!=!0?null:t.Pipeline.registeredFunctions[e]},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(e){var i=t.Pipeline.getRegisteredFunction(e);if(!i)throw new Error("Cannot load un-registered function: "+e);n.add(i)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(e){t.Pipeline.warnIfFunctionNotRegistered(e),this._queue.push(e)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var i=this._queue.indexOf(e);if(-1===i)throw new Error("Cannot find existingFn");this._queue.splice(i+1,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var i=this._queue.indexOf(e);if(-1===i)throw new Error("Cannot find existingFn");this._queue.splice(i,0,n)},t.Pipeline.prototype.remove=function(e){var t=this._queue.indexOf(e);-1!==t&&this._queue.splice(t,1)},t.Pipeline.prototype.run=function(e){for(var t=[],n=e.length,i=this._queue.length,o=0;n>o;o++){for(var r=e[o],s=0;i>s&&(r=this._queue[s](r,o,e),void 0!==r&&null!==r);s++);void 0!==r&&null!==r&&t.push(r)}return t},t.Pipeline.prototype.reset=function(){this._queue=[]},t.Pipeline.prototype.get=function(){return this._queue},t.Pipeline.prototype.toJSON=function(){return this._queue.map(function(e){return t.Pipeline.warnIfFunctionNotRegistered(e),e.label})},t.Index=function(){this._fields=[],this._ref="id",this.pipeline=new t.Pipeline,this.documentStore=new t.DocumentStore,this.index={},this.eventEmitter=new t.EventEmitter,this._idfCache={},this.on("add","remove","update",function(){this._idfCache={}}.bind(this))},t.Index.prototype.on=function(){var e=Array.prototype.slice.call(arguments);return this.eventEmitter.addListener.apply(this.eventEmitter,e)},t.Index.prototype.off=function(e,t){return this.eventEmitter.removeListener(e,t)},t.Index.load=function(e){e.version!==t.version&&t.utils.warn("version mismatch: current "+t.version+" importing "+e.version);var n=new this;n._fields=e.fields,n._ref=e.ref,n.documentStore=t.DocumentStore.load(e.documentStore),n.pipeline=t.Pipeline.load(e.pipeline),n.index={};for(var i in e.index)n.index[i]=t.InvertedIndex.load(e.index[i]);return n},t.Index.prototype.addField=function(e){return this._fields.push(e),this.index[e]=new t.InvertedIndex,this},t.Index.prototype.setRef=function(e){return this._ref=e,this},t.Index.prototype.saveDocument=function(e){return this.documentStore=new t.DocumentStore(e),this},t.Index.prototype.addDoc=function(e,n){if(e){var n=void 0===n?!0:n,i=e[this._ref];this.documentStore.addDoc(i,e),this._fields.forEach(function(n){var o=this.pipeline.run(t.tokenizer(e[n]));this.documentStore.addFieldLength(i,n,o.length);var r={};o.forEach(function(e){e in r?r[e]+=1:r[e]=1},this);for(var s in r){var u=r[s];u=Math.sqrt(u),this.index[n].addToken(s,{ref:i,tf:u})}},this),n&&this.eventEmitter.emit("add",e,this)}},t.Index.prototype.removeDocByRef=function(e){if(e&&this.documentStore.isDocStored()!==!1&&this.documentStore.hasDoc(e)){var t=this.documentStore.getDoc(e);this.removeDoc(t,!1)}},t.Index.prototype.removeDoc=function(e,n){if(e){var n=void 0===n?!0:n,i=e[this._ref];this.documentStore.hasDoc(i)&&(this.documentStore.removeDoc(i),this._fields.forEach(function(n){var o=this.pipeline.run(t.tokenizer(e[n]));o.forEach(function(e){this.index[n].removeToken(e,i)},this)},this),n&&this.eventEmitter.emit("remove",e,this))}},t.Index.prototype.updateDoc=function(e,t){var t=void 0===t?!0:t;this.removeDocByRef(e[this._ref],!1),this.addDoc(e,!1),t&&this.eventEmitter.emit("update",e,this)},t.Index.prototype.idf=function(e,t){var n="@"+t+"/"+e;if(Object.prototype.hasOwnProperty.call(this._idfCache,n))return this._idfCache[n];var i=this.index[t].getDocFreq(e),o=1+Math.log(this.documentStore.length/(i+1));return this._idfCache[n]=o,o},t.Index.prototype.getFields=function(){return this._fields.slice()},t.Index.prototype.search=function(e,n){if(!e)return[];e="string"==typeof e?{any:e}:JSON.parse(JSON.stringify(e));var i=null;null!=n&&(i=JSON.stringify(n));for(var o=new t.Configuration(i,this.getFields()).get(),r={},s=Object.keys(e),u=0;u0&&t.push(e);for(var i in n)"docs"!==i&&"df"!==i&&this.expandToken(e+i,t,n[i]);return t},t.InvertedIndex.prototype.toJSON=function(){return{root:this.root}},t.Configuration=function(e,n){var e=e||"";if(void 0==n||null==n)throw new Error("fields should not be null");this.config={};var i;try{i=JSON.parse(e),this.buildUserConfig(i,n)}catch(o){t.utils.warn("user configuration parse failed, will use default configuration"),this.buildDefaultConfig(n)}},t.Configuration.prototype.buildDefaultConfig=function(e){this.reset(),e.forEach(function(e){this.config[e]={boost:1,bool:"OR",expand:!1}},this)},t.Configuration.prototype.buildUserConfig=function(e,n){var i="OR",o=!1;if(this.reset(),"bool"in e&&(i=e.bool||i),"expand"in e&&(o=e.expand||o),"fields"in e)for(var r in e.fields)if(n.indexOf(r)>-1){var s=e.fields[r],u=o;void 0!=s.expand&&(u=s.expand),this.config[r]={boost:s.boost||0===s.boost?s.boost:1,bool:s.bool||i,expand:u}}else t.utils.warn("field name in user configuration not found in index instance fields");else this.addAllFields2UserConfig(i,o,n)},t.Configuration.prototype.addAllFields2UserConfig=function(e,t,n){n.forEach(function(n){this.config[n]={boost:1,bool:e,expand:t}},this)},t.Configuration.prototype.get=function(){return this.config},t.Configuration.prototype.reset=function(){this.config={}},lunr.SortedSet=function(){this.length=0,this.elements=[]},lunr.SortedSet.load=function(e){var t=new this;return t.elements=e,t.length=e.length,t},lunr.SortedSet.prototype.add=function(){var e,t;for(e=0;e1;){if(r===e)return o;e>r&&(t=o),r>e&&(n=o),i=n-t,o=t+Math.floor(i/2),r=this.elements[o]}return r===e?o:-1},lunr.SortedSet.prototype.locationFor=function(e){for(var t=0,n=this.elements.length,i=n-t,o=t+Math.floor(i/2),r=this.elements[o];i>1;)e>r&&(t=o),r>e&&(n=o),i=n-t,o=t+Math.floor(i/2),r=this.elements[o];return r>e?o:e>r?o+1:void 0},lunr.SortedSet.prototype.intersect=function(e){for(var t=new lunr.SortedSet,n=0,i=0,o=this.length,r=e.length,s=this.elements,u=e.elements;;){if(n>o-1||i>r-1)break;s[n]!==u[i]?s[n]u[i]&&i++:(t.add(s[n]),n++,i++)}return t},lunr.SortedSet.prototype.clone=function(){var e=new lunr.SortedSet;return e.elements=this.toArray(),e.length=e.elements.length,e},lunr.SortedSet.prototype.union=function(e){var t,n,i;this.length>=e.length?(t=this,n=e):(t=e,n=this),i=t.clone();for(var o=0,r=n.toArray();oMain file

\n"}, {"fullname": "nsedt.derivatives", "modulename": "nsedt.derivatives", "kind": "module", "doc": "

get data for Equity

\n"}, {"fullname": "nsedt.derivatives.log", "modulename": "nsedt.derivatives", "qualname": "log", "kind": "variable", "doc": "

\n", "default_value": "<RootLogger root (INFO)>"}, {"fullname": "nsedt.derivatives.get_vix", "modulename": "nsedt.derivatives", "qualname": "get_vix", "kind": "function", "doc": "

Get Vix data

\n\n

Args:\n start_date (str): start date in \"%d-%m-%Y\" format\n end_date (str): end_date in \"%d-%m-%Y\" format\n response_type (str, optional): response_type. Defaults to \"panda_df\".\n columns_drop_list (list, optional): provide custom columns drop list. Defaults to None.

\n\n

Raises:\n exc: general Exception

\n\n

Returns:\n Pandas DataFrame: df containing option data\n or\n Json: json containing option data

\n", "signature": "(\tstart_date: str,\tend_date: str,\tresponse_type: str = 'panda_df',\tcolumns_drop_list: list = None):", "funcdef": "def"}, {"fullname": "nsedt.derivatives.futures", "modulename": "nsedt.derivatives.futures", "kind": "module", "doc": "

get data for Futures

\n"}, {"fullname": "nsedt.derivatives.futures.get_future_price", "modulename": "nsedt.derivatives.futures", "qualname": "get_future_price", "kind": "function", "doc": "

get future price of stock / indices\nArgs:\n symbol (str): _description_\n start_date (str): _description_\n end_date (str): _description_\n expiry_date (str, optional): _description_. Defaults to None.\n response_type (str, optional): _description_. Defaults to \"panda_df\".\n columns_drop_list (list, optional): _description_. Defaults to None.

\n\n

Returns:\n _type_: _description_

\n", "signature": "(\tsymbol: str,\tstart_date: str,\tend_date: str,\texpiry_date: str = None,\tresponse_type: str = 'panda_df',\tcolumns_drop_list: list = None):", "funcdef": "def"}, {"fullname": "nsedt.derivatives.futures.get_future_expdate", "modulename": "nsedt.derivatives.futures", "qualname": "get_future_expdate", "kind": "function", "doc": "

get expiry dates of futures

\n\n

Args:\n symbol (str): symbol name

\n\n

Returns:\n list: expiry dates

\n", "signature": "(symbol: str) -> list:", "funcdef": "def"}, {"fullname": "nsedt.derivatives.options", "modulename": "nsedt.derivatives.options", "kind": "module", "doc": "

get data for Options

\n"}, {"fullname": "nsedt.derivatives.options.log", "modulename": "nsedt.derivatives.options", "qualname": "log", "kind": "variable", "doc": "

\n", "default_value": "<RootLogger root (INFO)>"}, {"fullname": "nsedt.derivatives.options.get_option_chain", "modulename": "nsedt.derivatives.options", "qualname": "get_option_chain", "kind": "function", "doc": "

Get option data of stock and indices

\n\n

Args:\n symbol (str): symbol name\n strike_price (str, optional): strike price to apply filter on price. Defaults to None.\n expiry_date (str, optional): expiry date to apply filter on date. Defaults to None.\n response_type (str, optional): response_type panda_df or json . Defaults to \"panda_df\".

\n\n

Returns:\n Pandas DataFrame: df containing option data\nor\n Json: json containing option data

\n", "signature": "(\tsymbol: str,\tstrike_price: str = None,\texpiry_date: str = None,\tresponse_type='panda_df'):", "funcdef": "def"}, {"fullname": "nsedt.derivatives.options.get_option_chain_expdate", "modulename": "nsedt.derivatives.options", "qualname": "get_option_chain_expdate", "kind": "function", "doc": "

get option expiry date for stock and indices

\n\n

Args:\n symbol (str): symbol name

\n\n

Returns:\n list: expiry date in list(\"%d-%m-%Y\" format)

\n", "signature": "(symbol: str) -> list:", "funcdef": "def"}, {"fullname": "nsedt.equity", "modulename": "nsedt.equity", "kind": "module", "doc": "

get data for Equity

\n"}, {"fullname": "nsedt.equity.log", "modulename": "nsedt.equity", "qualname": "log", "kind": "variable", "doc": "

\n", "default_value": "<RootLogger root (INFO)>"}, {"fullname": "nsedt.equity.get_companyinfo", "modulename": "nsedt.equity", "qualname": "get_companyinfo", "kind": "function", "doc": "

_summary_

\n\n

Args:

\n\n
symbol (str): stock name\n\nresponse_type (str, Optional): define the response type panda_df | json. Default panda_df\n
\n\n

Returns:

\n\n
Pandas DataFrame: df containing company info\n
\n\n

or

\n\n
Json: json containing company info\n
\n", "signature": "(symbol: str, response_type: str = 'panda_df'):", "funcdef": "def"}, {"fullname": "nsedt.equity.get_marketstatus", "modulename": "nsedt.equity", "qualname": "get_marketstatus", "kind": "function", "doc": "

Args:

\n\n
response_type (str, Optional): define the response type panda_df | json. Default panda_df\n
\n\n

Returns:

\n\n
Pandas DataFrame: df containing market status\n\nJson : Json containing market status\n
\n", "signature": "(response_type: str = 'panda_df'):", "funcdef": "def"}, {"fullname": "nsedt.equity.get_price", "modulename": "nsedt.equity", "qualname": "get_price", "kind": "function", "doc": "

Create threads for different requests, parses data, combines them and returns dataframe

\n\n

Args:

\n\n
start_date (datetime.datetime): start date\n\nend_date (datetime.datetime): end date\n\ninput_type (str): Either 'stock' or 'index'\n\nsymbol (str, optional): stock symbol. Defaults to None. TODO: implement for index`\n
\n\n

Returns:

\n\n
Pandas DataFrame: df containing data for symbol of provided date range\n
\n", "signature": "(start_date, end_date, symbol=None, input_type='stock', series='EQ'):", "funcdef": "def"}, {"fullname": "nsedt.equity.get_corpinfo", "modulename": "nsedt.equity", "qualname": "get_corpinfo", "kind": "function", "doc": "

Create threads for different requests, parses data, combines them and returns dataframe

\n\n

Args:

\n\n
start_date (datetime.datetime): start date\n\nend_date (datetime.datetime): end date\n\nsymbol (str, optional): stock symbol. Defaults to None.\n
\n\n

Returns:

\n\n
Pandas DataFrame: df containing data for symbol of provided date range\n
\n\n

or

\n\n
Json: json containing data for symbol of provided date range\n
\n", "signature": "(start_date, end_date, symbol=None, response_type='panda_df'):", "funcdef": "def"}, {"fullname": "nsedt.equity.get_event", "modulename": "nsedt.equity", "qualname": "get_event", "kind": "function", "doc": "

Args:

\n\n
start_date (datetime.datetime,optional): start date\n\nend_date (datetime.datetime,optional): end date\n
\n\n

Returns:

\n\n
Pandas DataFrame: df containing event of provided date range\n
\n", "signature": "(start_date=None, end_date=None, index='equities'):", "funcdef": "def"}, {"fullname": "nsedt.equity.get_chartdata", "modulename": "nsedt.equity", "qualname": "get_chartdata", "kind": "function", "doc": "

Args:

\n\n
symbol (str): stock symbol.\n
\n\n

Returns:

\n\n
Pandas DataFrame: df containing chart data of provided date\n
\n", "signature": "(symbol, preopen=False, response_type='panda_df'):", "funcdef": "def"}, {"fullname": "nsedt.equity.get_symbols_list", "modulename": "nsedt.equity", "qualname": "get_symbols_list", "kind": "function", "doc": "

Args:

\n\n
No arguments needed\n
\n\n

Returns:

\n\n
List of stock or equity symbols\n
\n", "signature": "():", "funcdef": "def"}, {"fullname": "nsedt.equity.get_asm_list", "modulename": "nsedt.equity", "qualname": "get_asm_list", "kind": "function", "doc": "

Args:

\n\n
asm_type (str): ASM type, possible values: both,longterm,shortterm\n
\n\n

Returns:

\n\n
List of Stocks Under ASM\n
\n", "signature": "(asm_type='both') -> list:", "funcdef": "def"}, {"fullname": "nsedt.indices", "modulename": "nsedt.indices", "kind": "module", "doc": "

get data for indices

\n"}, {"fullname": "nsedt.indices.log", "modulename": "nsedt.indices", "qualname": "log", "kind": "variable", "doc": "

\n", "default_value": "<RootLogger root (INFO)>"}, {"fullname": "nsedt.indices.get_price", "modulename": "nsedt.indices", "qualname": "get_price", "kind": "function", "doc": "

Get price of index

\n\n

Args:

\n\n
start_date (datetime): start date\nend_date (datetime): end date\nsymbol (str): symbol name or index name\nresponse_type (str, optional):  Define return type: panda_df or json.\n                                Defaults to \"panda_df\".\ncolumns_drop_list (list,optional): define columns drop list, Defaults to None\ncolumns_rename_map (map, optional): define columns rename map, Defaults to None\n
\n\n

Raises:

\n\n
exc: general Exception\n
\n\n

Returns:

\n\n
    Pandas DataFrame: df containing company info\nor\n    Json: json containing company info\n
\n", "signature": "(\tstart_date: <module 'datetime' from '/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/datetime.py'>,\tend_date: <module 'datetime' from '/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/datetime.py'>,\tsymbol: str,\tresponse_type: str = 'panda_df',\tcolumns_drop_list: list = None,\tcolumns_rename_map: map = None):", "funcdef": "def"}, {"fullname": "nsedt.resources", "modulename": "nsedt.resources", "kind": "module", "doc": "

\n"}, {"fullname": "nsedt.resources.constants", "modulename": "nsedt.resources.constants", "kind": "module", "doc": "

Constants

\n"}, {"fullname": "nsedt.resources.constants.WINDOW_SIZE", "modulename": "nsedt.resources.constants", "qualname": "WINDOW_SIZE", "kind": "variable", "doc": "

\n", "default_value": "50"}, {"fullname": "nsedt.resources.constants.MAX_WORKERS", "modulename": "nsedt.resources.constants", "qualname": "MAX_WORKERS", "kind": "variable", "doc": "

\n", "default_value": "10"}, {"fullname": "nsedt.resources.constants.SYMBOL_MAP", "modulename": "nsedt.resources.constants", "qualname": "SYMBOL_MAP", "kind": "variable", "doc": "

\n", "default_value": "[{'keys': ['NIFTY 50', 'NIFTY50', 'NIFTY'], 'indices': 'NIFTY 50', 'derivatives': 'NIFTY'}, {'keys': ['NIFTY BANK', 'NIFTYBANK', 'BANKNIFTY'], 'derivatives': 'BANKNIFTY', 'indices': 'NIFTY BANK'}, {'keys': ['NIFTY FINANCIAL SERVICES', 'FINNIFTY', 'NIFTY FIN SERVICE'], 'derivatives': 'FINNIFTY', 'indices': 'NIFTY FINANCIAL SERVICES'}, {'keys': ['NIFTY NEXT 50'], 'derivatives': '', 'indices': 'NIFTY NEXT 50'}, {'keys': ['NIFTY MIDCAP 50'], 'derivatives': '', 'indices': 'NIFTY MIDCAP 50'}, {'keys': ['NIFTY MIDCAP 100'], 'derivatives': '', 'indices': 'NIFTY MIDCAP 100'}, {'keys': ['NIFTY MIDCAP 150'], 'derivatives': '', 'indices': 'NIFTY MIDCAP 150'}, {'keys': ['NIFTY SMALLCAP 50'], 'derivatives': '', 'indices': 'NIFTY SMALLCAP 50'}, {'keys': ['NIFTY SMALLCAP 100'], 'derivatives': '', 'indices': 'NIFTY SMALLCAP 100'}, {'keys': ['NIFTY SMALLCAP 250'], 'derivatives': '', 'indices': 'NIFTY SMALLCAP 250'}, {'keys': ['NIFTY MIDSMALLCAP 400'], 'derivatives': '', 'indices': 'NIFTY MIDSMALLCAP 400'}, {'keys': ['NIFTY 100'], 'derivatives': '', 'indices': 'NIFTY 100'}, {'keys': ['NIFTY 200'], 'derivatives': '', 'indices': 'NIFTY 200'}, {'keys': ['NIFTY500 MULTICAP 50:25:25'], 'derivatives': '', 'indices': 'NIFTY500 MULTICAP 50:25:25'}, {'keys': ['NIFTY LARGEMIDCAP 250'], 'derivatives': '', 'indices': 'NIFTY LARGEMIDCAP 250'}, {'keys': ['NIFTY MIDCAP SELECT'], 'derivatives': '', 'indices': 'NIFTY MIDCAP SELECT'}, {'keys': ['NIFTY TOTAL MARKET'], 'derivatives': '', 'indices': 'NIFTY TOTAL MARKET'}, {'keys': ['NIFTY MICROCAP 250'], 'derivatives': '', 'indices': 'NIFTY MICROCAP 250'}, {'keys': ['NIFTY AUTO'], 'derivatives': '', 'indices': 'NIFTY AUTO'}, {'keys': ['NIFTY ENERGY'], 'derivatives': '', 'indices': 'NIFTY ENERGY'}, {'keys': ['NIFTY FINANCIAL SERVICES 25/50'], 'derivatives': '', 'indices': 'NIFTY FINANCIAL SERVICES 25/50'}, {'keys': ['NIFTY FMCG'], 'derivatives': '', 'indices': 'NIFTY FMCG'}, {'keys': ['NIFTY IT'], 'derivatives': '', 'indices': 'NIFTY IT'}, {'keys': ['NIFTY MEDIA'], 'derivatives': '', 'indices': 'NIFTY MEDIA'}, {'keys': ['NIFTY METAL'], 'derivatives': '', 'indices': 'NIFTY METAL'}, {'keys': ['NIFTY PHARMA'], 'derivatives': '', 'indices': 'NIFTY PHARMA'}, {'keys': ['NIFTY PSU BANK'], 'derivatives': '', 'indices': 'NIFTY PSU BANK'}, {'keys': ['NIFTY REALTY'], 'derivatives': '', 'indices': 'NIFTY REALTY'}, {'keys': ['NIFTY PRIVATE BANK'], 'derivatives': '', 'indices': 'NIFTY PRIVATE BANK'}, {'keys': ['NIFTY HEALTHCARE INDEX'], 'derivatives': '', 'indices': 'NIFTY HEALTHCARE INDEX'}, {'keys': ['NIFTY CONSUMER DURABLES'], 'derivatives': '', 'indices': 'NIFTY CONSUMER DURABLES'}, {'keys': ['NIFTY OIL &amp; GAS'], 'derivatives': '', 'indices': 'NIFTY OIL &amp; GAS'}, {'keys': ['NIFTY DIVIDEND OPPORTUNITIES 50'], 'derivatives': '', 'indices': 'NIFTY DIVIDEND OPPORTUNITIES 50'}, {'keys': ['NIFTY50 VALUE 20'], 'derivatives': '', 'indices': 'NIFTY50 VALUE 20'}, {'keys': ['NIFTY100 QUALITY 30'], 'derivatives': '', 'indices': 'NIFTY100 QUALITY 30'}, {'keys': ['NIFTY50 EQUAL WEIGHT'], 'derivatives': '', 'indices': 'NIFTY50 EQUAL WEIGHT'}, {'keys': ['NIFTY100 EQUAL WEIGHT'], 'derivatives': '', 'indices': 'NIFTY100 EQUAL WEIGHT'}, {'keys': ['NIFTY100 LOW VOLATILITY 30'], 'derivatives': '', 'indices': 'NIFTY100 LOW VOLATILITY 30'}, {'keys': ['NIFTY ALPHA 50'], 'derivatives': '', 'indices': 'NIFTY ALPHA 50'}, {'keys': ['NIFTY200 QUALITY 30'], 'derivatives': '', 'indices': 'NIFTY200 QUALITY 30'}, {'keys': ['NIFTY ALPHA LOW-VOLATILITY 30'], 'derivatives': '', 'indices': 'NIFTY ALPHA LOW-VOLATILITY 30'}, {'keys': ['NIFTY200 MOMENTUM 30'], 'derivatives': '', 'indices': 'NIFTY200 MOMENTUM 30'}, {'keys': ['NIFTY MIDCAP150 QUALITY 50'], 'derivatives': '', 'indices': 'NIFTY MIDCAP150 QUALITY 50'}, {'keys': ['NIFTY COMMODITIES'], 'derivatives': '', 'indices': 'NIFTY COMMODITIES'}, {'keys': ['NIFTY INDIA CONSUMPTION'], 'derivatives': '', 'indices': 'NIFTY INDIA CONSUMPTION'}, {'keys': ['NIFTY CPSE'], 'derivatives': '', 'indices': 'NIFTY CPSE'}, {'keys': ['NIFTY INFRASTRUCTURE'], 'derivatives': '', 'indices': 'NIFTY INFRASTRUCTURE'}, {'keys': ['NIFTY MNC'], 'derivatives': '', 'indices': 'NIFTY MNC'}, {'keys': ['NIFTY GROWTH SECTORS 15'], 'derivatives': '', 'indices': 'NIFTY GROWTH SECTORS 15'}, {'keys': ['NIFTY PSE'], 'derivatives': '', 'indices': 'NIFTY PSE'}, {'keys': ['NIFTY SERVICES SECTOR'], 'derivatives': '', 'indices': 'NIFTY SERVICES SECTOR'}, {'keys': ['NIFTY100 LIQUID 15'], 'derivatives': '', 'indices': 'NIFTY100 LIQUID 15'}, {'keys': ['NIFTY MIDCAP LIQUID 15'], 'derivatives': '', 'indices': 'NIFTY MIDCAP LIQUID 15'}, {'keys': ['NIFTY INDIA DIGITAL'], 'derivatives': '', 'indices': 'NIFTY INDIA DIGITAL'}, {'keys': ['NIFTY100 ESG'], 'derivatives': '', 'indices': 'NIFTY100 ESG'}, {'keys': ['NIFTY INDIA MANUFACTURING'], 'derivatives': '', 'indices': 'NIFTY INDIA MANUFACTURING'}]"}, {"fullname": "nsedt.resources.constants.LOG_FORMAT", "modulename": "nsedt.resources.constants", "qualname": "LOG_FORMAT", "kind": "variable", "doc": "

\n", "default_value": "'{\\n "time": "%(asctime)s",\\n "lineno": "%(lineno)d",\\n "name": "[%(name)s]",\\n "loglevel": "%(levelname)s",\\n "process": "%(process)s",\\n "filename": "%(filename)s",\\n "funcName": "%(funcName)s",\\n "logmessage": "%(message)s",\\n}'"}, {"fullname": "nsedt.resources.constants.BASE_URL", "modulename": "nsedt.resources.constants", "qualname": "BASE_URL", "kind": "variable", "doc": "

\n", "default_value": "'https://www.nseindia.com/'"}, {"fullname": "nsedt.resources.constants.EQUITY_PRICE_HISTORY", "modulename": "nsedt.resources.constants", "qualname": "EQUITY_PRICE_HISTORY", "kind": "variable", "doc": "

\n", "default_value": "'api/historical/securityArchives?'"}, {"fullname": "nsedt.resources.constants.EQUITY_CORPINFO", "modulename": "nsedt.resources.constants", "qualname": "EQUITY_CORPINFO", "kind": "variable", "doc": "

\n", "default_value": "'api/corporates-corporateActions?'"}, {"fullname": "nsedt.resources.constants.MARKETSTATUS", "modulename": "nsedt.resources.constants", "qualname": "MARKETSTATUS", "kind": "variable", "doc": "

\n", "default_value": "'api/marketStatus'"}, {"fullname": "nsedt.resources.constants.EQUITY_EVENT", "modulename": "nsedt.resources.constants", "qualname": "EQUITY_EVENT", "kind": "variable", "doc": "

\n", "default_value": "'api/event-calendar?'"}, {"fullname": "nsedt.resources.constants.EQUITY_CHART", "modulename": "nsedt.resources.constants", "qualname": "EQUITY_CHART", "kind": "variable", "doc": "

\n", "default_value": "'api/chart-databyindex?'"}, {"fullname": "nsedt.resources.constants.EQUITY_INFO", "modulename": "nsedt.resources.constants", "qualname": "EQUITY_INFO", "kind": "variable", "doc": "

\n", "default_value": "'api/quote-equity?'"}, {"fullname": "nsedt.resources.constants.EQUITY_LIST", "modulename": "nsedt.resources.constants", "qualname": "EQUITY_LIST", "kind": "variable", "doc": "

\n", "default_value": "'api/market-data-pre-open?key=ALL'"}, {"fullname": "nsedt.resources.constants.ASM_LIST", "modulename": "nsedt.resources.constants", "qualname": "ASM_LIST", "kind": "variable", "doc": "

\n", "default_value": "'api/reportASM'"}, {"fullname": "nsedt.resources.constants.INDEX_PRICE_HISTORY", "modulename": "nsedt.resources.constants", "qualname": "INDEX_PRICE_HISTORY", "kind": "variable", "doc": "

\n", "default_value": "'api/historical/indicesHistory?'"}, {"fullname": "nsedt.resources.constants.OPTIONS_PRICE_EQUITIES", "modulename": "nsedt.resources.constants", "qualname": "OPTIONS_PRICE_EQUITIES", "kind": "variable", "doc": "

\n", "default_value": "'api/option-chain-equities?'"}, {"fullname": "nsedt.resources.constants.OPTIONS_PRICE_INDICES", "modulename": "nsedt.resources.constants", "qualname": "OPTIONS_PRICE_INDICES", "kind": "variable", "doc": "

\n", "default_value": "'api/option-chain-indices?'"}, {"fullname": "nsedt.resources.constants.INDICES", "modulename": "nsedt.resources.constants", "qualname": "INDICES", "kind": "variable", "doc": "

\n", "default_value": "['NIFTY', 'FINNIFTY', 'BANKNIFTY']"}, {"fullname": "nsedt.resources.constants.VIX_HISTORY", "modulename": "nsedt.resources.constants", "qualname": "VIX_HISTORY", "kind": "variable", "doc": "

\n", "default_value": "'api/historical/vixhistory?'"}, {"fullname": "nsedt.resources.constants.FUTURES_PRICE", "modulename": "nsedt.resources.constants", "qualname": "FUTURES_PRICE", "kind": "variable", "doc": "

\n", "default_value": "'api/historical/foCPV?'"}, {"fullname": "nsedt.resources.index_symbol", "modulename": "nsedt.resources.index_symbol", "kind": "module", "doc": "

NSE indices symbol map

\n"}, {"fullname": "nsedt.resources.index_symbol.symbol_map", "modulename": "nsedt.resources.index_symbol", "qualname": "symbol_map", "kind": "variable", "doc": "

\n", "default_value": "[{'keys': ['NIFTY 50', 'NIFTY50', 'NIFTY'], 'indices': 'NIFTY 50', 'derivatives': 'NIFTY'}, {'keys': ['NIFTY BANK', 'NIFTYBANK', 'BANKNIFTY'], 'derivatives': 'BANKNIFTY', 'indices': 'NIFTY BANK'}, {'keys': ['NIFTY FINANCIAL SERVICES', 'FINNIFTY', 'NIFTY FIN SERVICE'], 'derivatives': 'FINNIFTY', 'indices': 'NIFTY FINANCIAL SERVICES'}, {'keys': ['NIFTY NEXT 50'], 'derivatives': '', 'indices': 'NIFTY NEXT 50'}, {'keys': ['NIFTY MIDCAP 50'], 'derivatives': '', 'indices': 'NIFTY MIDCAP 50'}, {'keys': ['NIFTY MIDCAP 100'], 'derivatives': '', 'indices': 'NIFTY MIDCAP 100'}, {'keys': ['NIFTY MIDCAP 150'], 'derivatives': '', 'indices': 'NIFTY MIDCAP 150'}, {'keys': ['NIFTY SMALLCAP 50'], 'derivatives': '', 'indices': 'NIFTY SMALLCAP 50'}, {'keys': ['NIFTY SMALLCAP 100'], 'derivatives': '', 'indices': 'NIFTY SMALLCAP 100'}, {'keys': ['NIFTY SMALLCAP 250'], 'derivatives': '', 'indices': 'NIFTY SMALLCAP 250'}, {'keys': ['NIFTY MIDSMALLCAP 400'], 'derivatives': '', 'indices': 'NIFTY MIDSMALLCAP 400'}, {'keys': ['NIFTY 100'], 'derivatives': '', 'indices': 'NIFTY 100'}, {'keys': ['NIFTY 200'], 'derivatives': '', 'indices': 'NIFTY 200'}, {'keys': ['NIFTY500 MULTICAP 50:25:25'], 'derivatives': '', 'indices': 'NIFTY500 MULTICAP 50:25:25'}, {'keys': ['NIFTY LARGEMIDCAP 250'], 'derivatives': '', 'indices': 'NIFTY LARGEMIDCAP 250'}, {'keys': ['NIFTY MIDCAP SELECT'], 'derivatives': '', 'indices': 'NIFTY MIDCAP SELECT'}, {'keys': ['NIFTY TOTAL MARKET'], 'derivatives': '', 'indices': 'NIFTY TOTAL MARKET'}, {'keys': ['NIFTY MICROCAP 250'], 'derivatives': '', 'indices': 'NIFTY MICROCAP 250'}, {'keys': ['NIFTY AUTO'], 'derivatives': '', 'indices': 'NIFTY AUTO'}, {'keys': ['NIFTY ENERGY'], 'derivatives': '', 'indices': 'NIFTY ENERGY'}, {'keys': ['NIFTY FINANCIAL SERVICES 25/50'], 'derivatives': '', 'indices': 'NIFTY FINANCIAL SERVICES 25/50'}, {'keys': ['NIFTY FMCG'], 'derivatives': '', 'indices': 'NIFTY FMCG'}, {'keys': ['NIFTY IT'], 'derivatives': '', 'indices': 'NIFTY IT'}, {'keys': ['NIFTY MEDIA'], 'derivatives': '', 'indices': 'NIFTY MEDIA'}, {'keys': ['NIFTY METAL'], 'derivatives': '', 'indices': 'NIFTY METAL'}, {'keys': ['NIFTY PHARMA'], 'derivatives': '', 'indices': 'NIFTY PHARMA'}, {'keys': ['NIFTY PSU BANK'], 'derivatives': '', 'indices': 'NIFTY PSU BANK'}, {'keys': ['NIFTY REALTY'], 'derivatives': '', 'indices': 'NIFTY REALTY'}, {'keys': ['NIFTY PRIVATE BANK'], 'derivatives': '', 'indices': 'NIFTY PRIVATE BANK'}, {'keys': ['NIFTY HEALTHCARE INDEX'], 'derivatives': '', 'indices': 'NIFTY HEALTHCARE INDEX'}, {'keys': ['NIFTY CONSUMER DURABLES'], 'derivatives': '', 'indices': 'NIFTY CONSUMER DURABLES'}, {'keys': ['NIFTY OIL &amp; GAS'], 'derivatives': '', 'indices': 'NIFTY OIL &amp; GAS'}, {'keys': ['NIFTY DIVIDEND OPPORTUNITIES 50'], 'derivatives': '', 'indices': 'NIFTY DIVIDEND OPPORTUNITIES 50'}, {'keys': ['NIFTY50 VALUE 20'], 'derivatives': '', 'indices': 'NIFTY50 VALUE 20'}, {'keys': ['NIFTY100 QUALITY 30'], 'derivatives': '', 'indices': 'NIFTY100 QUALITY 30'}, {'keys': ['NIFTY50 EQUAL WEIGHT'], 'derivatives': '', 'indices': 'NIFTY50 EQUAL WEIGHT'}, {'keys': ['NIFTY100 EQUAL WEIGHT'], 'derivatives': '', 'indices': 'NIFTY100 EQUAL WEIGHT'}, {'keys': ['NIFTY100 LOW VOLATILITY 30'], 'derivatives': '', 'indices': 'NIFTY100 LOW VOLATILITY 30'}, {'keys': ['NIFTY ALPHA 50'], 'derivatives': '', 'indices': 'NIFTY ALPHA 50'}, {'keys': ['NIFTY200 QUALITY 30'], 'derivatives': '', 'indices': 'NIFTY200 QUALITY 30'}, {'keys': ['NIFTY ALPHA LOW-VOLATILITY 30'], 'derivatives': '', 'indices': 'NIFTY ALPHA LOW-VOLATILITY 30'}, {'keys': ['NIFTY200 MOMENTUM 30'], 'derivatives': '', 'indices': 'NIFTY200 MOMENTUM 30'}, {'keys': ['NIFTY MIDCAP150 QUALITY 50'], 'derivatives': '', 'indices': 'NIFTY MIDCAP150 QUALITY 50'}, {'keys': ['NIFTY COMMODITIES'], 'derivatives': '', 'indices': 'NIFTY COMMODITIES'}, {'keys': ['NIFTY INDIA CONSUMPTION'], 'derivatives': '', 'indices': 'NIFTY INDIA CONSUMPTION'}, {'keys': ['NIFTY CPSE'], 'derivatives': '', 'indices': 'NIFTY CPSE'}, {'keys': ['NIFTY INFRASTRUCTURE'], 'derivatives': '', 'indices': 'NIFTY INFRASTRUCTURE'}, {'keys': ['NIFTY MNC'], 'derivatives': '', 'indices': 'NIFTY MNC'}, {'keys': ['NIFTY GROWTH SECTORS 15'], 'derivatives': '', 'indices': 'NIFTY GROWTH SECTORS 15'}, {'keys': ['NIFTY PSE'], 'derivatives': '', 'indices': 'NIFTY PSE'}, {'keys': ['NIFTY SERVICES SECTOR'], 'derivatives': '', 'indices': 'NIFTY SERVICES SECTOR'}, {'keys': ['NIFTY100 LIQUID 15'], 'derivatives': '', 'indices': 'NIFTY100 LIQUID 15'}, {'keys': ['NIFTY MIDCAP LIQUID 15'], 'derivatives': '', 'indices': 'NIFTY MIDCAP LIQUID 15'}, {'keys': ['NIFTY INDIA DIGITAL'], 'derivatives': '', 'indices': 'NIFTY INDIA DIGITAL'}, {'keys': ['NIFTY100 ESG'], 'derivatives': '', 'indices': 'NIFTY100 ESG'}, {'keys': ['NIFTY INDIA MANUFACTURING'], 'derivatives': '', 'indices': 'NIFTY INDIA MANUFACTURING'}]"}, {"fullname": "nsedt.resources.tmp", "modulename": "nsedt.resources.tmp", "kind": "module", "doc": "

\n"}, {"fullname": "nsedt.resources.tmp.SYMBOL_MAP", "modulename": "nsedt.resources.tmp", "qualname": "SYMBOL_MAP", "kind": "variable", "doc": "

\n", "default_value": "[{'keys': ['NIFTY 50', 'NIFTY50', 'NIFTY'], 'indices': 'NIFTY 50', 'derivatives': 'NIFTY'}, {'keys': ['NIFTY BANK', 'NIFTYBANK', 'BANKNIFTY'], 'derivatives': 'BANKNIFTY', 'indices': 'NIFTY BANK'}, {'keys': ['NIFTY FINANCIAL SERVICES', 'FINNIFTY', 'NIFTY FIN SERVICE'], 'derivatives': 'FINNIFTY', 'indices': 'NIFTY FINANCIAL SERVICES'}, {'keys': ['NIFTY NEXT 50'], 'derivatives': '', 'indices': 'NIFTY NEXT 50'}, {'keys': ['NIFTY MIDCAP 50'], 'derivatives': '', 'indices': 'NIFTY MIDCAP 50'}, {'keys': ['NIFTY MIDCAP 100'], 'derivatives': '', 'indices': 'NIFTY MIDCAP 100'}, {'keys': ['NIFTY MIDCAP 150'], 'derivatives': '', 'indices': 'NIFTY MIDCAP 150'}, {'keys': ['NIFTY SMALLCAP 50'], 'derivatives': '', 'indices': 'NIFTY SMALLCAP 50'}, {'keys': ['NIFTY SMALLCAP 100'], 'derivatives': '', 'indices': 'NIFTY SMALLCAP 100'}, {'keys': ['NIFTY SMALLCAP 250'], 'derivatives': '', 'indices': 'NIFTY SMALLCAP 250'}, {'keys': ['NIFTY MIDSMALLCAP 400'], 'derivatives': '', 'indices': 'NIFTY MIDSMALLCAP 400'}, {'keys': ['NIFTY 100'], 'derivatives': '', 'indices': 'NIFTY 100'}, {'keys': ['NIFTY 200'], 'derivatives': '', 'indices': 'NIFTY 200'}, {'keys': ['NIFTY500 MULTICAP 50:25:25'], 'derivatives': '', 'indices': 'NIFTY500 MULTICAP 50:25:25'}, {'keys': ['NIFTY LARGEMIDCAP 250'], 'derivatives': '', 'indices': 'NIFTY LARGEMIDCAP 250'}, {'keys': ['NIFTY MIDCAP SELECT'], 'derivatives': '', 'indices': 'NIFTY MIDCAP SELECT'}, {'keys': ['NIFTY TOTAL MARKET'], 'derivatives': '', 'indices': 'NIFTY TOTAL MARKET'}, {'keys': ['NIFTY MICROCAP 250'], 'derivatives': '', 'indices': 'NIFTY MICROCAP 250'}, {'keys': ['NIFTY AUTO'], 'derivatives': '', 'indices': 'NIFTY AUTO'}, {'keys': ['NIFTY ENERGY'], 'derivatives': '', 'indices': 'NIFTY ENERGY'}, {'keys': ['NIFTY FINANCIAL SERVICES 25/50'], 'derivatives': '', 'indices': 'NIFTY FINANCIAL SERVICES 25/50'}, {'keys': ['NIFTY FMCG'], 'derivatives': '', 'indices': 'NIFTY FMCG'}, {'keys': ['NIFTY IT'], 'derivatives': '', 'indices': 'NIFTY IT'}, {'keys': ['NIFTY MEDIA'], 'derivatives': '', 'indices': 'NIFTY MEDIA'}, {'keys': ['NIFTY METAL'], 'derivatives': '', 'indices': 'NIFTY METAL'}, {'keys': ['NIFTY PHARMA'], 'derivatives': '', 'indices': 'NIFTY PHARMA'}, {'keys': ['NIFTY PSU BANK'], 'derivatives': '', 'indices': 'NIFTY PSU BANK'}, {'keys': ['NIFTY REALTY'], 'derivatives': '', 'indices': 'NIFTY REALTY'}, {'keys': ['NIFTY PRIVATE BANK'], 'derivatives': '', 'indices': 'NIFTY PRIVATE BANK'}, {'keys': ['NIFTY HEALTHCARE INDEX'], 'derivatives': '', 'indices': 'NIFTY HEALTHCARE INDEX'}, {'keys': ['NIFTY CONSUMER DURABLES'], 'derivatives': '', 'indices': 'NIFTY CONSUMER DURABLES'}, {'keys': ['NIFTY OIL &amp; GAS'], 'derivatives': '', 'indices': 'NIFTY OIL &amp; GAS'}, {'keys': ['NIFTY DIVIDEND OPPORTUNITIES 50'], 'derivatives': '', 'indices': 'NIFTY DIVIDEND OPPORTUNITIES 50'}, {'keys': ['NIFTY50 VALUE 20'], 'derivatives': '', 'indices': 'NIFTY50 VALUE 20'}, {'keys': ['NIFTY100 QUALITY 30'], 'derivatives': '', 'indices': 'NIFTY100 QUALITY 30'}, {'keys': ['NIFTY50 EQUAL WEIGHT'], 'derivatives': '', 'indices': 'NIFTY50 EQUAL WEIGHT'}, {'keys': ['NIFTY100 EQUAL WEIGHT'], 'derivatives': '', 'indices': 'NIFTY100 EQUAL WEIGHT'}, {'keys': ['NIFTY100 LOW VOLATILITY 30'], 'derivatives': '', 'indices': 'NIFTY100 LOW VOLATILITY 30'}, {'keys': ['NIFTY ALPHA 50'], 'derivatives': '', 'indices': 'NIFTY ALPHA 50'}, {'keys': ['NIFTY200 QUALITY 30'], 'derivatives': '', 'indices': 'NIFTY200 QUALITY 30'}, {'keys': ['NIFTY ALPHA LOW-VOLATILITY 30'], 'derivatives': '', 'indices': 'NIFTY ALPHA LOW-VOLATILITY 30'}, {'keys': ['NIFTY200 MOMENTUM 30'], 'derivatives': '', 'indices': 'NIFTY200 MOMENTUM 30'}, {'keys': ['NIFTY MIDCAP150 QUALITY 50'], 'derivatives': '', 'indices': 'NIFTY MIDCAP150 QUALITY 50'}, {'keys': ['NIFTY COMMODITIES'], 'derivatives': '', 'indices': 'NIFTY COMMODITIES'}, {'keys': ['NIFTY INDIA CONSUMPTION'], 'derivatives': '', 'indices': 'NIFTY INDIA CONSUMPTION'}, {'keys': ['NIFTY CPSE'], 'derivatives': '', 'indices': 'NIFTY CPSE'}, {'keys': ['NIFTY INFRASTRUCTURE'], 'derivatives': '', 'indices': 'NIFTY INFRASTRUCTURE'}, {'keys': ['NIFTY MNC'], 'derivatives': '', 'indices': 'NIFTY MNC'}, {'keys': ['NIFTY GROWTH SECTORS 15'], 'derivatives': '', 'indices': 'NIFTY GROWTH SECTORS 15'}, {'keys': ['NIFTY PSE'], 'derivatives': '', 'indices': 'NIFTY PSE'}, {'keys': ['NIFTY SERVICES SECTOR'], 'derivatives': '', 'indices': 'NIFTY SERVICES SECTOR'}, {'keys': ['NIFTY100 LIQUID 15'], 'derivatives': '', 'indices': 'NIFTY100 LIQUID 15'}, {'keys': ['NIFTY MIDCAP LIQUID 15'], 'derivatives': '', 'indices': 'NIFTY MIDCAP LIQUID 15'}, {'keys': ['NIFTY INDIA DIGITAL'], 'derivatives': '', 'indices': 'NIFTY INDIA DIGITAL'}, {'keys': ['NIFTY100 ESG'], 'derivatives': '', 'indices': 'NIFTY100 ESG'}, {'keys': ['NIFTY INDIA MANUFACTURING'], 'derivatives': '', 'indices': 'NIFTY INDIA MANUFACTURING'}]"}, {"fullname": "nsedt.utils", "modulename": "nsedt.utils", "kind": "module", "doc": "

utils for nsedt

\n"}, {"fullname": "nsedt.utils.get_headers", "modulename": "nsedt.utils", "qualname": "get_headers", "kind": "function", "doc": "

Args:\n ---

\n\n

Returns:

\n\n
Json: json containing nse header\n
\n", "signature": "():", "funcdef": "def"}, {"fullname": "nsedt.utils.get_cookies", "modulename": "nsedt.utils", "qualname": "get_cookies", "kind": "function", "doc": "

Args:\n ---

\n\n

Returns:

\n\n
Json: json containing nse cookies\n
\n", "signature": "():", "funcdef": "def"}, {"fullname": "nsedt.utils.fetch_url", "modulename": "nsedt.utils", "qualname": "fetch_url", "kind": "function", "doc": "

Args:

\n\n
url (str): URL to fetch\ncookies (str): NSE cookies\nkey (str, Optional):\n
\n\n

Returns:

\n\n
Pandas DataFrame: df containing url data\n
\n", "signature": "(url, cookies, key=None, response_type='panda_df'):", "funcdef": "def"}, {"fullname": "nsedt.utils.get_symbol", "modulename": "nsedt.utils", "qualname": "get_symbol", "kind": "function", "doc": "

_summary_

\n\n

Args:\n symbol (str): _description_\n get_key (str): _description_

\n\n

Returns:\n str: _description_

\n", "signature": "(symbol: str, get_key: str) -> str:", "funcdef": "def"}, {"fullname": "nsedt.utils.check_nd_convert", "modulename": "nsedt.utils", "qualname": "check_nd_convert", "kind": "function", "doc": "

The function check_nd_convert takes two date strings in the format \"%d-%m-%Y\" and converts them to\ndatetime objects if they are not already in that format.

\n\n
Parameters
\n\n
    \n
  • start_date: The start_date parameter is the starting date of a period, specified as a\nstring in the format \"%d-%m-%Y\"
  • \n
  • end_date: The end_date parameter is a string representing the end date in the format\n\"%d-%m-%Y\"
  • \n
\n\n
Returns
\n\n
\n

the start_date and end_date as datetime objects.

\n
\n", "signature": "(\tstart_date: str,\tend_date: str) -> <module 'datetime' from '/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/datetime.py'>:", "funcdef": "def"}, {"fullname": "nsedt.utils.data_format", "modulename": "nsedt.utils.data_format", "kind": "module", "doc": "

return data in specific format

\n"}, {"fullname": "nsedt.utils.data_format.price", "modulename": "nsedt.utils.data_format", "qualname": "price", "kind": "function", "doc": "

Args:\n result (Pandas DataFrame): result

\n\n

Returns:\n Pandas DataFrame: df containing data in specific format

\n", "signature": "(result):", "funcdef": "def"}, {"fullname": "nsedt.utils.data_format.indices", "modulename": "nsedt.utils.data_format", "qualname": "indices", "kind": "function", "doc": "

Args:\n data_json (json): data in json format\nReturns:\n Pandas DataFrame: df with indexCloseOnlineRecords and indexTurnoverRecords

\n", "signature": "(\tdata_json,\tcolumns_drop_list: list = None,\tcolumns_rename_map: map = None):", "funcdef": "def"}, {"fullname": "nsedt.utils.data_format.option_chain", "modulename": "nsedt.utils.data_format", "qualname": "option_chain", "kind": "function", "doc": "

_summary_

\n\n

Args:\n data_json (str): _description_\n response_type (str): _description_

\n\n

Returns:\n _type_: _description_

\n", "signature": "(data_json: str, response_type: str):", "funcdef": "def"}, {"fullname": "nsedt.utils.data_format.get_vix", "modulename": "nsedt.utils.data_format", "qualname": "get_vix", "kind": "function", "doc": "

Format Vix data\nArgs:\n data_json (object): data in json format.\n response_type (str, optional): response_type. Defaults to \"panda_df\".\n columns_drop_list (list, optional): custom columns drop list. Defaults to None.\nReturns:\n _type_: _description_

\n", "signature": "(\tdata_json: object,\tresponse_type: str = 'panda_df',\tcolumns_drop_list: list = None):", "funcdef": "def"}, {"fullname": "nsedt.utils.data_format.derivatives_futures", "modulename": "nsedt.utils.data_format", "qualname": "derivatives_futures", "kind": "function", "doc": "

Format futures data

\n\n

Args:\n data_json (object): data in json format.\n response_type (str, optional): response_type. Defaults to \"panda_df\".\n columns_drop_list (list, optional): custom columns drop list. Defaults to None.

\n\n

Returns:\n json: formate data in json\n or\n dataframe: formate data in panda df

\n", "signature": "(\tdata_json: str,\tresponse_type: str = 'panda_df',\tcolumns_drop_list=None):", "funcdef": "def"}]; + /** pdoc search index */const docs = [{"fullname": "nsedt", "modulename": "nsedt", "kind": "module", "doc": "

Main file

\n"}, {"fullname": "nsedt.derivatives", "modulename": "nsedt.derivatives", "kind": "module", "doc": "

get data for Equity

\n"}, {"fullname": "nsedt.derivatives.log", "modulename": "nsedt.derivatives", "qualname": "log", "kind": "variable", "doc": "

\n", "default_value": "<RootLogger root (INFO)>"}, {"fullname": "nsedt.derivatives.get_vix", "modulename": "nsedt.derivatives", "qualname": "get_vix", "kind": "function", "doc": "

Get Vix data

\n\n

Args:\n start_date (str): start date in \"%d-%m-%Y\" format\n end_date (str): end_date in \"%d-%m-%Y\" format\n response_type (str, optional): response_type. Defaults to \"panda_df\".\n columns_drop_list (list, optional): provide custom columns drop list. Defaults to None.

\n\n

Raises:\n exc: general Exception

\n\n

Returns:\n Pandas DataFrame: df containing option data\n or\n Json: json containing option data

\n", "signature": "(\tstart_date: str,\tend_date: str,\tresponse_type: str = 'panda_df',\tcolumns_drop_list: list = None):", "funcdef": "def"}, {"fullname": "nsedt.derivatives.futures", "modulename": "nsedt.derivatives.futures", "kind": "module", "doc": "

get data for Futures

\n"}, {"fullname": "nsedt.derivatives.futures.get_future_price", "modulename": "nsedt.derivatives.futures", "qualname": "get_future_price", "kind": "function", "doc": "

get future price of stock / indices\nArgs:\n symbol (str): _description_\n start_date (str): _description_\n end_date (str): _description_\n expiry_date (str, optional): _description_. Defaults to None.\n response_type (str, optional): _description_. Defaults to \"panda_df\".\n columns_drop_list (list, optional): _description_. Defaults to None.

\n\n

Returns:\n _type_: _description_

\n", "signature": "(\tsymbol: str,\tstart_date: str,\tend_date: str,\texpiry_date: str = None,\tresponse_type: str = 'panda_df',\tcolumns_drop_list: list = None):", "funcdef": "def"}, {"fullname": "nsedt.derivatives.futures.get_future_expdate", "modulename": "nsedt.derivatives.futures", "qualname": "get_future_expdate", "kind": "function", "doc": "

get expiry dates of futures

\n\n

Args:\n symbol (str): symbol name

\n\n

Returns:\n list: expiry dates

\n", "signature": "(symbol: str) -> list:", "funcdef": "def"}, {"fullname": "nsedt.derivatives.options", "modulename": "nsedt.derivatives.options", "kind": "module", "doc": "

get data for Options

\n"}, {"fullname": "nsedt.derivatives.options.log", "modulename": "nsedt.derivatives.options", "qualname": "log", "kind": "variable", "doc": "

\n", "default_value": "<RootLogger root (INFO)>"}, {"fullname": "nsedt.derivatives.options.get_option_chain", "modulename": "nsedt.derivatives.options", "qualname": "get_option_chain", "kind": "function", "doc": "

Get option data of stock and indices

\n\n

Args:\n symbol (str): symbol name\n strike_price (str, optional): strike price to apply filter on price. Defaults to None.\n expiry_date (str, optional): expiry date to apply filter on date. Defaults to None.\n response_type (str, optional): response_type panda_df or json . Defaults to \"panda_df\".

\n\n

Returns:\n Pandas DataFrame: df containing option data\nor\n Json: json containing option data

\n", "signature": "(\tsymbol: str,\tstrike_price: str = None,\texpiry_date: str = None,\tresponse_type='panda_df'):", "funcdef": "def"}, {"fullname": "nsedt.derivatives.options.get_option_chain_expdate", "modulename": "nsedt.derivatives.options", "qualname": "get_option_chain_expdate", "kind": "function", "doc": "

get option expiry date for stock and indices

\n\n

Args:\n symbol (str): symbol name

\n\n

Returns:\n list: expiry date in list(\"%d-%m-%Y\" format)

\n", "signature": "(symbol: str) -> list:", "funcdef": "def"}, {"fullname": "nsedt.equity", "modulename": "nsedt.equity", "kind": "module", "doc": "

get data for Equity

\n"}, {"fullname": "nsedt.equity.log", "modulename": "nsedt.equity", "qualname": "log", "kind": "variable", "doc": "

\n", "default_value": "<RootLogger root (INFO)>"}, {"fullname": "nsedt.equity.get_companyinfo", "modulename": "nsedt.equity", "qualname": "get_companyinfo", "kind": "function", "doc": "

_summary_

\n\n

Args:

\n\n
symbol (str): stock name\n\nresponse_type (str, Optional): define the response type panda_df | json. Default panda_df\n
\n\n

Returns:

\n\n
Pandas DataFrame: df containing company info\n
\n\n

or

\n\n
Json: json containing company info\n
\n", "signature": "(symbol: str, response_type: str = 'panda_df'):", "funcdef": "def"}, {"fullname": "nsedt.equity.get_marketstatus", "modulename": "nsedt.equity", "qualname": "get_marketstatus", "kind": "function", "doc": "

Args:

\n\n
response_type (str, Optional): define the response type panda_df | json. Default panda_df\n
\n\n

Returns:

\n\n
Pandas DataFrame: df containing market status\n\nJson : Json containing market status\n
\n", "signature": "(response_type: str = 'panda_df'):", "funcdef": "def"}, {"fullname": "nsedt.equity.get_price", "modulename": "nsedt.equity", "qualname": "get_price", "kind": "function", "doc": "

Create threads for different requests, parses data, combines them and returns dataframe

\n\n

Args:

\n\n
start_date (datetime.datetime): start date\n\nend_date (datetime.datetime): end date\n\ninput_type (str): Either 'stock' or 'index'\n\nsymbol (str, optional): stock symbol. Defaults to None. TODO: implement for index`\n
\n\n

Returns:

\n\n
Pandas DataFrame: df containing data for symbol of provided date range\n
\n", "signature": "(start_date, end_date, symbol=None, input_type='stock', series='EQ'):", "funcdef": "def"}, {"fullname": "nsedt.equity.get_corpinfo", "modulename": "nsedt.equity", "qualname": "get_corpinfo", "kind": "function", "doc": "

Create threads for different requests, parses data, combines them and returns dataframe

\n\n

Args:

\n\n
start_date (datetime.datetime): start date\n\nend_date (datetime.datetime): end date\n\nsymbol (str, optional): stock symbol. Defaults to None.\n
\n\n

Returns:

\n\n
Pandas DataFrame: df containing data for symbol of provided date range\n
\n\n

or

\n\n
Json: json containing data for symbol of provided date range\n
\n", "signature": "(start_date, end_date, symbol=None, response_type='panda_df'):", "funcdef": "def"}, {"fullname": "nsedt.equity.get_event", "modulename": "nsedt.equity", "qualname": "get_event", "kind": "function", "doc": "

Args:

\n\n
start_date (datetime.datetime,optional): start date\n\nend_date (datetime.datetime,optional): end date\n
\n\n

Returns:

\n\n
Pandas DataFrame: df containing event of provided date range\n
\n", "signature": "(start_date=None, end_date=None, index='equities'):", "funcdef": "def"}, {"fullname": "nsedt.equity.get_chartdata", "modulename": "nsedt.equity", "qualname": "get_chartdata", "kind": "function", "doc": "

Args:

\n\n
symbol (str): stock symbol.\n
\n\n

Returns:

\n\n
Pandas DataFrame: df containing chart data of provided date\n
\n", "signature": "(symbol, preopen=False, response_type='panda_df'):", "funcdef": "def"}, {"fullname": "nsedt.equity.get_symbols_list", "modulename": "nsedt.equity", "qualname": "get_symbols_list", "kind": "function", "doc": "

Args:

\n\n
No arguments needed\n
\n\n

Returns:

\n\n
List of stock or equity symbols\n
\n", "signature": "():", "funcdef": "def"}, {"fullname": "nsedt.equity.get_asm_list", "modulename": "nsedt.equity", "qualname": "get_asm_list", "kind": "function", "doc": "

Args:

\n\n
asm_type (str): ASM type, possible values: both,longterm,shortterm\n
\n\n

Returns:

\n\n
List of stocks under ASM\n
\n", "signature": "(asm_type='both') -> list:", "funcdef": "def"}, {"fullname": "nsedt.indices", "modulename": "nsedt.indices", "kind": "module", "doc": "

get data for indices

\n"}, {"fullname": "nsedt.indices.log", "modulename": "nsedt.indices", "qualname": "log", "kind": "variable", "doc": "

\n", "default_value": "<RootLogger root (INFO)>"}, {"fullname": "nsedt.indices.get_price", "modulename": "nsedt.indices", "qualname": "get_price", "kind": "function", "doc": "

Get price of index

\n\n

Args:

\n\n
start_date (datetime): start date\nend_date (datetime): end date\nsymbol (str): symbol name or index name\nresponse_type (str, optional):  Define return type: panda_df or json.\n                                Defaults to \"panda_df\".\ncolumns_drop_list (list,optional): define columns drop list, Defaults to None\ncolumns_rename_map (map, optional): define columns rename map, Defaults to None\n
\n\n

Raises:

\n\n
exc: general Exception\n
\n\n

Returns:

\n\n
    Pandas DataFrame: df containing company info\nor\n    Json: json containing company info\n
\n", "signature": "(\tstart_date: <module 'datetime' from '/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/datetime.py'>,\tend_date: <module 'datetime' from '/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/datetime.py'>,\tsymbol: str,\tresponse_type: str = 'panda_df',\tcolumns_drop_list: list = None,\tcolumns_rename_map: map = None):", "funcdef": "def"}, {"fullname": "nsedt.resources", "modulename": "nsedt.resources", "kind": "module", "doc": "

\n"}, {"fullname": "nsedt.resources.constants", "modulename": "nsedt.resources.constants", "kind": "module", "doc": "

Constants

\n"}, {"fullname": "nsedt.resources.constants.WINDOW_SIZE", "modulename": "nsedt.resources.constants", "qualname": "WINDOW_SIZE", "kind": "variable", "doc": "

\n", "default_value": "50"}, {"fullname": "nsedt.resources.constants.MAX_WORKERS", "modulename": "nsedt.resources.constants", "qualname": "MAX_WORKERS", "kind": "variable", "doc": "

\n", "default_value": "10"}, {"fullname": "nsedt.resources.constants.SYMBOL_MAP", "modulename": "nsedt.resources.constants", "qualname": "SYMBOL_MAP", "kind": "variable", "doc": "

\n", "default_value": "[{'keys': ['NIFTY 50', 'NIFTY50', 'NIFTY'], 'indices': 'NIFTY 50', 'derivatives': 'NIFTY'}, {'keys': ['NIFTY BANK', 'NIFTYBANK', 'BANKNIFTY'], 'derivatives': 'BANKNIFTY', 'indices': 'NIFTY BANK'}, {'keys': ['NIFTY FINANCIAL SERVICES', 'FINNIFTY', 'NIFTY FIN SERVICE'], 'derivatives': 'FINNIFTY', 'indices': 'NIFTY FINANCIAL SERVICES'}, {'keys': ['NIFTY NEXT 50'], 'derivatives': '', 'indices': 'NIFTY NEXT 50'}, {'keys': ['NIFTY MIDCAP 50'], 'derivatives': '', 'indices': 'NIFTY MIDCAP 50'}, {'keys': ['NIFTY MIDCAP 100'], 'derivatives': '', 'indices': 'NIFTY MIDCAP 100'}, {'keys': ['NIFTY MIDCAP 150'], 'derivatives': '', 'indices': 'NIFTY MIDCAP 150'}, {'keys': ['NIFTY SMALLCAP 50'], 'derivatives': '', 'indices': 'NIFTY SMALLCAP 50'}, {'keys': ['NIFTY SMALLCAP 100'], 'derivatives': '', 'indices': 'NIFTY SMALLCAP 100'}, {'keys': ['NIFTY SMALLCAP 250'], 'derivatives': '', 'indices': 'NIFTY SMALLCAP 250'}, {'keys': ['NIFTY MIDSMALLCAP 400'], 'derivatives': '', 'indices': 'NIFTY MIDSMALLCAP 400'}, {'keys': ['NIFTY 100'], 'derivatives': '', 'indices': 'NIFTY 100'}, {'keys': ['NIFTY 200'], 'derivatives': '', 'indices': 'NIFTY 200'}, {'keys': ['NIFTY500 MULTICAP 50:25:25'], 'derivatives': '', 'indices': 'NIFTY500 MULTICAP 50:25:25'}, {'keys': ['NIFTY LARGEMIDCAP 250'], 'derivatives': '', 'indices': 'NIFTY LARGEMIDCAP 250'}, {'keys': ['NIFTY MIDCAP SELECT'], 'derivatives': '', 'indices': 'NIFTY MIDCAP SELECT'}, {'keys': ['NIFTY TOTAL MARKET'], 'derivatives': '', 'indices': 'NIFTY TOTAL MARKET'}, {'keys': ['NIFTY MICROCAP 250'], 'derivatives': '', 'indices': 'NIFTY MICROCAP 250'}, {'keys': ['NIFTY AUTO'], 'derivatives': '', 'indices': 'NIFTY AUTO'}, {'keys': ['NIFTY ENERGY'], 'derivatives': '', 'indices': 'NIFTY ENERGY'}, {'keys': ['NIFTY FINANCIAL SERVICES 25/50'], 'derivatives': '', 'indices': 'NIFTY FINANCIAL SERVICES 25/50'}, {'keys': ['NIFTY FMCG'], 'derivatives': '', 'indices': 'NIFTY FMCG'}, {'keys': ['NIFTY IT'], 'derivatives': '', 'indices': 'NIFTY IT'}, {'keys': ['NIFTY MEDIA'], 'derivatives': '', 'indices': 'NIFTY MEDIA'}, {'keys': ['NIFTY METAL'], 'derivatives': '', 'indices': 'NIFTY METAL'}, {'keys': ['NIFTY PHARMA'], 'derivatives': '', 'indices': 'NIFTY PHARMA'}, {'keys': ['NIFTY PSU BANK'], 'derivatives': '', 'indices': 'NIFTY PSU BANK'}, {'keys': ['NIFTY REALTY'], 'derivatives': '', 'indices': 'NIFTY REALTY'}, {'keys': ['NIFTY PRIVATE BANK'], 'derivatives': '', 'indices': 'NIFTY PRIVATE BANK'}, {'keys': ['NIFTY HEALTHCARE INDEX'], 'derivatives': '', 'indices': 'NIFTY HEALTHCARE INDEX'}, {'keys': ['NIFTY CONSUMER DURABLES'], 'derivatives': '', 'indices': 'NIFTY CONSUMER DURABLES'}, {'keys': ['NIFTY OIL &amp; GAS'], 'derivatives': '', 'indices': 'NIFTY OIL &amp; GAS'}, {'keys': ['NIFTY DIVIDEND OPPORTUNITIES 50'], 'derivatives': '', 'indices': 'NIFTY DIVIDEND OPPORTUNITIES 50'}, {'keys': ['NIFTY50 VALUE 20'], 'derivatives': '', 'indices': 'NIFTY50 VALUE 20'}, {'keys': ['NIFTY100 QUALITY 30'], 'derivatives': '', 'indices': 'NIFTY100 QUALITY 30'}, {'keys': ['NIFTY50 EQUAL WEIGHT'], 'derivatives': '', 'indices': 'NIFTY50 EQUAL WEIGHT'}, {'keys': ['NIFTY100 EQUAL WEIGHT'], 'derivatives': '', 'indices': 'NIFTY100 EQUAL WEIGHT'}, {'keys': ['NIFTY100 LOW VOLATILITY 30'], 'derivatives': '', 'indices': 'NIFTY100 LOW VOLATILITY 30'}, {'keys': ['NIFTY ALPHA 50'], 'derivatives': '', 'indices': 'NIFTY ALPHA 50'}, {'keys': ['NIFTY200 QUALITY 30'], 'derivatives': '', 'indices': 'NIFTY200 QUALITY 30'}, {'keys': ['NIFTY ALPHA LOW-VOLATILITY 30'], 'derivatives': '', 'indices': 'NIFTY ALPHA LOW-VOLATILITY 30'}, {'keys': ['NIFTY200 MOMENTUM 30'], 'derivatives': '', 'indices': 'NIFTY200 MOMENTUM 30'}, {'keys': ['NIFTY MIDCAP150 QUALITY 50'], 'derivatives': '', 'indices': 'NIFTY MIDCAP150 QUALITY 50'}, {'keys': ['NIFTY COMMODITIES'], 'derivatives': '', 'indices': 'NIFTY COMMODITIES'}, {'keys': ['NIFTY INDIA CONSUMPTION'], 'derivatives': '', 'indices': 'NIFTY INDIA CONSUMPTION'}, {'keys': ['NIFTY CPSE'], 'derivatives': '', 'indices': 'NIFTY CPSE'}, {'keys': ['NIFTY INFRASTRUCTURE'], 'derivatives': '', 'indices': 'NIFTY INFRASTRUCTURE'}, {'keys': ['NIFTY MNC'], 'derivatives': '', 'indices': 'NIFTY MNC'}, {'keys': ['NIFTY GROWTH SECTORS 15'], 'derivatives': '', 'indices': 'NIFTY GROWTH SECTORS 15'}, {'keys': ['NIFTY PSE'], 'derivatives': '', 'indices': 'NIFTY PSE'}, {'keys': ['NIFTY SERVICES SECTOR'], 'derivatives': '', 'indices': 'NIFTY SERVICES SECTOR'}, {'keys': ['NIFTY100 LIQUID 15'], 'derivatives': '', 'indices': 'NIFTY100 LIQUID 15'}, {'keys': ['NIFTY MIDCAP LIQUID 15'], 'derivatives': '', 'indices': 'NIFTY MIDCAP LIQUID 15'}, {'keys': ['NIFTY INDIA DIGITAL'], 'derivatives': '', 'indices': 'NIFTY INDIA DIGITAL'}, {'keys': ['NIFTY100 ESG'], 'derivatives': '', 'indices': 'NIFTY100 ESG'}, {'keys': ['NIFTY INDIA MANUFACTURING'], 'derivatives': '', 'indices': 'NIFTY INDIA MANUFACTURING'}]"}, {"fullname": "nsedt.resources.constants.LOG_FORMAT", "modulename": "nsedt.resources.constants", "qualname": "LOG_FORMAT", "kind": "variable", "doc": "

\n", "default_value": "'{\\n "time": "%(asctime)s",\\n "lineno": "%(lineno)d",\\n "name": "[%(name)s]",\\n "loglevel": "%(levelname)s",\\n "process": "%(process)s",\\n "filename": "%(filename)s",\\n "funcName": "%(funcName)s",\\n "logmessage": "%(message)s",\\n}'"}, {"fullname": "nsedt.resources.constants.BASE_URL", "modulename": "nsedt.resources.constants", "qualname": "BASE_URL", "kind": "variable", "doc": "

\n", "default_value": "'https://www.nseindia.com/'"}, {"fullname": "nsedt.resources.constants.EQUITY_PRICE_HISTORY", "modulename": "nsedt.resources.constants", "qualname": "EQUITY_PRICE_HISTORY", "kind": "variable", "doc": "

\n", "default_value": "'api/historical/securityArchives?'"}, {"fullname": "nsedt.resources.constants.EQUITY_CORPINFO", "modulename": "nsedt.resources.constants", "qualname": "EQUITY_CORPINFO", "kind": "variable", "doc": "

\n", "default_value": "'api/corporates-corporateActions?'"}, {"fullname": "nsedt.resources.constants.MARKETSTATUS", "modulename": "nsedt.resources.constants", "qualname": "MARKETSTATUS", "kind": "variable", "doc": "

\n", "default_value": "'api/marketStatus'"}, {"fullname": "nsedt.resources.constants.EQUITY_EVENT", "modulename": "nsedt.resources.constants", "qualname": "EQUITY_EVENT", "kind": "variable", "doc": "

\n", "default_value": "'api/event-calendar?'"}, {"fullname": "nsedt.resources.constants.EQUITY_CHART", "modulename": "nsedt.resources.constants", "qualname": "EQUITY_CHART", "kind": "variable", "doc": "

\n", "default_value": "'api/chart-databyindex?'"}, {"fullname": "nsedt.resources.constants.EQUITY_INFO", "modulename": "nsedt.resources.constants", "qualname": "EQUITY_INFO", "kind": "variable", "doc": "

\n", "default_value": "'api/quote-equity?'"}, {"fullname": "nsedt.resources.constants.EQUITY_LIST", "modulename": "nsedt.resources.constants", "qualname": "EQUITY_LIST", "kind": "variable", "doc": "

\n", "default_value": "'api/market-data-pre-open?key=ALL'"}, {"fullname": "nsedt.resources.constants.ASM_LIST", "modulename": "nsedt.resources.constants", "qualname": "ASM_LIST", "kind": "variable", "doc": "

\n", "default_value": "'api/reportASM'"}, {"fullname": "nsedt.resources.constants.INDEX_PRICE_HISTORY", "modulename": "nsedt.resources.constants", "qualname": "INDEX_PRICE_HISTORY", "kind": "variable", "doc": "

\n", "default_value": "'api/historical/indicesHistory?'"}, {"fullname": "nsedt.resources.constants.OPTIONS_PRICE_EQUITIES", "modulename": "nsedt.resources.constants", "qualname": "OPTIONS_PRICE_EQUITIES", "kind": "variable", "doc": "

\n", "default_value": "'api/option-chain-equities?'"}, {"fullname": "nsedt.resources.constants.OPTIONS_PRICE_INDICES", "modulename": "nsedt.resources.constants", "qualname": "OPTIONS_PRICE_INDICES", "kind": "variable", "doc": "

\n", "default_value": "'api/option-chain-indices?'"}, {"fullname": "nsedt.resources.constants.INDICES", "modulename": "nsedt.resources.constants", "qualname": "INDICES", "kind": "variable", "doc": "

\n", "default_value": "['NIFTY', 'FINNIFTY', 'BANKNIFTY']"}, {"fullname": "nsedt.resources.constants.VIX_HISTORY", "modulename": "nsedt.resources.constants", "qualname": "VIX_HISTORY", "kind": "variable", "doc": "

\n", "default_value": "'api/historical/vixhistory?'"}, {"fullname": "nsedt.resources.constants.FUTURES_PRICE", "modulename": "nsedt.resources.constants", "qualname": "FUTURES_PRICE", "kind": "variable", "doc": "

\n", "default_value": "'api/historical/foCPV?'"}, {"fullname": "nsedt.resources.index_symbol", "modulename": "nsedt.resources.index_symbol", "kind": "module", "doc": "

NSE indices symbol map

\n"}, {"fullname": "nsedt.resources.index_symbol.symbol_map", "modulename": "nsedt.resources.index_symbol", "qualname": "symbol_map", "kind": "variable", "doc": "

\n", "default_value": "[{'keys': ['NIFTY 50', 'NIFTY50', 'NIFTY'], 'indices': 'NIFTY 50', 'derivatives': 'NIFTY'}, {'keys': ['NIFTY BANK', 'NIFTYBANK', 'BANKNIFTY'], 'derivatives': 'BANKNIFTY', 'indices': 'NIFTY BANK'}, {'keys': ['NIFTY FINANCIAL SERVICES', 'FINNIFTY', 'NIFTY FIN SERVICE'], 'derivatives': 'FINNIFTY', 'indices': 'NIFTY FINANCIAL SERVICES'}, {'keys': ['NIFTY NEXT 50'], 'derivatives': '', 'indices': 'NIFTY NEXT 50'}, {'keys': ['NIFTY MIDCAP 50'], 'derivatives': '', 'indices': 'NIFTY MIDCAP 50'}, {'keys': ['NIFTY MIDCAP 100'], 'derivatives': '', 'indices': 'NIFTY MIDCAP 100'}, {'keys': ['NIFTY MIDCAP 150'], 'derivatives': '', 'indices': 'NIFTY MIDCAP 150'}, {'keys': ['NIFTY SMALLCAP 50'], 'derivatives': '', 'indices': 'NIFTY SMALLCAP 50'}, {'keys': ['NIFTY SMALLCAP 100'], 'derivatives': '', 'indices': 'NIFTY SMALLCAP 100'}, {'keys': ['NIFTY SMALLCAP 250'], 'derivatives': '', 'indices': 'NIFTY SMALLCAP 250'}, {'keys': ['NIFTY MIDSMALLCAP 400'], 'derivatives': '', 'indices': 'NIFTY MIDSMALLCAP 400'}, {'keys': ['NIFTY 100'], 'derivatives': '', 'indices': 'NIFTY 100'}, {'keys': ['NIFTY 200'], 'derivatives': '', 'indices': 'NIFTY 200'}, {'keys': ['NIFTY500 MULTICAP 50:25:25'], 'derivatives': '', 'indices': 'NIFTY500 MULTICAP 50:25:25'}, {'keys': ['NIFTY LARGEMIDCAP 250'], 'derivatives': '', 'indices': 'NIFTY LARGEMIDCAP 250'}, {'keys': ['NIFTY MIDCAP SELECT'], 'derivatives': '', 'indices': 'NIFTY MIDCAP SELECT'}, {'keys': ['NIFTY TOTAL MARKET'], 'derivatives': '', 'indices': 'NIFTY TOTAL MARKET'}, {'keys': ['NIFTY MICROCAP 250'], 'derivatives': '', 'indices': 'NIFTY MICROCAP 250'}, {'keys': ['NIFTY AUTO'], 'derivatives': '', 'indices': 'NIFTY AUTO'}, {'keys': ['NIFTY ENERGY'], 'derivatives': '', 'indices': 'NIFTY ENERGY'}, {'keys': ['NIFTY FINANCIAL SERVICES 25/50'], 'derivatives': '', 'indices': 'NIFTY FINANCIAL SERVICES 25/50'}, {'keys': ['NIFTY FMCG'], 'derivatives': '', 'indices': 'NIFTY FMCG'}, {'keys': ['NIFTY IT'], 'derivatives': '', 'indices': 'NIFTY IT'}, {'keys': ['NIFTY MEDIA'], 'derivatives': '', 'indices': 'NIFTY MEDIA'}, {'keys': ['NIFTY METAL'], 'derivatives': '', 'indices': 'NIFTY METAL'}, {'keys': ['NIFTY PHARMA'], 'derivatives': '', 'indices': 'NIFTY PHARMA'}, {'keys': ['NIFTY PSU BANK'], 'derivatives': '', 'indices': 'NIFTY PSU BANK'}, {'keys': ['NIFTY REALTY'], 'derivatives': '', 'indices': 'NIFTY REALTY'}, {'keys': ['NIFTY PRIVATE BANK'], 'derivatives': '', 'indices': 'NIFTY PRIVATE BANK'}, {'keys': ['NIFTY HEALTHCARE INDEX'], 'derivatives': '', 'indices': 'NIFTY HEALTHCARE INDEX'}, {'keys': ['NIFTY CONSUMER DURABLES'], 'derivatives': '', 'indices': 'NIFTY CONSUMER DURABLES'}, {'keys': ['NIFTY OIL &amp; GAS'], 'derivatives': '', 'indices': 'NIFTY OIL &amp; GAS'}, {'keys': ['NIFTY DIVIDEND OPPORTUNITIES 50'], 'derivatives': '', 'indices': 'NIFTY DIVIDEND OPPORTUNITIES 50'}, {'keys': ['NIFTY50 VALUE 20'], 'derivatives': '', 'indices': 'NIFTY50 VALUE 20'}, {'keys': ['NIFTY100 QUALITY 30'], 'derivatives': '', 'indices': 'NIFTY100 QUALITY 30'}, {'keys': ['NIFTY50 EQUAL WEIGHT'], 'derivatives': '', 'indices': 'NIFTY50 EQUAL WEIGHT'}, {'keys': ['NIFTY100 EQUAL WEIGHT'], 'derivatives': '', 'indices': 'NIFTY100 EQUAL WEIGHT'}, {'keys': ['NIFTY100 LOW VOLATILITY 30'], 'derivatives': '', 'indices': 'NIFTY100 LOW VOLATILITY 30'}, {'keys': ['NIFTY ALPHA 50'], 'derivatives': '', 'indices': 'NIFTY ALPHA 50'}, {'keys': ['NIFTY200 QUALITY 30'], 'derivatives': '', 'indices': 'NIFTY200 QUALITY 30'}, {'keys': ['NIFTY ALPHA LOW-VOLATILITY 30'], 'derivatives': '', 'indices': 'NIFTY ALPHA LOW-VOLATILITY 30'}, {'keys': ['NIFTY200 MOMENTUM 30'], 'derivatives': '', 'indices': 'NIFTY200 MOMENTUM 30'}, {'keys': ['NIFTY MIDCAP150 QUALITY 50'], 'derivatives': '', 'indices': 'NIFTY MIDCAP150 QUALITY 50'}, {'keys': ['NIFTY COMMODITIES'], 'derivatives': '', 'indices': 'NIFTY COMMODITIES'}, {'keys': ['NIFTY INDIA CONSUMPTION'], 'derivatives': '', 'indices': 'NIFTY INDIA CONSUMPTION'}, {'keys': ['NIFTY CPSE'], 'derivatives': '', 'indices': 'NIFTY CPSE'}, {'keys': ['NIFTY INFRASTRUCTURE'], 'derivatives': '', 'indices': 'NIFTY INFRASTRUCTURE'}, {'keys': ['NIFTY MNC'], 'derivatives': '', 'indices': 'NIFTY MNC'}, {'keys': ['NIFTY GROWTH SECTORS 15'], 'derivatives': '', 'indices': 'NIFTY GROWTH SECTORS 15'}, {'keys': ['NIFTY PSE'], 'derivatives': '', 'indices': 'NIFTY PSE'}, {'keys': ['NIFTY SERVICES SECTOR'], 'derivatives': '', 'indices': 'NIFTY SERVICES SECTOR'}, {'keys': ['NIFTY100 LIQUID 15'], 'derivatives': '', 'indices': 'NIFTY100 LIQUID 15'}, {'keys': ['NIFTY MIDCAP LIQUID 15'], 'derivatives': '', 'indices': 'NIFTY MIDCAP LIQUID 15'}, {'keys': ['NIFTY INDIA DIGITAL'], 'derivatives': '', 'indices': 'NIFTY INDIA DIGITAL'}, {'keys': ['NIFTY100 ESG'], 'derivatives': '', 'indices': 'NIFTY100 ESG'}, {'keys': ['NIFTY INDIA MANUFACTURING'], 'derivatives': '', 'indices': 'NIFTY INDIA MANUFACTURING'}]"}, {"fullname": "nsedt.resources.tmp", "modulename": "nsedt.resources.tmp", "kind": "module", "doc": "

\n"}, {"fullname": "nsedt.resources.tmp.SYMBOL_MAP", "modulename": "nsedt.resources.tmp", "qualname": "SYMBOL_MAP", "kind": "variable", "doc": "

\n", "default_value": "[{'keys': ['NIFTY 50', 'NIFTY50', 'NIFTY'], 'indices': 'NIFTY 50', 'derivatives': 'NIFTY'}, {'keys': ['NIFTY BANK', 'NIFTYBANK', 'BANKNIFTY'], 'derivatives': 'BANKNIFTY', 'indices': 'NIFTY BANK'}, {'keys': ['NIFTY FINANCIAL SERVICES', 'FINNIFTY', 'NIFTY FIN SERVICE'], 'derivatives': 'FINNIFTY', 'indices': 'NIFTY FINANCIAL SERVICES'}, {'keys': ['NIFTY NEXT 50'], 'derivatives': '', 'indices': 'NIFTY NEXT 50'}, {'keys': ['NIFTY MIDCAP 50'], 'derivatives': '', 'indices': 'NIFTY MIDCAP 50'}, {'keys': ['NIFTY MIDCAP 100'], 'derivatives': '', 'indices': 'NIFTY MIDCAP 100'}, {'keys': ['NIFTY MIDCAP 150'], 'derivatives': '', 'indices': 'NIFTY MIDCAP 150'}, {'keys': ['NIFTY SMALLCAP 50'], 'derivatives': '', 'indices': 'NIFTY SMALLCAP 50'}, {'keys': ['NIFTY SMALLCAP 100'], 'derivatives': '', 'indices': 'NIFTY SMALLCAP 100'}, {'keys': ['NIFTY SMALLCAP 250'], 'derivatives': '', 'indices': 'NIFTY SMALLCAP 250'}, {'keys': ['NIFTY MIDSMALLCAP 400'], 'derivatives': '', 'indices': 'NIFTY MIDSMALLCAP 400'}, {'keys': ['NIFTY 100'], 'derivatives': '', 'indices': 'NIFTY 100'}, {'keys': ['NIFTY 200'], 'derivatives': '', 'indices': 'NIFTY 200'}, {'keys': ['NIFTY500 MULTICAP 50:25:25'], 'derivatives': '', 'indices': 'NIFTY500 MULTICAP 50:25:25'}, {'keys': ['NIFTY LARGEMIDCAP 250'], 'derivatives': '', 'indices': 'NIFTY LARGEMIDCAP 250'}, {'keys': ['NIFTY MIDCAP SELECT'], 'derivatives': '', 'indices': 'NIFTY MIDCAP SELECT'}, {'keys': ['NIFTY TOTAL MARKET'], 'derivatives': '', 'indices': 'NIFTY TOTAL MARKET'}, {'keys': ['NIFTY MICROCAP 250'], 'derivatives': '', 'indices': 'NIFTY MICROCAP 250'}, {'keys': ['NIFTY AUTO'], 'derivatives': '', 'indices': 'NIFTY AUTO'}, {'keys': ['NIFTY ENERGY'], 'derivatives': '', 'indices': 'NIFTY ENERGY'}, {'keys': ['NIFTY FINANCIAL SERVICES 25/50'], 'derivatives': '', 'indices': 'NIFTY FINANCIAL SERVICES 25/50'}, {'keys': ['NIFTY FMCG'], 'derivatives': '', 'indices': 'NIFTY FMCG'}, {'keys': ['NIFTY IT'], 'derivatives': '', 'indices': 'NIFTY IT'}, {'keys': ['NIFTY MEDIA'], 'derivatives': '', 'indices': 'NIFTY MEDIA'}, {'keys': ['NIFTY METAL'], 'derivatives': '', 'indices': 'NIFTY METAL'}, {'keys': ['NIFTY PHARMA'], 'derivatives': '', 'indices': 'NIFTY PHARMA'}, {'keys': ['NIFTY PSU BANK'], 'derivatives': '', 'indices': 'NIFTY PSU BANK'}, {'keys': ['NIFTY REALTY'], 'derivatives': '', 'indices': 'NIFTY REALTY'}, {'keys': ['NIFTY PRIVATE BANK'], 'derivatives': '', 'indices': 'NIFTY PRIVATE BANK'}, {'keys': ['NIFTY HEALTHCARE INDEX'], 'derivatives': '', 'indices': 'NIFTY HEALTHCARE INDEX'}, {'keys': ['NIFTY CONSUMER DURABLES'], 'derivatives': '', 'indices': 'NIFTY CONSUMER DURABLES'}, {'keys': ['NIFTY OIL &amp; GAS'], 'derivatives': '', 'indices': 'NIFTY OIL &amp; GAS'}, {'keys': ['NIFTY DIVIDEND OPPORTUNITIES 50'], 'derivatives': '', 'indices': 'NIFTY DIVIDEND OPPORTUNITIES 50'}, {'keys': ['NIFTY50 VALUE 20'], 'derivatives': '', 'indices': 'NIFTY50 VALUE 20'}, {'keys': ['NIFTY100 QUALITY 30'], 'derivatives': '', 'indices': 'NIFTY100 QUALITY 30'}, {'keys': ['NIFTY50 EQUAL WEIGHT'], 'derivatives': '', 'indices': 'NIFTY50 EQUAL WEIGHT'}, {'keys': ['NIFTY100 EQUAL WEIGHT'], 'derivatives': '', 'indices': 'NIFTY100 EQUAL WEIGHT'}, {'keys': ['NIFTY100 LOW VOLATILITY 30'], 'derivatives': '', 'indices': 'NIFTY100 LOW VOLATILITY 30'}, {'keys': ['NIFTY ALPHA 50'], 'derivatives': '', 'indices': 'NIFTY ALPHA 50'}, {'keys': ['NIFTY200 QUALITY 30'], 'derivatives': '', 'indices': 'NIFTY200 QUALITY 30'}, {'keys': ['NIFTY ALPHA LOW-VOLATILITY 30'], 'derivatives': '', 'indices': 'NIFTY ALPHA LOW-VOLATILITY 30'}, {'keys': ['NIFTY200 MOMENTUM 30'], 'derivatives': '', 'indices': 'NIFTY200 MOMENTUM 30'}, {'keys': ['NIFTY MIDCAP150 QUALITY 50'], 'derivatives': '', 'indices': 'NIFTY MIDCAP150 QUALITY 50'}, {'keys': ['NIFTY COMMODITIES'], 'derivatives': '', 'indices': 'NIFTY COMMODITIES'}, {'keys': ['NIFTY INDIA CONSUMPTION'], 'derivatives': '', 'indices': 'NIFTY INDIA CONSUMPTION'}, {'keys': ['NIFTY CPSE'], 'derivatives': '', 'indices': 'NIFTY CPSE'}, {'keys': ['NIFTY INFRASTRUCTURE'], 'derivatives': '', 'indices': 'NIFTY INFRASTRUCTURE'}, {'keys': ['NIFTY MNC'], 'derivatives': '', 'indices': 'NIFTY MNC'}, {'keys': ['NIFTY GROWTH SECTORS 15'], 'derivatives': '', 'indices': 'NIFTY GROWTH SECTORS 15'}, {'keys': ['NIFTY PSE'], 'derivatives': '', 'indices': 'NIFTY PSE'}, {'keys': ['NIFTY SERVICES SECTOR'], 'derivatives': '', 'indices': 'NIFTY SERVICES SECTOR'}, {'keys': ['NIFTY100 LIQUID 15'], 'derivatives': '', 'indices': 'NIFTY100 LIQUID 15'}, {'keys': ['NIFTY MIDCAP LIQUID 15'], 'derivatives': '', 'indices': 'NIFTY MIDCAP LIQUID 15'}, {'keys': ['NIFTY INDIA DIGITAL'], 'derivatives': '', 'indices': 'NIFTY INDIA DIGITAL'}, {'keys': ['NIFTY100 ESG'], 'derivatives': '', 'indices': 'NIFTY100 ESG'}, {'keys': ['NIFTY INDIA MANUFACTURING'], 'derivatives': '', 'indices': 'NIFTY INDIA MANUFACTURING'}]"}, {"fullname": "nsedt.utils", "modulename": "nsedt.utils", "kind": "module", "doc": "

utils for nsedt

\n"}, {"fullname": "nsedt.utils.get_headers", "modulename": "nsedt.utils", "qualname": "get_headers", "kind": "function", "doc": "

Args:\n ---

\n\n

Returns:

\n\n
Json: json containing nse header\n
\n", "signature": "():", "funcdef": "def"}, {"fullname": "nsedt.utils.get_cookies", "modulename": "nsedt.utils", "qualname": "get_cookies", "kind": "function", "doc": "

Args:\n ---

\n\n

Returns:

\n\n
Json: json containing nse cookies\n
\n", "signature": "():", "funcdef": "def"}, {"fullname": "nsedt.utils.fetch_url", "modulename": "nsedt.utils", "qualname": "fetch_url", "kind": "function", "doc": "

Args:

\n\n
url (str): URL to fetch\ncookies (str): NSE cookies\nkey (str, Optional):\n
\n\n

Returns:

\n\n
Pandas DataFrame: df containing url data\n
\n", "signature": "(url, cookies, key=None, response_type='panda_df'):", "funcdef": "def"}, {"fullname": "nsedt.utils.get_symbol", "modulename": "nsedt.utils", "qualname": "get_symbol", "kind": "function", "doc": "

_summary_

\n\n

Args:\n symbol (str): _description_\n get_key (str): _description_

\n\n

Returns:\n str: _description_

\n", "signature": "(symbol: str, get_key: str) -> str:", "funcdef": "def"}, {"fullname": "nsedt.utils.check_nd_convert", "modulename": "nsedt.utils", "qualname": "check_nd_convert", "kind": "function", "doc": "

The function check_nd_convert takes two date strings in the format \"%d-%m-%Y\" and converts them to\ndatetime objects if they are not already in that format.

\n\n
Parameters
\n\n
    \n
  • start_date: The start_date parameter is the starting date of a period, specified as a\nstring in the format \"%d-%m-%Y\"
  • \n
  • end_date: The end_date parameter is a string representing the end date in the format\n\"%d-%m-%Y\"
  • \n
\n\n
Returns
\n\n
\n

the start_date and end_date as datetime objects.

\n
\n", "signature": "(\tstart_date: str,\tend_date: str) -> <module 'datetime' from '/opt/homebrew/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/datetime.py'>:", "funcdef": "def"}, {"fullname": "nsedt.utils.data_format", "modulename": "nsedt.utils.data_format", "kind": "module", "doc": "

return data in specific format

\n"}, {"fullname": "nsedt.utils.data_format.price", "modulename": "nsedt.utils.data_format", "qualname": "price", "kind": "function", "doc": "

Args:\n result (Pandas DataFrame): result

\n\n

Returns:\n Pandas DataFrame: df containing data in specific format

\n", "signature": "(result):", "funcdef": "def"}, {"fullname": "nsedt.utils.data_format.indices", "modulename": "nsedt.utils.data_format", "qualname": "indices", "kind": "function", "doc": "

Args:\n data_json (json): data in json format\nReturns:\n Pandas DataFrame: df with indexCloseOnlineRecords and indexTurnoverRecords

\n", "signature": "(\tdata_json,\tcolumns_drop_list: list = None,\tcolumns_rename_map: map = None):", "funcdef": "def"}, {"fullname": "nsedt.utils.data_format.option_chain", "modulename": "nsedt.utils.data_format", "qualname": "option_chain", "kind": "function", "doc": "

_summary_

\n\n

Args:\n data_json (str): _description_\n response_type (str): _description_

\n\n

Returns:\n _type_: _description_

\n", "signature": "(data_json: str, response_type: str):", "funcdef": "def"}, {"fullname": "nsedt.utils.data_format.get_vix", "modulename": "nsedt.utils.data_format", "qualname": "get_vix", "kind": "function", "doc": "

Format Vix data\nArgs:\n data_json (object): data in json format.\n response_type (str, optional): response_type. Defaults to \"panda_df\".\n columns_drop_list (list, optional): custom columns drop list. Defaults to None.\nReturns:\n _type_: _description_

\n", "signature": "(\tdata_json: object,\tresponse_type: str = 'panda_df',\tcolumns_drop_list: list = None):", "funcdef": "def"}, {"fullname": "nsedt.utils.data_format.derivatives_futures", "modulename": "nsedt.utils.data_format", "qualname": "derivatives_futures", "kind": "function", "doc": "

Format futures data

\n\n

Args:\n data_json (object): data in json format.\n response_type (str, optional): response_type. Defaults to \"panda_df\".\n columns_drop_list (list, optional): custom columns drop list. Defaults to None.

\n\n

Returns:\n json: formate data in json\n or\n dataframe: formate data in panda df

\n", "signature": "(\tdata_json: str,\tresponse_type: str = 'panda_df',\tcolumns_drop_list=None):", "funcdef": "def"}]; // mirrored in build-search-index.js (part 1) // Also split on html tags. this is a cheap heuristic, but good enough. diff --git a/docs/index.html b/docs/index.html index f9272df..a3fae2e 100644 --- a/docs/index.html +++ b/docs/index.html @@ -6,6 +6,15 @@ + +

@@ -17,4 +26,4 @@

- + \ No newline at end of file