Kotak-Neo / kotak-neo-api

96 stars 80 forks source link

not able to get the SEXSEX and BANKEX data from nse_fo segment dataset #159

Closed Sunil2k1S closed 2 months ago

Sunil2k1S commented 2 months ago

Hi,

Please add the SEXSEX and BANKEX data in below dataset which we are generating on daily basis . https://lapi.kotaksecurities.com/wso2-scripmaster/v1/prod/2024-04-19/transformed/nse_fo.csv

image

As we can only see 'NIFTY','BANKNIFTY','FINNIFTY','MIDCPNIFTY' THESE 4 INDEX but not SEXSEX and BANKEX , can you please show how to get them as well ?

Thanks

crypt0inf0 commented 2 months ago

Script master has separate .csv url for different segments,

import subprocess

# Get Scrip Master CSV file
scripMaster  = c.scrip_master()
bse_cm = scripMaster['filesPaths'][0]
cde_fo = scripMaster['filesPaths'][1]
mcx_fo = scripMaster['filesPaths'][2]
nse_cm = scripMaster['filesPaths'][3]
nse_fo = scripMaster['filesPaths'][4]
bse_fo = scripMaster['filesPaths'][5]

# Specify the file name you want to save as
file_name = 'bse_cm.csv'

# Using curl to download the file
subprocess.run(['curl', '-o', file_name, bse_cm])
Sunil2k1S commented 2 months ago

tHANKS