/** * Eastmoney Data SDK - K 线 API * * 获取股票历史 K 线数据(日线、周线、月线、分钟线) */ import { KLine, KLineOptions } from '../types/kline'; /** * 获取 K 线数据 * * @param options - K 线请求选项 * @returns K 线数据数组 * * @example * ```ts * // 获取贵州茅台日线数据(前复权) * const klines = await getKLine({ * secid: '1.600519', * klt: 101, * fqt: 1, * limit: 500 * }); * * // 获取 5 分钟 K 线 * const min5Klines = await getKLine({ * secid: '0.000001', * klt: 5, * limit: 100 * }); * ``` */ export declare function getKLine(options: KLineOptions): Promise; /** * 获取日线数据(简化版) * * @param secid - 证券 ID * @param limit - 数据条数 * @param fqt - 复权类型(默认前复权) * @returns K 线数据数组 */ export declare function getDailyKLine(secid: string, limit?: number, fqt?: 0 | 1 | 2): Promise; /** * 获取周线数据 * * @param secid - 证券 ID * @param limit - 数据条数 * @param fqt - 复权类型 * @returns K 线数据数组 */ export declare function getWeeklyKLine(secid: string, limit?: number, fqt?: 0 | 1 | 2): Promise; /** * 获取月线数据 * * @param secid - 证券 ID * @param limit - 数据条数 * @param fqt - 复权类型 * @returns K 线数据数组 */ export declare function getMonthlyKLine(secid: string, limit?: number, fqt?: 0 | 1 | 2): Promise; /** * 获取分钟线数据 * * @param secid - 证券 ID * @param period - 分钟周期(1/5/15/30/60) * @param limit - 数据条数 * @returns K 线数据数组 */ export declare function getMinuteKLine(secid: string, period?: 1 | 5 | 15 | 30 | 60, limit?: number): Promise; /** * 批量获取多只股票的 K 线数据 * * @param secids - 证券 ID 数组 * @param options - K 线请求选项(不含 secid) * @returns 股票 K 线数据映射 */ export declare function getBatchKLine(secids: string[], options?: Omit): Promise>; //# sourceMappingURL=kline.d.ts.map