-
Notifications
You must be signed in to change notification settings - Fork 26
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
Getting the Intraday data and the historical data together for Talib Library #39
Comments
Documentation needs an update, please use below code to get the historical candles. nifty_bank_nse_index = sas.get_instrument_by_symbol('NSE', 'Nifty Bank')
# print(nifty_bank_nse_index)
print(sas.history(nifty_bank_nse_index, datetime(2022, 2, 2, 9, 15, 0), datetime.now(), interval=30, is_index=True)) output
Will keep this issue open till documentation is fixed |
Does this include the Historical data with the Intraday data in it ? |
Try it yourself. Be clear on one thing. Historical Data and Intraday data is one and same thing. WebSocket data is different. |
fetching the data for this
from datetime import datetime
nifty_bank_nse_index = sas.get_instrument_by_symbol('NSE', 'Nifty Bank')
print(sas.get_intraday_candles(nifty_bank_nse_index.exchange, nifty_bank_nse_index.symbol, datetime(2020, 10, 19), datetime.now(), interval=10))
is giving error of number of arguments here ! i guesss there is an issue !
getting the historical as well as intraday in this code :
get_intraday_candles() takes from 3 to 4 positional arguments but 6 were given
get_intraday_candles() got multiple values for argument 'interval'
The text was updated successfully, but these errors were encountered: