Makings adjustments for splits and bonus not working
cotton1234 opened this issue · 2 comments
cotton1234 commented
Hello,
Makings adjustments for splits and bonus is not working.
Example 360one.csv. The stock was adjusted on 2nd march 2023 but the same was not synced by the program.
Downloading Files
Starting Data Sync
EOD sync complete
Delivery Data updated
Delivery sync complete
Index sync complete.
Makings adjustments for splits and bonus
Cleaning up files
0 files deleted
02 Mar 2023: Done
Thanks
Saurabh
cotton1234 commented
Hello,
Issue seems to be around nse_actions.json.
Removing the json file and then running the init.py seems to get the latest file but if you are syncing it for data for last 10 days the same will not work.
Thanks
Saurabh
cotton1234 commented
I have added the following in the init.py which has fixed the issue by downloading the nse action file every time for a particular day.
# Validate NSE actions file
os.remove('nse_actions.json')
defs.validateNseActionsFile()
Thanks
Saurabh