node-twstock
Version:
A client library for scraping Taiwan stock market data
74 lines (73 loc) • 2.79 kB
TypeScript
import { Scraper } from './scraper';
import { IndexHistorical, IndexTrades, MarketBreadth, MarketInstitutional, MarketMarginTrades, MarketTrades, StockCapitalReductions, StockDividends, StockFiniHoldings, StockHistorical, StockInstitutional, StockMarginTrades, StockShortSales, StockSplits, StockValues } from '../interfaces';
export declare class TpexScraper extends Scraper {
fetchStocksHistorical(options: {
date: string;
symbol?: string;
}): Promise<StockHistorical | StockHistorical[] | null | undefined>;
fetchStocksInstitutional(options: {
date: string;
symbol?: string;
}): Promise<StockInstitutional | StockInstitutional[] | null | undefined>;
fetchStocksFiniHoldings(options: {
date: string;
symbol?: string;
}): Promise<StockFiniHoldings | StockFiniHoldings[] | null | undefined>;
fetchStocksMarginTrades(options: {
date: string;
symbol?: string;
}): Promise<StockMarginTrades | StockMarginTrades[] | null | undefined>;
fetchStocksShortSales(options: {
date: string;
symbol?: string;
}): Promise<StockShortSales | StockShortSales[] | null | undefined>;
fetchStocksValues(options: {
date: string;
symbol?: string;
}): Promise<StockValues | StockValues[] | null | undefined>;
fetchStocksDividends(options: {
startDate: string;
endDate: string;
symbol?: string;
}): Promise<StockDividends[]>;
fetchStocksCapitalReductions(options: {
startDate: string;
endDate: string;
symbol?: string;
}): Promise<StockCapitalReductions[]>;
fetchStocksSplits(options: {
startDate: string;
endDate: string;
symbol?: string;
}): Promise<StockSplits[]>;
fetchStocksEtfSplits(options: {
startDate: string;
endDate: string;
symbol?: string;
}): Promise<StockSplits[]>;
fetchStocksEtfReverseSplits(options: {
startDate: string;
endDate: string;
symbol?: string;
}): Promise<StockSplits[]>;
fetchIndicesHistorical(options: {
date: string;
symbol?: string;
}): Promise<IndexHistorical | IndexHistorical[] | null | undefined>;
fetchIndicesTrades(options: {
date: string;
symbol?: string;
}): Promise<IndexTrades | IndexTrades[] | null | undefined>;
fetchMarketTrades(options: {
date: string;
}): Promise<MarketTrades | null>;
fetchMarketBreadth(options: {
date: string;
}): Promise<MarketBreadth | null>;
fetchMarketInstitutional(options: {
date: string;
}): Promise<MarketInstitutional | null>;
fetchMarketMarginTrades(options: {
date: string;
}): Promise<MarketMarginTrades | null>;
}