Skip to content

Commit

Permalink
fixed interactive STOCKTYPE_A_BJ
Browse files Browse the repository at this point in the history
  • Loading branch information
fasiondog committed Apr 25, 2024
1 parent 6b2036a commit 4b2c6b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hikyuu/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
# ==============================================================================
blocka = Block("A", "ALL")
for s in sm:
if s.type in (constant.STOCKTYPE_A, constant.STOCKTYPE_GEM):
if s.type in (constant.STOCKTYPE_A, constant.STOCKTYPE_A_BJ, constant.STOCKTYPE_GEM):
blocka.add(s)
zsbk_a = blocka

Expand All @@ -144,7 +144,7 @@
zsbk_sz = blocksz

blockbj = Block("A", "BJ")
for s in sm:
for s in blocka:
if s.market == "BJ":
blockbj.add(s)
zsbk_bj = blockbj
Expand Down
2 changes: 1 addition & 1 deletion hikyuu_pywrap/_Constant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ void export_Constant(py::module& m) {
.def_readonly("STOCKTYPE_GEM", &Constant::STOCKTYPE_GEM, "创业板")
.def_readonly("STOCKTYPE_START", &Constant::STOCKTYPE_START, "科创板")
.def_readonly("STOCKTYPE_CRYPTO", &Constant::STOCKTYPE_START, "数字币")
.def_readonly("STOCKTYPE_A_BJ", &Constant::STOCKTYPE_START, "A股北交所")
.def_readonly("STOCKTYPE_A_BJ", &Constant::STOCKTYPE_A_BJ, "A股北交所")
.def_readonly("STOCKTYPE_TMP", &Constant::STOCKTYPE_TMP, "临时Stock");

m.attr("constant") = Constant();
Expand Down

0 comments on commit 4b2c6b6

Please sign in to comment.