twse-mcp
Version:
MCP server for Taiwan Stock Exchange (TWSE) market data API
204 lines • 5.36 kB
TypeScript
export interface StockDaily {
Code: string;
Name: string;
TradeVolume: string;
TradeValue: string;
OpeningPrice: string;
HighestPrice: string;
LowestPrice: string;
ClosingPrice: string;
Change: string;
Transaction: string;
}
export interface StockPERatio {
Code: string;
Name: string;
DividendYield: string;
PERatio: string;
PriceBookRatio: string;
}
export interface MarketIndex {
Date: string;
Code: string;
Name: string;
ClosingIndex: string;
Change: string;
ChangePercent: string;
}
export interface ForeignHolding {
Rank: string;
Code: string;
Name: string;
SharesHeld: string;
Percentage: string;
}
export interface MonthlyStock {
Month: string;
Code: string;
Name: string;
HighestPrice: string;
LowestPrice: string;
AveragePrice: string;
TradeVolume: string;
}
export interface StockDayAvg {
Code: string;
Name: string;
ClosingPrice: string;
MonthlyAveragePrice: string;
}
export interface MarginTrading {
Date: string;
MarginBuy: string;
MarginSell: string;
MarginBalance: string;
ShortSell: string;
ShortCover: string;
ShortBalance: string;
}
export interface Top20Volume {
Rank: string;
Code: string;
Name: string;
TradeVolume: string;
TradeValue: string;
}
export interface FiveSecondStats {
Time: string;
BidVolume: string;
BidOrders: string;
AskVolume: string;
AskOrders: string;
TransactionVolume: string;
TransactionAmount: string;
}
export interface HolidaySchedule {
Date: string;
Name: string;
Description: string;
}
export interface NewListing {
Date: string;
Code: string;
Name: string;
Market: string;
Industry: string;
}
export interface SuspendedListing {
Date: string;
Code: string;
Name: string;
Reason: string;
}
export interface ETFRanking {
Rank: string;
Code: string;
Name: string;
Accounts: string;
}
export interface ForeignCategoryHolding {
Category: string;
SharesHeld: string;
Percentage: string;
Change: string;
}
export interface IndexHistory {
Date: string;
Open: string;
High: string;
Low: string;
Close: string;
}
export interface MonthlyRevenue {
出表日期: string;
資料年月: string;
公司代號: string;
公司名稱: string;
產業別: string;
營業收入_當月營收: string;
營業收入_上月營收: string;
營業收入_去年當月營收: string;
營業收入_上月比較增減: string;
營業收入_去年同月增減: string;
累計營業收入_當月累計營收: string;
累計營業收入_去年累計營收: string;
累計營業收入_前期比較增減: string;
備註: string;
}
export interface IncomeStatement {
年度_季度: string;
公司代號: string;
公司名稱: string;
營業收入: string;
營業成本: string;
營業毛利: string;
營業費用: string;
營業利益: string;
營業外收入及支出: string;
稅前淨利: string;
所得稅費用: string;
本期淨利: string;
每股盈餘: string;
}
export interface BalanceSheet {
年度_季度: string;
公司代號: string;
公司名稱: string;
流動資產: string;
非流動資產: string;
資產總額: string;
流動負債: string;
非流動負債: string;
負債總額: string;
股本: string;
權益總額: string;
負債及權益總額: string;
}
export interface IndustryEPS {
產業別: string;
公司家數: string;
平均每股盈餘: string;
最高每股盈餘: string;
最低每股盈餘: string;
產業平均本益比: string;
}
export interface ProfitAnalysis {
年度季別: string;
公司代號: string;
公司名稱: string;
毛利率: string;
營業利益率: string;
稅前純益率: string;
稅後純益率: string;
資產報酬率: string;
權益報酬率: string;
每股盈餘: string;
}
export declare class TWSEClient {
private client;
private baseURL;
constructor();
getStockDayAll(): Promise<StockDaily[]>;
getStockPERatios(): Promise<StockPERatio[]>;
getMarketIndex(): Promise<MarketIndex[]>;
getTopForeignHoldings(): Promise<ForeignHolding[]>;
getMonthlyStats(): Promise<MonthlyStock[]>;
getStockDayAvg(): Promise<StockDayAvg[]>;
getMarginTrading(): Promise<MarginTrading[]>;
getTop20Volume(): Promise<Top20Volume[]>;
getFiveSecondStats(): Promise<FiveSecondStats[]>;
getHolidaySchedule(): Promise<HolidaySchedule[]>;
getNewListings(): Promise<NewListing[]>;
getSuspendedListings(): Promise<SuspendedListing[]>;
getETFRanking(): Promise<ETFRanking[]>;
getForeignCategoryHoldings(): Promise<ForeignCategoryHolding[]>;
getIndexHistory(): Promise<IndexHistory[]>;
getMonthlyRevenue(): Promise<MonthlyRevenue[]>;
getIncomeStatement(): Promise<IncomeStatement[]>;
getBalanceSheet(): Promise<BalanceSheet[]>;
getIndustryEPS(): Promise<IndustryEPS[]>;
getProfitAnalysis(): Promise<ProfitAnalysis[]>;
getFinancialIncomeStatement(): Promise<IncomeStatement[]>;
getFinancialBalanceSheet(): Promise<BalanceSheet[]>;
}
//# sourceMappingURL=twse-client.d.ts.map