Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Historical candles and intraday candles do not work #31

Open
SMVSKN opened this issue Dec 9, 2021 · 2 comments
Open

Historical candles and intraday candles do not work #31

SMVSKN opened this issue Dec 9, 2021 · 2 comments

Comments

@SMVSKN
Copy link

SMVSKN commented Dec 9, 2021

This issue has been reported earlier (#4), where I have put the same comments as below. However, the issue was in the closed state, so I was not sure if it would be flagged to the owners. Sorry for the duplicate one here.


I came across the resolution to this issue which states that SAS Alpha Web platform does not support historical/intraday data. However, this does not seem to be true.

I think I have figured out what should be used for different indices and FNOs for the 'exchange' and 'symbol' names.

Eg:
For indices, we need to have the following in the 'PARAMS' in the functions that get the historical and intra-day data:

exchange: NSE_INDICES
symbol: 'Bank Nifty' / 'Nifty 50' / 'Nifty IT' / 'Nifty Auto' etc => Note that there are spaces and it is case sensitive

For FUT, we need to have the following in the 'PARAMS':
exchanbe: FNO
symbol: 'BANKNIFTY21DECFUT' / 'BANKNIFTY21DEC37800CE' / 'BANKNIFTY21D0937300PE' etc => Note that there are no spaces in between

Can this package be updated to handle the above?

@swatishravge
Copy link

you can download nifty index data by using following code

import yfinance as yf
import pandas as pd

dfdata = yf.download(tickers='^NSEI', period='2d', interval='1m')
dfdata.to_csv('D:\data.csv')

@navin1919
Copy link

were you guys able to get intraday (I am not looking for historical data) OHLC data?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants