@gviper/alphavantage-mcp
Version:
MCP (Model Context Protocol) server for Alpha Vantage financial data API
223 lines • 9.06 kB
TypeScript
import { z } from 'zod';
import { Stocks } from '@gviper/alphavantage-api';
declare const IntradayParamsSchema: z.ZodObject<{
symbol: z.ZodString;
interval: z.ZodEnum<["1min", "5min", "15min", "30min", "60min"]>;
adjusted: z.ZodOptional<z.ZodBoolean>;
extended_hours: z.ZodOptional<z.ZodBoolean>;
month: z.ZodOptional<z.ZodString>;
outputsize: z.ZodOptional<z.ZodEnum<["compact", "full"]>>;
datatype: z.ZodOptional<z.ZodEnum<["json", "csv"]>>;
}, "strip", z.ZodTypeAny, {
symbol: string;
interval: "1min" | "5min" | "15min" | "30min" | "60min";
adjusted?: boolean | undefined;
extended_hours?: boolean | undefined;
month?: string | undefined;
outputsize?: "compact" | "full" | undefined;
datatype?: "json" | "csv" | undefined;
}, {
symbol: string;
interval: "1min" | "5min" | "15min" | "30min" | "60min";
adjusted?: boolean | undefined;
extended_hours?: boolean | undefined;
month?: string | undefined;
outputsize?: "compact" | "full" | undefined;
datatype?: "json" | "csv" | undefined;
}>;
declare const DailyParamsSchema: z.ZodObject<{
symbol: z.ZodString;
outputsize: z.ZodOptional<z.ZodEnum<["compact", "full"]>>;
datatype: z.ZodOptional<z.ZodEnum<["json", "csv"]>>;
}, "strip", z.ZodTypeAny, {
symbol: string;
outputsize?: "compact" | "full" | undefined;
datatype?: "json" | "csv" | undefined;
}, {
symbol: string;
outputsize?: "compact" | "full" | undefined;
datatype?: "json" | "csv" | undefined;
}>;
declare const QuoteParamsSchema: z.ZodObject<{
symbol: z.ZodString;
datatype: z.ZodOptional<z.ZodEnum<["json", "csv"]>>;
}, "strip", z.ZodTypeAny, {
symbol: string;
datatype?: "json" | "csv" | undefined;
}, {
symbol: string;
datatype?: "json" | "csv" | undefined;
}>;
declare const SearchParamsSchema: z.ZodObject<{
keywords: z.ZodString;
datatype: z.ZodOptional<z.ZodEnum<["json", "csv"]>>;
}, "strip", z.ZodTypeAny, {
keywords: string;
datatype?: "json" | "csv" | undefined;
}, {
keywords: string;
datatype?: "json" | "csv" | undefined;
}>;
export declare function createStocksTools(stocks: Stocks): {
av_stocks_intraday: {
description: string;
inputSchema: z.ZodObject<{
symbol: z.ZodString;
interval: z.ZodEnum<["1min", "5min", "15min", "30min", "60min"]>;
adjusted: z.ZodOptional<z.ZodBoolean>;
extended_hours: z.ZodOptional<z.ZodBoolean>;
month: z.ZodOptional<z.ZodString>;
outputsize: z.ZodOptional<z.ZodEnum<["compact", "full"]>>;
datatype: z.ZodOptional<z.ZodEnum<["json", "csv"]>>;
}, "strip", z.ZodTypeAny, {
symbol: string;
interval: "1min" | "5min" | "15min" | "30min" | "60min";
adjusted?: boolean | undefined;
extended_hours?: boolean | undefined;
month?: string | undefined;
outputsize?: "compact" | "full" | undefined;
datatype?: "json" | "csv" | undefined;
}, {
symbol: string;
interval: "1min" | "5min" | "15min" | "30min" | "60min";
adjusted?: boolean | undefined;
extended_hours?: boolean | undefined;
month?: string | undefined;
outputsize?: "compact" | "full" | undefined;
datatype?: "json" | "csv" | undefined;
}>;
handler: (params: z.infer<typeof IntradayParamsSchema>) => Promise<import("@gviper/alphavantage-api").IntradayResponse>;
};
av_stocks_daily: {
description: string;
inputSchema: z.ZodObject<{
symbol: z.ZodString;
outputsize: z.ZodOptional<z.ZodEnum<["compact", "full"]>>;
datatype: z.ZodOptional<z.ZodEnum<["json", "csv"]>>;
}, "strip", z.ZodTypeAny, {
symbol: string;
outputsize?: "compact" | "full" | undefined;
datatype?: "json" | "csv" | undefined;
}, {
symbol: string;
outputsize?: "compact" | "full" | undefined;
datatype?: "json" | "csv" | undefined;
}>;
handler: (params: z.infer<typeof DailyParamsSchema>) => Promise<import("@gviper/alphavantage-api").DailyResponse>;
};
av_stocks_daily_adjusted: {
description: string;
inputSchema: z.ZodObject<{
symbol: z.ZodString;
outputsize: z.ZodOptional<z.ZodEnum<["compact", "full"]>>;
datatype: z.ZodOptional<z.ZodEnum<["json", "csv"]>>;
}, "strip", z.ZodTypeAny, {
symbol: string;
outputsize?: "compact" | "full" | undefined;
datatype?: "json" | "csv" | undefined;
}, {
symbol: string;
outputsize?: "compact" | "full" | undefined;
datatype?: "json" | "csv" | undefined;
}>;
handler: (params: z.infer<typeof DailyParamsSchema>) => Promise<import("@gviper/alphavantage-api").DailyAdjustedResponse>;
};
av_stocks_weekly: {
description: string;
inputSchema: z.ZodObject<{
symbol: z.ZodString;
outputsize: z.ZodOptional<z.ZodEnum<["compact", "full"]>>;
datatype: z.ZodOptional<z.ZodEnum<["json", "csv"]>>;
}, "strip", z.ZodTypeAny, {
symbol: string;
outputsize?: "compact" | "full" | undefined;
datatype?: "json" | "csv" | undefined;
}, {
symbol: string;
outputsize?: "compact" | "full" | undefined;
datatype?: "json" | "csv" | undefined;
}>;
handler: (params: z.infer<typeof DailyParamsSchema>) => Promise<import("@gviper/alphavantage-api").WeeklyResponse>;
};
av_stocks_weekly_adjusted: {
description: string;
inputSchema: z.ZodObject<{
symbol: z.ZodString;
outputsize: z.ZodOptional<z.ZodEnum<["compact", "full"]>>;
datatype: z.ZodOptional<z.ZodEnum<["json", "csv"]>>;
}, "strip", z.ZodTypeAny, {
symbol: string;
outputsize?: "compact" | "full" | undefined;
datatype?: "json" | "csv" | undefined;
}, {
symbol: string;
outputsize?: "compact" | "full" | undefined;
datatype?: "json" | "csv" | undefined;
}>;
handler: (params: z.infer<typeof DailyParamsSchema>) => Promise<import("@gviper/alphavantage-api").WeeklyAdjustedResponse>;
};
av_stocks_monthly: {
description: string;
inputSchema: z.ZodObject<{
symbol: z.ZodString;
outputsize: z.ZodOptional<z.ZodEnum<["compact", "full"]>>;
datatype: z.ZodOptional<z.ZodEnum<["json", "csv"]>>;
}, "strip", z.ZodTypeAny, {
symbol: string;
outputsize?: "compact" | "full" | undefined;
datatype?: "json" | "csv" | undefined;
}, {
symbol: string;
outputsize?: "compact" | "full" | undefined;
datatype?: "json" | "csv" | undefined;
}>;
handler: (params: z.infer<typeof DailyParamsSchema>) => Promise<import("@gviper/alphavantage-api").MonthlyResponse>;
};
av_stocks_monthly_adjusted: {
description: string;
inputSchema: z.ZodObject<{
symbol: z.ZodString;
outputsize: z.ZodOptional<z.ZodEnum<["compact", "full"]>>;
datatype: z.ZodOptional<z.ZodEnum<["json", "csv"]>>;
}, "strip", z.ZodTypeAny, {
symbol: string;
outputsize?: "compact" | "full" | undefined;
datatype?: "json" | "csv" | undefined;
}, {
symbol: string;
outputsize?: "compact" | "full" | undefined;
datatype?: "json" | "csv" | undefined;
}>;
handler: (params: z.infer<typeof DailyParamsSchema>) => Promise<import("@gviper/alphavantage-api").MonthlyAdjustedResponse>;
};
av_stocks_quote: {
description: string;
inputSchema: z.ZodObject<{
symbol: z.ZodString;
datatype: z.ZodOptional<z.ZodEnum<["json", "csv"]>>;
}, "strip", z.ZodTypeAny, {
symbol: string;
datatype?: "json" | "csv" | undefined;
}, {
symbol: string;
datatype?: "json" | "csv" | undefined;
}>;
handler: (params: z.infer<typeof QuoteParamsSchema>) => Promise<import("@gviper/alphavantage-api").GlobalQuoteResponse>;
};
av_stocks_search: {
description: string;
inputSchema: z.ZodObject<{
keywords: z.ZodString;
datatype: z.ZodOptional<z.ZodEnum<["json", "csv"]>>;
}, "strip", z.ZodTypeAny, {
keywords: string;
datatype?: "json" | "csv" | undefined;
}, {
keywords: string;
datatype?: "json" | "csv" | undefined;
}>;
handler: (params: z.infer<typeof SearchParamsSchema>) => Promise<import("@gviper/alphavantage-api").SearchResponse>;
};
};
export {};
//# sourceMappingURL=stocks.d.ts.map