UNPKG

mg-mcp-server

Version:

MCP server for financial data APIs (Alpha Vantage + Yahoo Finance)

98 lines 3.53 kB
import type { AlphaVantageResponse } from './types.js'; export declare class AlphaVantageClient { private lastRequestTime; private enforceRateLimit; private makeRequest; getQuote(symbol: string): Promise<AlphaVantageResponse>; getTimeSeriesDaily(symbol: string, outputsize?: 'compact' | 'full'): Promise<AlphaVantageResponse>; getTimeSeriesIntraday(symbol: string, interval?: string): Promise<AlphaVantageResponse>; getTimeSeriesWeekly(symbol: string): Promise<AlphaVantageResponse>; getTimeSeriesMonthly(symbol: string): Promise<AlphaVantageResponse>; getExchangeRate(fromCurrency: string, toCurrency: string): Promise<AlphaVantageResponse>; getCryptoDaily(symbol: string, market?: string): Promise<AlphaVantageResponse>; getTechnicalIndicator(symbol: string, functionName: string, interval?: string, timePeriod?: string, seriesType?: string): Promise<AlphaVantageResponse>; getNewsSentiment(tickers?: string[], topics?: string[], limit?: number): Promise<AlphaVantageResponse>; /** * 检查是否为付费版用户 */ private checkPremiumAccess; /** * 检查是否为企业版用户 */ private checkEnterpriseAccess; /** * 获取公司概况 */ getCompanyOverview(symbol: string): Promise<AlphaVantageResponse>; /** * 获取收益报告 */ getEarnings(symbol: string): Promise<AlphaVantageResponse>; /** * 获取资产负债表 */ getBalanceSheet(symbol: string): Promise<AlphaVantageResponse>; /** * 获取利润表 */ getIncomeStatement(symbol: string): Promise<AlphaVantageResponse>; /** * 获取现金流量表 */ getCashFlow(symbol: string): Promise<AlphaVantageResponse>; /** * 布林带指标 */ getBollingerBands(symbol: string, interval?: string, timePeriod?: string, seriesType?: string, nbdevup?: string, nbdevdn?: string): Promise<AlphaVantageResponse>; /** * 随机指标 */ getStochastic(symbol: string, interval?: string, fastkPeriod?: string, slowkPeriod?: string, slowdPeriod?: string, slowkMatype?: string, slowdMatype?: string): Promise<AlphaVantageResponse>; /** * 威廉指标 */ getWilliamsR(symbol: string, interval?: string, timePeriod?: string): Promise<AlphaVantageResponse>; /** * 平均真实波幅 (ATR) */ getATR(symbol: string, interval?: string, timePeriod?: string): Promise<AlphaVantageResponse>; /** * 获取期权数据 */ getOptionsData(symbol: string): Promise<AlphaVantageResponse>; /** * 获取ETF持仓数据 */ getETFProfile(symbol: string): Promise<AlphaVantageResponse>; /** * 获取经济指标数据 */ getEconomicIndicator(functionName: string, interval?: string): Promise<AlphaVantageResponse>; /** * 获取实时数据 (企业版无延迟) */ getRealTimeQuote(symbol: string): Promise<AlphaVantageResponse>; /** * 获取当前订阅信息 */ getSubscriptionInfo(): { type: string; isFree: boolean; isPremium: boolean; isEnterprise: boolean; limits: { REQUESTS_PER_MINUTE: number; REQUESTS_PER_DAY: number | null; }; rateLimit: number; }; /** * 获取可用功能列表 */ getAvailableFeatures(): { basic: string[]; premium: string[]; enterprise: string[]; }; } //# sourceMappingURL=alphavantage-client.d.ts.map