Open ShrinivasIyer opened 1 year ago
from nselib import derivatives data = derivatives.price_volume_and_deliverable_position_data(symbol='BANKNIFTY', instrument='FUTIDX', period='1M')
Cell In[44], line 1 data = derivatives.price_volume_and_deliverable_position_data(symbol='BANKNIFTY', instrument='FUTIDX', period='1M')
AttributeError: module 'nselib.derivatives' has no attribute 'price_volume_and_deliverable_position_data'
This error means that derivative does not have the function price_volume_and_deliverable_position_data which is true.
That function is under capital_market. ~~
from nselib import capital_market
data = capital_market.price_volume_and_deliverable_position_data(symbol='BANKNIFTY', instrument='FUTIDX', period='1M')
This should work. (Pls check for any spelling mistakes.) ~~
Thanks I ran this -
from nselib import capital_market
data = capital_market.price_volume_and_deliverable_position_data(symbol='BANKNIFTY', instrument='FUTIDX', period='1M')
Traceback (most recent call last):
Cell In[125], line 2 data = capital_market.price_volume_and_deliverable_position_data(symbol='BANKNIFTY', instrument='FUTIDX', period='1M')
TypeError: price_volume_and_deliverable_position_data() got an unexpected keyword argument 'instrument'
Thanks I ran this -
from nselib import capital_market data = capital_market.price_volume_and_deliverable_position_data(symbol='BANKNIFTY', instrument='FUTIDX', period='1M')
Traceback (most recent call last):
Cell In[125], line 2 data = capital_market.price_volume_and_deliverable_position_data(symbol='BANKNIFTY', instrument='FUTIDX', period='1M')
TypeError: price_volume_and_deliverable_position_data() got an unexpected keyword argument 'instrument'
Ahhh just realised my code is wrong too. What are u trying to do in ur code? Are you trying to get futures?
I am trying to get historical price of index BANKNIFTY and later of other indices like NIFTY as well. They are listed indices in NSE of India.
I am trying to get historical price of index BANKNIFTY and later of other indices like NIFTY as well. They are listed indices in NSE of India.
data = capital_market.price_volume_and_deliverable_position_data(symbol="FOCUS", from_date='06-06-2023', to_date='06-07-2023')
Here FOCUS is the company ticker. This worked when I ran it.
I am trying to get historical price of index BANKNIFTY and later of other indices like NIFTY as well. They are listed indices in NSE of India.
I am trying to get historical price of index BANKNIFTY and later of other indices like NIFTY as well. They are listed indices in NSE of India.
data = capital_market.price_volume_and_deliverable_position_data(symbol="FOCUS", from_date='06-06-2023', to_date='06-07-2023')
Here FOCUS is the company ticker. This worked when I ran it.
Did this work for you?
"FOCUS" is a stock not an index. This is not related to my requirement. For getting data of stocks there are at least 10 different reliable sources. I am looking SPECIFICALLY for indices like NIFTY, BANKNIFTY, FINNIFTY etc
Regards,
Shrinivas Iyer
linkedin.com/in/shrinivasiyer http://linkedin.com/in/shrinivasiyer
+91-9515673173 | +60 1151028559
On Tue, 1 Aug 2023 at 11:05, Anirudha Anekal @.***> wrote:
I am trying to get historical price of index BANKNIFTY and later of other indices like NIFTY as well. They are listed indices in NSE of India.
I am trying to get historical price of index BANKNIFTY and later of other indices like NIFTY as well. They are listed indices in NSE of India.
data = capital_market.price_volume_and_deliverable_position_data(symbol="FOCUS", from_date='06-06-2023', to_date='06-07-2023')
Here FOCUS is the company ticker. This worked when I ran it.
Did this work for you?
— Reply to this email directly, view it on GitHub https://github.com/RuchiTanmay/nselib/issues/11#issuecomment-1659596938, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHJGJXIX6VHYVWKKUBSLBD3XTCIR5ANCNFSM6AAAAAA2UIUOBE . You are receiving this because you authored the thread.Message ID: @.***>
"FOCUS" is a stock not an index. This is not related to my requirement. For getting data of stocks there are at least 10 different reliable sources. I am looking SPECIFICALLY for indices like NIFTY, BANKNIFTY, FINNIFTY etc
Aahhhh ok
Check this
from nselib import capital_market
data = capital_market.index_data(index="NIFTY 50", from_date='06-06-2023', to_date='06-07-2023')
'NIFTY 50'/'NIFTY BANK' are the 2 mentioned in the code but I would encourage you to check the nse website to see what else is available.
from nselib import capital_market data = capital_market.index_data(index="NIFTY 50", from_date='06-06-2023', to_date='06-07-2023')
Finally something that worked. Thanks so much everyone. Keep up the good work. Also if there is any error in the data I will inform you. I had been downloading NSE data from smartapi(Angelone). But the quality of their data is pathetic. Hope your data is in sync with the NSE bhavcopy.csv
Regards,
Shrinivas Iyer
linkedin.com/in/shrinivasiyer http://linkedin.com/in/shrinivasiyer
+91-9515673173 | +60 1151028559
On Tue, 1 Aug 2023 at 17:49, Anirudha Anekal @.***> wrote:
"FOCUS" is a stock not an index. This is not related to my requirement. For getting data of stocks there are at least 10 different reliable sources. I am looking SPECIFICALLY for indices like NIFTY, BANKNIFTY, FINNIFTY etc
Regards,
Shrinivas Iyer
linkedin.com/in/shrinivasiyer http://linkedin.com/in/shrinivasiyer http://linkedin.com/in/shrinivasiyer http://linkedin.com/in/shrinivasiyer
+91-9515673173 | +60 1151028559
On Tue, 1 Aug 2023 at 11:05, Anirudha Anekal @.***> wrote:
I am trying to get historical price of index BANKNIFTY and later of other indices like NIFTY as well. They are listed indices in NSE of India.
I am trying to get historical price of index BANKNIFTY and later of other indices like NIFTY as well. They are listed indices in NSE of India.
data = capital_market.price_volume_and_deliverable_position_data(symbol="FOCUS", from_date='06-06-2023', to_date='06-07-2023')
Here FOCUS is the company ticker. This worked when I ran it.
Did this work for you?
— Reply to this email directly, view it on GitHub
11 (comment)
https://github.com/RuchiTanmay/nselib/issues/11#issuecomment-1659596938, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHJGJXIX6VHYVWKKUBSLBD3XTCIR5ANCNFSM6AAAAAA2UIUOBE . You are receiving this because you authored the thread.Message ID: @.***>
Aahhhh ok
Check this
from nselib import capital_marketdata = capital_market.index_data(index="NIFTY 50", from_date='06-06-2023', to_date='06-07-2023')
'NIFTY 50'/'NIFTY BANK' are the 2 mentioned in the code but I would encourage you to check the nse website to see what else is available.
— Reply to this email directly, view it on GitHub https://github.com/RuchiTanmay/nselib/issues/11#issuecomment-1660200508, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHJGJXNJTY6A4WJ5T4HU7ILXTDX4DANCNFSM6AAAAAA2UIUOBE . You are receiving this because you authored the thread.Message ID: @.***>
Finally something that worked. Thanks so much everyone. Keep up the good work. Also if there is any error in the data I will inform you. I had been downloading NSE data from smartapi(Angelone). But the quality of their data is pathetic. Hope your data is in sync with the NSE bhavcopy.csv
No problem, good luck.
Hi Everyone, I have checked data for few stocks and indices. They look fine. Is it also possible to get data of MCX commodities like Copper, SilverM, Silvermicro, crudeoil etc.
Regards,
Shrinivas Iyer
linkedin.com/in/shrinivasiyer http://linkedin.com/in/shrinivasiyer
+91-9515673173 | +60 1151028559
On Fri, 4 Aug 2023 at 09:59, Anirudha Anekal @.***> wrote:
Finally something that worked. Thanks so much everyone. Keep up the good work. Also if there is any error in the data I will inform you. I had been downloading NSE data from smartapi(Angelone). But the quality of their data is pathetic. Hope your data is in sync with the NSE bhavcopy.csv
No problem, good luck.
— Reply to this email directly, view it on GitHub https://github.com/RuchiTanmay/nselib/issues/11#issuecomment-1664952188, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHJGJXO74OFLBJNZSE5NECLXTR3B3ANCNFSM6AAAAAA2UIUOBE . You are receiving this because you authored the thread.Message ID: @.***>
I dont see any code for it. It should be possible, but it hasn't been implimented in this library (to my knowledge). If I have some free time, I'll try to impliment it.
That would be great if you implement it. Thanks
On Wed, 16 Aug 2023 at 9:57 PM, Anirudha Anekal @.***> wrote:
I dont see any code for it. It should be possible, but it hasn't been implimented in this library (to my knowledge). If I have some free time, I'll try to impliment it.
— Reply to this email directly, view it on GitHub https://github.com/RuchiTanmay/nselib/issues/11#issuecomment-1680918996, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHJGJXPED6UN5QOWCLTRSATXVTYHNANCNFSM6AAAAAA2UIUOBE . You are receiving this because you authored the thread.Message ID: @.***>
Hi Guys, Please check mcxlib for commodity data from MCX side.
Regards, Tanmay
from nselib import derivatives data = derivatives.price_volume_and_deliverable_position_data(symbol='BANKNIFTY', instrument='FUTIDX', period='1M')
Cell In[44], line 1 data = derivatives.price_volume_and_deliverable_position_data(symbol='BANKNIFTY', instrument='FUTIDX', period='1M')
AttributeError: module 'nselib.derivatives' has no attribute 'price_volume_and_deliverable_position_data'