If you are upgrading from our previous .Net 1.1 T4API.dll file to the new .Net 2.0 T4API.20.dll file then below are a few notes regarding the conversion which may require some code changes:
- API now requires Microsoft .Net Framework v2.0 Service Pack 2 or greater to run.
- API filenames have changed. You need to update your projects to reference T4API.20.dll and T4Definitions.20.dll now.
- Trace listener filename has changed. You need to use T4TraceListener.20.dll now and update your app.config file to use:
<add name="ExampleTrace" type="T4.TraceListener.T4TraceListener, T4TraceListener.20" initializeData="T4Example\T4Example, 5, True" /> - API file dependencies have changed. You need to include only the following files when deploying your application:
- T4API.20.dll
- T4Definitions.20.dll
- T4Connection.20.dll
- T4Message.20.dll
- T4TraceListener.20.dll
- zLib1.dll - NOTE: There are seperate 64bit and 32bit versions of this file and the correct one must be deployed for your application to work.
- System.Data.SQLite.dll - NOTE: There are seperate 64bit and 32bit versions of this file and the correct one must be deployed for your application to work.
- Host Constructor no longer accepts penUpgrade and penLocking parameters as these are no longer supported.
- Host.ServerType enumeration has been replaced with APIServerType enumeration in the root T4 namespace.
- Host.LoginSuccess event no longer passes pbReconnect parameter.
- MarketData.CreateMarketFilter event no longer takes psngStrikePrice parameter.
- Added Market.DepthUnsubscribe method for unsubscribing from a market.
- Market.DepthSubscribe now takes either no parameters (defaults to DepthBuffer.Smart and DepthLevels.BestOnly) or requires both DepthBuffer and DepthLevels to be specified.
- Account.Account property has been renamed to Account.AccountNumber due to problems using the property from C++.
- AccountNotify2 event removed and pbImportant parameter added to AccountNotify event instead.
- Account.Subscribe2 method removed and overloaded Account.Subscribe method added instead.
- OrderList.Submission.Add2, Add3 etc methods have all been replaced with overloads of OrderList.Submission.Add.
- OrderList.Revision.Add method has been replaced with AddTicks and AddPrice methods.
- SubmitNewOrder2, SubmitNewOrder3 methods have all be replaced with overloads of SubmitNewOrder on AccountList, Account and Position.
- T4 installation upgrade methods have been removed.
- ToString methods have been removed except on the Trade related objects.
- Obsolete methods and events have been removed.
- All optional parameters in methods have been removed and overloaded methods have been created instead where needed.