Tai-Pan EoD Delphi Dokumentation

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
Risk warning: Futures, shares and foreign exchange trading involve considerable risk and are not suitable for every investor. An investor could lose all or more than the capital invested. Risk capital is money that can be lost without jeopardizing financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily an indicator of future results.