Hey folks, As I use this function many times. I make a nifty function out of it. Try this -
from nsepython import *
print(fnolist())
The Output will show -
['BANKNIFTY', 'NIFTY', 'NIFTYIT', 'ADANIENT', 'ADANIPOWER', 'AMARAJABAT', 'ACC', 'PVR', 'R…
No No, I meant NSE blocks scrapping to their server sometimes. (Happens randomly; I am not talking about IP Block which they do if you fetch within 3 minutes multiple time..)
I tried to tweak with the headers value in the request module. But all in…
On BeautifulSoup, It is a very messy process time enhancer. I literally skip it at every possible way possible. Most work anyways get done because Pandas have table selector frame and String Strips.
Here is what I use on that -
import requests
impo…
See I already wrote
I used to scarp this link twice a month https://www.nseindia.com/content/fo/fo_underlyinglist.htm but NSE has made some changes
The problem is
res=requests.get('https://www.nseindia.com/content/fo/fo_underlyinglist.htm', header…
However, You will be needing a VPS because of cron job.
Its like
y = last_buying_point
z = quantity_i_already_have
check LTP if less than y:
buy the stock in z quantity
I have solved it using -
Read all open orders.
Cancel all of them. (Target the BO,CO,OCO exceptions here).
Then,
Read all the current open positions.
Shoot reverse positions.
I call it powerkill lol. Its apt as I mostly use in BankNIFTY.