Tai-Pan EoD COM Interface – Delphi Developer Documentation
Quick Start
uses TPACC20_TLB;
var csTaiPan : ITaiPan;
csTaiPan := CoTaiPan.Create;
Central COM object for accessing Tai-Pan End-of-Day data.
1. Die COM Interface
The COM interface allows external Delphi applications to access:
• Wertpapier-Master Data
• Price Data
• Dividends
• Catalogs / Gruppen
• additional data records
A sample project TPEoDComInterface demonstrating all the functions listed here demonstrates usage.
⬇ Download Example Project
2. Integration
uses TPACC20_TLB;
The file TPACC20_TLB.pas must be included in the project.
⬇ Download TPACC20_TLB
3. Connection
var csTaiPan : ITaiPan;
csTaiPan := CoTaiPan.Create;
Creates the connection to the installed Tai-Pan COM interface.
Release csTaiPan := NIL;
4. Cataloglists und Catalogs
var klKatalogListe : KatalogListe;
klKatalogListe := csTaiPan.KatalogListe;
Catalogs group securities within Tai-Pan.
Read Name sName := klKatalogListe.Item(iIndex).Name;
5. Securities and other Financial Instruments
var wlWertpapierListe : IWertpapierListe;
wlWertpapierListe := ktKatalog.WertpapierListe;
List of all securities within a catalog.
Read ISIN sISIN := wlWertpapierListe.Item(iIndex).ISIN;
6. Wertpapier-Master Data
var md : Master Data;
md := csTaiPan.Master Data[WPK];
Retrieves detailed master data of a security.
Typical Fields
ISIN
WKN
Name
Symbol
Country
Exchange
7. Price Data
var kr : Kursreihe;
kr := csTaiPan.KursReihe[WPK, ktSchluss];
Loads historical price series.
Price Types
ktEroeffnung
ktHoch
ktTief
ktSchluss
ktVolumen
Periods
ptTage
ptWochen
ptMonate
ptQuartale
ptJahre
Read Value Preis := kr.Item(iIndex).Wert;
8. Dividends
var dl : DividendeListe;
dl := csTaiPan.DividendeListe[WPK];
Loads all stored dividends of a security.
Read Value Dividende := dl.Item(iIndex).Wert;
Notes
• Tai-Pan EoD must be installed
• COM registration must exist
• Delphi as 32-bit recommended (depending on COM version)
• WPK is the internal security identification number.
• Access is local to the Tai-Pan database