-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,23 @@ | ||
Package: nser | ||
Type: Package | ||
Title: Bhavcopy and Live Market Data from National Stock Exchange (NSE) | ||
& Bombay Stock Exchange (BSE) India | ||
Version: 1.5.0 | ||
Date: 2023-08-15 | ||
Authors@R: person("Nandan", "Patil", email = "tryanother609@gmail.com", role = c("cre", "aut")) | ||
Description: Download Current & Historical Bhavcopy. Get Live Market data from NSE India of Equities and Derivatives (F&O) segment. Data source <https://www.nseindia.com/>. | ||
URL: https://github.com/nandp1/nser/ | ||
BugReports: https://github.com/nandp1/nser/issues | ||
Language: en-US | ||
License: GPL-3 | ||
Depends: R (>= 3.0) | ||
Encoding: UTF-8 | ||
LazyData: true | ||
Imports: utils, readr, magrittr, rvest, stringr, jsonlite, | ||
RSelenium, googleVis, dplyr, lubridate, purrr, curl, reticulate, xml2 | ||
Suggests: rmarkdown, testthat (>= 3.0.0), knitr, reshape2 | ||
RoxygenNote: 7.2.3 | ||
VignetteBuilder: knitr | ||
Packaged: 2023-03-09 16:13:00 UTC; ACER | ||
Author: Nandan Patil [cre, aut] | ||
Maintainer: Nandan Patil <tryanother609@gmail.com> | ||
Repository: CRAN | ||
|
||
Package: nser | ||
Type: Package | ||
Title: Bhavcopy and Live Market Data from National Stock Exchange (NSE) | ||
& Bombay Stock Exchange (BSE) India | ||
Version: 1.5.1 | ||
Date: 2024-02-03 | ||
Authors@R: person("Nandan", "Patil", email = "tryanother609@gmail.com", role = c("cre", "aut")) | ||
Description: Download Current & Historical Bhavcopy. Get Live Market data from NSE India of Equities and Derivatives (F&O) segment. Data source <https://www.nseindia.com/>. | ||
URL: https://github.com/nandp1/nser/ | ||
BugReports: https://github.com/nandp1/nser/issues | ||
Language: en-US | ||
License: GPL-3 | ||
Depends: R (>= 3.0) | ||
Encoding: UTF-8 | ||
LazyData: TRUE | ||
Imports: utils, readr, magrittr, rvest, stringr, | ||
googleVis, dplyr, lubridate, purrr, curl, reticulate, xml2 | ||
Suggests: rmarkdown, testthat (>= 3.0.0), knitr, reshape2 | ||
RoxygenNote: 7.3.1 | ||
VignetteBuilder: knitr | ||
Author: Nandan Patil [cre, aut] | ||
Maintainer: Nandan Patil <tryanother609@gmail.com> | ||
Repository: CRAN |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import requests | ||
|
||
headers = {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; ' | ||
'x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36'} | ||
|
||
main_url = "https://www.nseindia.com/" | ||
response = requests.get(main_url, headers=headers) | ||
#print(response.status_code) | ||
cookies = response.cookies | ||
|
||
new_url = 'https://www.nseindia.com/api/option-chain-indices?symbol=NIFTY' | ||
bank_nifty_oi_data = requests.get(new_url, headers=headers, cookies=cookies) | ||
dat = bank_nifty_oi_data.json() | ||
|
||
dat1 = dat['filtered'] | ||
dat1 = dat1['data'] | ||
|
||
### | ||
|
||
headers = {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; ' | ||
'x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36'} | ||
|
||
main_url = "https://www.nseindia.com/" | ||
response = requests.get(main_url, headers=headers) | ||
#print(response.status_code) | ||
cookies = response.cookies | ||
|
||
new_url1 = 'https://www.nseindia.com/api/option-chain-indices?symbol=BANKNIFTY' | ||
bank_nifty_oi_data_1 = requests.get(new_url1, headers=headers, cookies=cookies) | ||
dat2 = bank_nifty_oi_data_1.json() | ||
|
||
dat2 = dat2['filtered'] | ||
dat2 = dat2['data'] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,5 +20,6 @@ Get the latest FII (Foreign Institutional Investor) and DII (Domestic Institutio | |
|
||
``` | ||
library(nser) | ||
fdii() | ||
``` |