update demo1

This commit is contained in:
fasiondog 2024-08-28 01:57:48 +08:00
parent d51a6491d5
commit ac67dd3b03

View File

@ -5,6 +5,7 @@
#include <thread>
#include <chrono>
#include <hikyuu/global/GlobalSpotAgent.h>
#include <hikyuu/utilities/os.h>
#if defined(_WIN32)
#include <Windows.h>
@ -20,8 +21,7 @@ int main(int argc, char* argv[]) {
#endif
// 配置文件的位置自行修改
hikyuu_init("C:\\Users\\admin\\.hikyuu\\hikyuu.ini");
// hikyuu_init("/home/fsd/.hikyuu/hikyuu.ini");
hikyuu_init(fmt::format("{}/.hikyuu/hikyuu.ini", getUserDir()));
StockManager& sm = StockManager::instance();