node-twstock
Version:
A client library for scraping Taiwan stock market data
45 lines (44 loc) • 1.67 kB
TypeScript
import { Scraper } from './scraper';
import { FutOptHistorical, FutOptInstitutional, FutOptLargeTraders, FutOptMxfRetailPosition, FutOptTmfRetailPosition, FutOptTxoPutCallRatio, StockFutOpt } from '../interfaces';
import { FutOptExchangeRates } from '../interfaces/futopt-exchange-rates.interface';
export declare class TaifexScraper extends Scraper {
fetchListedStockFutOpt(): Promise<StockFutOpt[]>;
fetchFuturesHistorical(options: {
date: string;
symbol?: string;
afterhours?: boolean;
}): Promise<FutOptHistorical[] | null>;
fetchOptionsHistorical(options: {
date: string;
symbol?: string;
afterhours?: boolean;
}): Promise<FutOptHistorical[] | null>;
fetchFuturesInstitutional(options: {
date: string;
symbol: string;
}): Promise<FutOptInstitutional | null>;
fetchOptionsInstitutional(options: {
date: string;
symbol: string;
}): Promise<FutOptInstitutional | null>;
fetchFuturesLargeTraders(options: {
date: string;
symbol: string;
}): Promise<FutOptLargeTraders | null>;
fetchOptionsLargeTraders(options: {
date: string;
symbol: string;
}): Promise<FutOptLargeTraders | null>;
fetchMxfRetailPosition(options: {
date: string;
}): Promise<FutOptMxfRetailPosition | null>;
fetchTmfRetailPosition(options: {
date: string;
}): Promise<FutOptTmfRetailPosition | null>;
fetchTxoPutCallRatio(options: {
date: string;
}): Promise<FutOptTxoPutCallRatio | null>;
fetchExchangeRates(options: {
date: string;
}): Promise<FutOptExchangeRates | null>;
}