Skip to content

akshayraje/get-nse-bhavcopy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Get NSE Bhavcopy

This is a simple PHP script that can be used to get end of day bhavcopy CSV file from nseindia.com and dump it in MySQL. You can use this to download the end of day bhavcopy for current date of for a specific date in past. This can be handy for using as a crontask to fetch the daily data. It is designed to provide detailed feedback when used via browser as well as via commandline.

Usage

Via browser

Current date: http://example.com/path/to/file/get-nse-bhavcopy.php

Specific date: http://example.com/path/to/file/get-nse-bhavcopy.php?date=06-Sep-2016

Via commandline

Current date: php path/to/file/get-nse-bhavcopy.php

Specific date: php path/to/file/get-nse-bhavcopy.php date=06-Sep-2016

Installation

  1. Set-up your database and add the required table using create-table.sql
  2. Edit the first few lines of get-nse-bhavcopy.php to add your database details (check instructions in comments)

About

Get NSE Bhavcopy data and dump in MySQL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages