hikyuu2/hikyuu_cpp/hikyuu/hikyuu.h
2018-09-10 02:21:19 +08:00

41 lines
860 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* hikyuu.h
*
* Created on: 2011-11-13
* Author: fasiondog
*/
#ifndef HIKYUU_H_
#define HIKYUU_H_
#include "KData.h"
#include "StockManager.h"
#include "utilities/util.h"
namespace hku {
/**
* Hikyuu核心初始化客户端必须在程序入口处调用
* @param config_file_name 配置信息文件名
* @ingroup StockManage
*/
void HKU_API hikyuu_init(const string& config_file_name);
/**
* 获取Stock目的是封装StockManager客户端不直接使用StockManager对象
* @param querystr 格式:“市场简称证券代码”,如"sh000001"
* @return 对应的证券实例如果实例不存在则Null<Stock>(),不抛出异常
*/
Stock HKU_API getStock(const string& querystr);
/**
* 获取Hikyuu当前版本号
* @return 版本号
*/
string HKU_API getVersion();
} /* namespace */
#endif /* HIKYUU_H_ */