Re: AFL for importing NSE Bhavcopy
Thanks Murthy and Saji for your comments.
Murthy, I will try to make the following improvements:
1. Reading the source file name to arrive at destination file name.
2. Even better: Taking source and destination filename using date functions, so that the user can just save the .csv file in one particular location and he needn't even give the source path and source file name.
3. Try to make everything UI based. ie presenting a graphical interface, so that the user needn't even touch the AFL code.
4. I will look into make incorporations, so that even we can do bulk import, like say importing one week, one month, one year.etc.. I haven't even seen such bhav copy...will definitely look into it and will provide the new AFL here.
Finally the AFL should work this way: User need to just download bhav copy and run the AFL in one click. Lets see...
Thanks,
Praveen.
a great idea, my friend, praveen, to make AB to fetch its own data, dispensing with many convertor's available around. i feel it needs a bit of backward integration and incorporation of some user convenience.
1) the NSE cash market bhav copy is savable as a csv file in the format:
cm03NOV2006bhav.csv. you may use the same file naming format to the source file. this will avoid the trouble of renaming the file while saving to the AFL desired format.
the corresponding destination file name could be:
cm03NOV2006.csv, in a different directory to make identifiacation easy for the user. this will be more relevant when other segments also are added.
you may also give the option to user to retain/delete the source file after convertion.
2) the AFL may on it's own generate the file name from the current date & present it as a default, so that life becomes easier for the user.
3) similar AFL's may be generated for FnO segment also after release of the final version after considering all user opinions/requests, if any.
not withstanding above comments, it's firstly a NEW concept and deserves a pat. congratulations.
all the best.
murthymsr
1) the NSE cash market bhav copy is savable as a csv file in the format:
cm03NOV2006bhav.csv. you may use the same file naming format to the source file. this will avoid the trouble of renaming the file while saving to the AFL desired format.
the corresponding destination file name could be:
cm03NOV2006.csv, in a different directory to make identifiacation easy for the user. this will be more relevant when other segments also are added.
you may also give the option to user to retain/delete the source file after convertion.
2) the AFL may on it's own generate the file name from the current date & present it as a default, so that life becomes easier for the user.
3) similar AFL's may be generated for FnO segment also after release of the final version after considering all user opinions/requests, if any.
not withstanding above comments, it's firstly a NEW concept and deserves a pat. congratulations.
all the best.
murthymsr
Murthy, I will try to make the following improvements:
1. Reading the source file name to arrive at destination file name.
2. Even better: Taking source and destination filename using date functions, so that the user can just save the .csv file in one particular location and he needn't even give the source path and source file name.
3. Try to make everything UI based. ie presenting a graphical interface, so that the user needn't even touch the AFL code.
4. I will look into make incorporations, so that even we can do bulk import, like say importing one week, one month, one year.etc.. I haven't even seen such bhav copy...will definitely look into it and will provide the new AFL here.
Finally the AFL should work this way: User need to just download bhav copy and run the AFL in one click. Lets see...
Thanks,
Praveen.
Last edited: