Archive for the 'C#' Category

VS 2005 Support

 VS2005

I just downloaded the latest VS2010 Beta 1 to play with, and am contemplating making breaking changes to the library that use C# 3.5 features. How important is VS 2005 support to people? Is everyone running VS2008 or later? Or do I need to maintain the 2005/C# 2.0 backwards compatibility?

Let me know in the comments, I will be steadily making changes here.

9.6.0.11 Release

I updated the API to incorporate the new features of the 9.6 API from IB. Primarily this is the call backs for various list functions.

I also made a large update to the event handler framework to make the calls thread safe now.

Please download it directly here or from the utilities page here.

9.5.0.10 New Release

So the new TWS brings a new user interface, and a new beta API. Since the last release I have rolled in several bug fixes reported on the forums, and I have converted all prices over to decimals from doubles. I’ve never understood why IB’s version uses doubles, but finally we should be rid of rounding errors on prices.

In any case, this release has incorporated all of the changes with IB’s 9.51 release, the decimal conversion, and a series of bug fixes.

As always, goto the utilities page to download here, or download directly from here.

9.4.0.9 Bugfix and Cleanup Release

This release includes some bugfixes and some cleanup. I had realized that some residual console code was left in the response to the historical request function, and that the java framework from IB’s method of calling the OnHistResponse method with null parameters to terminate the historical response was just plain wrong. I added two properties to the HistoricalResponse Event Arguments that allow you to determine where you are in the response, and you know you are done when RecordNumber == RecordCount-1. Additionally I cleaned up the RequestExecutions function with some issues relating to the filter, and made all of the eventarguments serializable. Below are the full release notes:

9.4.0.9 Bug Fix and Clean up - 2/10/09

  • Made all EventArgs Serializable as well as the new enumeration FATypes.
  • Fixed bug in OrderType.MarketOnClose - changed Description from "MKTCLS" to "MOC"
  • Fixed RequestExecution method to allow you to pass a null or empty filter to get all executions.
  • Changed HistoricalRequest Response. Added two parameters to the event args that lets the user know how far the download is. Also no longer calls function after download completed with null entries, since you can determine that the call is complete by the Record Number / Record Count properties.
  • Made EnumDescConverter Static, as all methods were static.

As usual, download it from the utilities page here, or directly here.

9.4.0.8 Cleanup Release

Hello everyone, these last releases have been pretty rapid fire. This release does not change any functionality, and is strictly the result of me running FxCop over the code again. I now use Visual Studio 2008 and their Code Analysis Engine is an integrated form of FxCop. In any case it caught a lot of embarrassing spelling and abbreviation mistakes amongst other things. The most common changes are listed below.

Please note this release has breaking changes, not to functionality, but you will have to update your events and function calls to the correctly spelled equivalents.

  • 9.4.0.8 Code Clean up - 1/31/09
    • Ran Vs2008 Code Analysis Wizard / FxCop and implemented cleanup
      • Numerous Spelling Changes
        • All Mkt references went to Market
        • All Req references went to Request etc.
        • All Lmt references went to Limit
        • All Indice references went to index
      • Added a lot of CultureInfo related fixes, making sure to provide invarient parsing
    • Fixed VB Client, used old contracts, and changed contract references to equity/future

As always, please go to the utility page here to get the latest release, or directly from here.