@chimntu Can you share your code here i will help you only connection code
Latest posts made by darshil611
-
RE: Receiving CORS error while creating new app
-
RE: How to find Stock-EQ Symbol's Token
instrument_url = 'https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json'
response = urllib.request.urlopen(instrument_url)
instrument_list = json.loads(response.read())def token_lookup(ticker, exchange='NSE'):
for i in instrument_list:
if i['symbol'] == ticker and i['exch_seg'] == exchange:# and i['symbol'].split('-')[-1] == 'EQ':
return i['token']token_lookup('NIFTY50')
def symbol_lookup(token, exchange='NSE'):
for i in instrument_list:
if i['token'] == token and i['exch_seg'] == exchange and i['symbol'].split('-')[-1] == 'EQ':
return i['name'] -
RE: how to get Nifty50 all equity tokens?
@tanmoydev
instrument_url = 'https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json'response = urllib.request.urlopen(instrument_url)
instrument_list = json.loads(response.read())instrument_list = [i for i in instrument_list if i['name'] == "NIFTY"]
-
RE: Best Practice for Squaring Off F&O Position with Pending SL Order via SmartAPI?
@konda can you write one code example for it
-
How to square off option order
anybody please write 1 example of square off order in option NIFTY14OCT2524200PE like this ticker