Search by clicking |
FastTrack APIThe FastTrack API represents the interface to the FastTrack database and FNU files. |
IntroductionThe FastTrack DLL, FastTrack.dll, provides a Windows 32-bit API to the FastTrack database and FNU files. It is available to anyone and there are no royalties for redistribution. However, you must sign our license agreement. The DLL has been tested under C, C++ and Visual Basic, and uses standard Windows API-type calls, so any language that can handle those should have no problem with the DLL. It is not an ActiveX DLL.Why use FastTrack.dll?If you use FastTrack.dll in your programming instead of using the defined data structures we offered in FTLAYOUT.BAS for the DOS version of FastTrack, then your program can automatically take advantage of all FastTrack databases, stocks, mutual funds, indices, and future offerings. Also, you will not have to change your programs to use any new data structures that we introduce. When we change the structure, we will also download a new DLL . . . and you can count on this because FastTrack itself uses the same DLL you'll be using for its access to the FastTrack database and FNU files . . . if we send a bad DLL we're all in trouble.Of course, we may enhance the features of the DLL and the databases from time to time. To use any such new features, you would, of course, have to revise your programs . . . BUT THE GOAL is to maintain a standard set of features forever so that your programs will always work with new symbols and databases in a totally transparent manner. Standard Disclaimer:There are no guarantees that you will not have problems. We will support you as best we can and fix any errors in the DLL as quickly as we are able to do so. By using the DLL you agree to hold us harmless and indemnify us with respect to any actions brought by your users. |
RequirementsAny 32-bit Windows PC that can actively update the FT databases using our FTComm to get daily downloads. Users/developers with expired FastTrack subscription agreements will not be able to use the dll.Function ListingThere is a sample Visual Basic project in the vb directory. For C and C++ programmers, header and library files are supplied (ftapi.h and FastTrack.lib, respectively) in the c directory. For Delphi programmers, the delphi directory includes FastTrack.pas , which gives the Delphi interface to the FastTrack API, as well as two helper functions. FastTrack.pas was provided by Richard Kellogg, a Delphi developer who is using the FastTrack API. For programmers in other languages, this document and the C/C++ header should give you the information to use the FastTrack API.
|
In addition, there are two
convenience function calls for C
and C++ users, FTjulian2time_t
and FTjulian2tm , that
convert the Visual Basic version of a julian date
into something C and C++ can understand.
FormatThe functions in the API are documented in the following format:Function Name
|
Initialization and Cleanup FunctionsFTopen
|
FTclose
FTrebuildSymbols
|
Basically, use these functions like this (Visual Basic code):
Dim iter As Long
Dim sym as String * 5
iter = FTgetIssueIter
While (FTissueNext (iter, sym))
' use sym here
Wend
FTcloseIssueIter (iter)
Note that you can have more than one iterator open at a time.
| FT_BADDBPATH | -1 | unable to open database file |
| FT_DBCORRUPT | -2 | database file corrupt |
| FT_BADINI | -3 | bad INI file |
| FT_BADSYMBOLS | -4 | bad symbols file |
| FT_BADISSUE | -5 | no such issue |
| FT_ISSUECORRUPT | -6 | issue corrupt |
| FT_SYMDBMISMATCH | -7 | symbols file-database files mismatch |
| FT_BADINDEX | -8 | index out of bounds |
| FT_TIMESTAMP | -9 | timestamp |
| FT_GENERALERROR | -99 | general failure |
| FT_SYSTEMERROR | -999 | general system failure |