update docs

This commit is contained in:
fasiondog 2024-04-16 22:48:19 +08:00
parent 0b553a518c
commit c498050f45
3 changed files with 8 additions and 5 deletions

View File

@ -5,7 +5,7 @@
============
内建对因子合成算法
----------------
--------------------------------
.. py:function:: MF_EqualWeight(inds, stks, query, ref_stk[, ic_n=5])
@ -19,7 +19,7 @@
:rtype: MultiFactorBase
.. py:function:: MF_EqualWeight(inds, stks, query, ref_stk[, ic_n=5, ic_rolling_n=120])
.. py:function:: MF_ICWeight(inds, stks, query, ref_stk[, ic_n=5, ic_rolling_n=120])
滚动IC权重合成因子
@ -32,7 +32,7 @@
:rtype: MultiFactorBase
.. py:function:: MF_EqualWeight(inds, stks, query, ref_stk[, ic_n=5, ic_rolling_n=120])
.. py:function:: MF_ICIRWeight(inds, stks, query, ref_stk[, ic_n=5, ic_rolling_n=120])
滚动ICIR权重合成因子
@ -46,7 +46,7 @@
自定义多因子合成算法基类
--------------------
--------------------------------------
自定义多因子合成算法接口:
@ -54,7 +54,7 @@
多因子合成算法基类
------------------------
---------------------------------------
.. py:class:: MultiFactorBase

View File

@ -442,6 +442,7 @@ Stock StockManager::addTempCsvStock(const string& code, const string& day_filena
void StockManager::removeTempCsvStock(const string& code) {
string query_str = "TMP" + code;
to_upper(query_str);
std::lock_guard<std::mutex> lock(*m_stockDict_mutex);
auto iter = m_stockDict.find(query_str);
if (iter != m_stockDict.end()) {
m_stockDict.erase(iter);

View File

@ -147,6 +147,8 @@ void export_StockManager(py::module& m) {
CSV文件第一行为标题
DatetimeDateOPENHIGHLOWCLOSEAMOUNTVOLUMEVOLCOUNT
csv 使 utf8
:param str code: Stock相同Null<Stock>
:param str day_filename: 线CSV文件名
:param str min_filename: 线CSV文件名