IQFeed.CSharpApiClient icon indicating copy to clipboard operation
IQFeed.CSharpApiClient copied to clipboard

Save lookup data without the ENDMSG

Open dutchy54321 opened this issue 2 years ago • 1 comments

hi,

when using the csharp plugin with Python is there any way to set !ENDMSG!, to false? Now when I download a day of historical data it puts this message at the end of the file (!ENDMSG!,). So I know I can get rid of it of course but it slows things down dramatically. I can read the CSV file without that line using:

            df = pd.read_csv( filename, header=None, names=headers1, dtype=dtypes1, index_col=0,
                parse_dates=True, usecols = cols,skipfooter=1, engine='python' )

But the problem is that I have a database with over 2 years of tick data (each day in a separate file). These files were made just using Python code and they do not have this message (since I removed it). Now I want to start using the csharp plugin I want to save the tick files without the !ENDMSG!, line, just like the other files. That would make my code dramatically faster.

So in the source code it seems I can set this somewhere here:

        from IQFeed.CSharpApiClient.Lookup.Common import BaseLookupMessageHandler   

just not sure how to do it in Python. Some help would be appreciated

Thanks

dutchy54321 avatar Nov 03 '22 12:11 dutchy54321

yeah, its a bit cumbersome having to handle it manually. I can probably add feat for data.

mathpaquette avatar May 25 '23 12:05 mathpaquette