Skip to content

Commit

Permalink
!8 修正strategy的绑定python string list到C++ vector<string>出错的问题,和python Te…
Browse files Browse the repository at this point in the history
…stStrategy中的typo

Merge pull request !8 from Jet/fix-strategy
  • Loading branch information
fasiondog authored and gitee-org committed Feb 14, 2024
2 parents 19d3d98 + 3639ce4 commit 1ba1e93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hikyuu/strategy/strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class TestStrategy(StrategyBase):
def __init__(self):
super(self.__class__, self).__init__()
self.stock_list = ['sh000001', 'sz000001']
self.stock_list = ['sh600000', 'sz000001']
self.ktype_list = [Query.MIN, Query.DAY]

def init(self):
Expand All @@ -23,5 +23,5 @@ def on_bar(self, ktype):


if __name__ == '__main__':
s = TestStratege()
s.run()
s = TestStrategy()
s.run()
1 change: 1 addition & 0 deletions hikyuu_pywrap/strategy/_StrategyBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include <hikyuu/strategy/StrategyBase.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

namespace py = pybind11;
using namespace hku;
Expand Down

0 comments on commit 1ba1e93

Please sign in to comment.