/** * Eastmoney Data SDK - 全局配置 * * 包含所有 API 端点地址、默认请求头和超时设置 */ /** * 东方财富 API 基础地址 */ export declare const EASTMONEY_BASE: { /** 历史 K 线 API */ readonly KLINE: "https://push2his.eastmoney.com/api/qt/stock/kline/get"; /** 实时行情 API */ readonly QUOTE: "https://push2.eastmoney.com/api/qt/stock/get"; /** 分时线 API(当日分时 - 实时) */ readonly TRENDS: "https://push2.eastmoney.com/api/qt/stock/trends2/get"; /** 分时线 API(多日分时 - 历史) */ readonly TRENDS_HISTORY: "https://push2his.eastmoney.com/api/qt/stock/trends2/get"; /** 分钟线 API(历史分钟 K 线) */ readonly MINUTE: "https://push2his.eastmoney.com/api/qt/stock/kline/get"; /** 股票列表 API */ readonly STOCK_LIST: "https://push2.eastmoney.com/api/qt/clist/get"; /** 板块列表 API */ readonly SECTOR_LIST: "https://push2.eastmoney.com/api/qt/clist/get"; }; /** * 默认请求头 * 模拟浏览器请求,避免被反爬 */ export declare const DEFAULT_HEADERS: { readonly "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"; readonly Referer: "https://quote.eastmoney.com/"; readonly Accept: "application/json, text/plain, */*"; readonly "Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8"; }; /** * 默认请求超时时间(毫秒) */ export declare const DEFAULT_TIMEOUT = 10000; /** * 默认限流间隔(毫秒) */ export declare const DEFAULT_THROTTLE_MS = 300; /** * 市场代码映射 * 用于构建 secid 参数 */ export declare const MARKET_CODE: { /** 上海证券交易所 */ readonly SH: 1; /** 深圳证券交易所 */ readonly SZ: 0; /** 北京证券交易所 */ readonly BJ: 0; }; /** * K 线周期类型 */ export declare const KLINE_PERIOD: { /** 1 分钟 */ readonly MIN_1: 1; /** 5 分钟 */ readonly MIN_5: 5; /** 15 分钟 */ readonly MIN_15: 15; /** 30 分钟 */ readonly MIN_30: 30; /** 60 分钟 */ readonly MIN_60: 60; /** 日线 */ readonly DAILY: 101; /** 周线 */ readonly WEEKLY: 102; /** 月线 */ readonly MONTHLY: 103; }; /** * 复权类型 */ export declare const FQ_TYPE: { /** 不复权 */ readonly NONE: 0; /** 前复权 */ readonly QFQ: 1; /** 后复权 */ readonly HFQ: 2; }; //# sourceMappingURL=config.d.ts.map