2015-01-07 01:26:14 +08:00
|
|
|
|
/*
|
|
|
|
|
* hikyuu.h
|
|
|
|
|
*
|
|
|
|
|
* Created on: 2011-11-13
|
|
|
|
|
* Author: fasiondog
|
|
|
|
|
*/
|
|
|
|
|
|
2019-08-03 21:53:24 +08:00
|
|
|
|
#pragma once
|
2015-01-07 01:26:14 +08:00
|
|
|
|
#ifndef HIKYUU_H_
|
|
|
|
|
#define HIKYUU_H_
|
|
|
|
|
|
2018-08-31 02:50:06 +08:00
|
|
|
|
#include "KData.h"
|
2020-06-10 00:17:24 +08:00
|
|
|
|
#include "Stock.h"
|
2015-01-07 01:26:14 +08:00
|
|
|
|
#include "StockManager.h"
|
|
|
|
|
#include "utilities/util.h"
|
2019-03-09 23:30:04 +08:00
|
|
|
|
#include "utilities/Parameter.h"
|
2015-01-07 01:26:14 +08:00
|
|
|
|
|
|
|
|
|
namespace hku {
|
|
|
|
|
|
2020-06-10 00:17:24 +08:00
|
|
|
|
/**
|
|
|
|
|
* @ingroup StockManage
|
|
|
|
|
* @{
|
|
|
|
|
*/
|
|
|
|
|
|
2015-01-07 01:26:14 +08:00
|
|
|
|
/**
|
|
|
|
|
* Hikyuu核心初始化,客户端必须在程序入口处调用
|
|
|
|
|
* @param config_file_name 配置信息文件名
|
2020-12-10 00:03:43 +08:00
|
|
|
|
* @param ignore_preload 忽略配置信息中的预加载设置,即不加载数据至内存。
|
|
|
|
|
* 用于某些场合启动hikyuu,但仅用于获取数据库的基本信息。
|
2015-01-07 01:26:14 +08:00
|
|
|
|
*/
|
2021-02-17 19:43:59 +08:00
|
|
|
|
void HKU_API hikyuu_init(const string& config_file_name, bool ignore_preload = false,
|
|
|
|
|
const StrategyContext& context = StrategyContext({"all"}));
|
2015-01-07 01:26:14 +08:00
|
|
|
|
|
2018-09-10 02:21:19 +08:00
|
|
|
|
/**
|
|
|
|
|
* 获取Hikyuu当前版本号
|
|
|
|
|
* @return 版本号
|
|
|
|
|
*/
|
|
|
|
|
string HKU_API getVersion();
|
|
|
|
|
|
2020-04-20 23:59:47 +08:00
|
|
|
|
/**
|
|
|
|
|
* 获取详细版本号,包含构建时间
|
|
|
|
|
*/
|
|
|
|
|
std::string HKU_API getVersionWithBuild();
|
|
|
|
|
|
2020-06-10 00:17:24 +08:00
|
|
|
|
/** @} */
|
|
|
|
|
|
2019-11-10 19:45:57 +08:00
|
|
|
|
} // namespace hku
|
2015-01-07 01:26:14 +08:00
|
|
|
|
|
|
|
|
|
#endif /* HIKYUU_H_ */
|