Re: Free NSE BSE data downloader (EOD, Indices, Daily & Historical, Bhavcopy download
Hi Heman,
First of all thanx a lot for this utility which u have made, its excellent wit Ami. But m facing a problem while fetching data for NSE. I`ve select a date range from 01/01/2000 to 27/03/2009. It started fetching data but suddenly stopped with some error. It has created log file n its showing below mentioned error in log file:
03/27/2009 22:57:39 Message ********* Starting Getbhavcopy *********
03/27/2009 23:02:49 Message Settings saved.
03/27/2009 23:04:56 Message Downloading symbols for index NSENIFTY
03/27/2009 23:04:57 Message Downloading symbols for index NIFTYJUNIOR
03/27/2009 23:04:57 Message Downloading symbols for index BANKNIFTY
03/27/2009 23:04:58 Message Downloading symbols for index NSE100
03/27/2009 23:04:58 Message Downloading symbols for index NSEMIDCAP
03/27/2009 23:04:58 Message Downloading symbols for index NSEIT
03/27/2009 23:04:58 Message Downloading symbols for index NSE500
03/27/2009 23:04:58 Message ********* Downloading Data for 03-01-2000 *********
03/27/2009 23:04:58 Message Downloading NSE Equity Bhavcopy
03/27/2009 23:05:00 Message Downloading index data for NSENIFTY
03/27/2009 23:05:00 Message Downloading index data for NIFTYJUNIOR
03/27/2009 23:05:01 Message Downloading index data for BANKNIFTY
03/27/2009 23:05:02 Message Downloading index data for NSE100
03/27/2009 23:05:02 Error Error downloading index data for NSE100
03/27/2009 23:05:02 Error The remote server returned an error: (404) Not Found.
03/27/2009 23:05:02 Message Downloading index data for NSEMIDCAP
03/27/2009 23:05:03 Error Error downloading index data for NSEMIDCAP
03/27/2009 23:05:03 Error The remote server returned an error: (404) Not Found.
03/27/2009 23:05:04 Message Downloading index data for NSEIT
03/27/2009 23:05:04 Message Downloading index data for NSE500
03/27/2009 23:05:05 Message Downloading index data for NSEDEFTY
03/27/2009 23:05:07 Message Downloading Deliverable Quantity(Open Interest) data
03/27/2009 23:05:07 Error Error downloading Deliverable Quantity(Open Interest) csv file
http://www.nseindia.com/archives/equities/mto/MTO_03012000.DAT
03/27/2009 23:05:07 Error The remote server returned an error: (404) Not Found.
=====================================
At the same time pop up window appears with error message n below mentioned are the details of that error:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Getbhavcopy.NSEClasses.NSEProcessor.process(NSEIndicesSymbolsDownloader[] symbolsarray, NSEIndicesDataDownloader[] dataarray) in C:\Hemen\MyDocs\Projects\Getbhavcopy_v2\Getbhavcopy_v2\NSEClasses\NSEProcessor.cs:line 43
at Getbhavcopy.GlobalClasses.Iterator.Iterate() in C:\Hemen\MyDocs\Projects\Getbhavcopy_v2\Getbhavcopy_v2\GlobalClasses\Iterator.cs:line 102
at Getbhavcopy.Form1.btnDownload_Click(Object sender, EventArgs e) in C:\Hemen\MyDocs\Projects\Getbhavcopy_v2\Getbhavcopy_v2\Form1.cs:line 204
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
MC
Assembly Version: 3.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
License
Assembly Version: 1.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
Getbhavcopy
Assembly Version: 2.0.2.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Web
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
===================================================
I request you to kindly look into the issue. Thnx in adv.
TT