You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

23 lines
632 B

//
// ChartAPI.h
// HC
//
// Created by huilinLi on 2025/12/15.
//
#import <Foundation/Foundation.h>
@class StockKLineModel; // 前向声明 Model
// 定义业务回调,直接返回转换好的 Model 数组,而不是原始 JSON
typedef void(^KLineDataSuccess)(NSArray<StockKLineModel *> *kLineData);
typedef void(^APIError)(NSString *errorMessage);
@interface ChartAPI : NSObject
// 获取 K 线数据
+ (void)fetchKLineDataWithSymbol:(NSString *)symbol
type:(NSString *)type
success:(KLineDataSuccess)success
failure:(APIError)failure;
@end